Date: Thu, 20 Jan 2000 18:03:33 -0800 From: Darryl Okahata <darrylo@sr.hp.com> To: "joanra" <joanra@jet.es> Cc: "Nick Hibma" <n_hibma@webweaving.org>, current@FreeBSD.ORG Subject: Re: error wich devices ad* Message-ID: <200001210203.SAA15304@mina.sr.hp.com> In-Reply-To: Your message of "Fri, 21 Jan 2000 01:19:18 %2B0100." <002c01bf63a5$537fc7a0$0164a8c0@daemon>
next in thread | previous in thread | raw e-mail | index | archive | help
"joanra" <joanra@jet.es> wrote: > I have done all what you have told me to do, but it still doesn't work. Now > i have another problem, i have removed the DEVICES WD* (as you told me) and > i can't mount partitions. It mounts WD on / but just as READ-ONLY and i > can't do anything, How could i mount it whith writing permisions to continue > trying things?? At this point, you're slightly screwed -- you can probably fix your system, but it's going to take some work. I hope you have backups. > -----Mensaje original----- > De: Nick Hibma <n_hibma@webweaving.org> > > > > >Boot with kernel.old and remake all your devices: > > > > cp /usr/src/etc/MAKEDEV /dev/MAKEDEV > > cd /dev > > sh MAKEDEV all This will probably only work if you did an installworld, as MAKEDEV needs the new version of /sbin/mknod; the old, existing version won't work. Also note that "MAKEDEV all" doesn't make the slice devices (e.g., /dev/ad0s1a); you'll have to explicitly tell MAKEDEV to build those. If you didn't do an installworld, but did rebuild the kernel and attempted to mess with /dev, the general procedure for fixing this is: [ DANGER: I HAVE NOT TESTED THE FOLLOWING PROCEDURE. I AM CREATING THE FOLLOWING PROCEDURE FROM MEMORY, AND SO IT MAY BE MISSING KEY PARTS, WHICH COULD DESTROY ALL DATA ON YOUR SYSTEM. MAKE SURE YOU HAVE BACKED UP YOUR SYSTEM BEFORE TRYING ANY OF THE FOLLOWING. ] 1. Boot from a fixit floppy/CDROM. In the past, I've used a FreeBSD 3.3-RELEASE CDROM for this. [ I'm also amazed that the following procedure works, given that I'm running -current binaries under 3.3-RELEASE. ] 2. Mount the hard disk. I generally mount it as "/mnt". 3. Do (assuming /mnt as the mount point): cd /mnt mv dev dev.old mkdir dev cd dev cp /mnt/usr/src/etc/MAKEDEV . 4. If you did a buildworld: cp /mnt/usr/obj/usr/src/sbin/mknod/mknod /sbin If you did not do a buildworld (yes, this is messy, but it should work): cd /mnt/usr/src/sbin/mknod make cp mknod /sbin 5. Do: cp /mnt/usr/src/etc/group /etc # Needed for group "wheel" cd /mnt/dev sh ./MAKEDEV all sh ./MAKEDEV ad2s1a # since you use the ad2 slices NOTE 1: the first time you run MAKEDEV, it may complain about missing programs; if so, put/install the missing programs into the correct locations, and re-run MAKEDEV (until no errors occur). NOTE 2: You don't have to execute "sh MAKEDEV ad2s1b", etc., to make the other slice devices; running "sh MAKEDEV ad2s1a" will create all of the "ad2s1*" devices. > >and make sure you update /etc/fstab as well. wd -> ad, wcd -> acd. Then > >do a to clean up your device tree: > > > > cd /dev > > rm -f wcd* wd* rwcd* rwd* > > > >Nick > > > >On Thu, 20 Jan 2000, joanra wrote: > > > >> Hi when i run freebsd, display: > >> > >> Mounting root from ufs: /dev/ad2s1a > >> no such device ad > >> setrootbyname failed > >> ffs_mountroot: can't find rootvp > >> root mount failed: 6 > >> mounting root from ufs: wd2s1a > >> swapon: /dev/ad2s1b: device not configure > >> Automatic reboot in ptogress > >> can't open /dev/ad2s1a: device not configured > >> > >> my fstab: > >> > >> # Device Mountpoint > >> /dev/ad2s1b none > >> /dev/ad2s1a / > >> /dev/ad2s1f /usr > >> /dev/ad2s1e /var > >> /dev/cd0c /cdrom cd9660 > >> proc /proc > >> > >> anyone help me please? > >> > >> P.S: i recompiled a new kernel, and i create the new devices ad*, and my > hd > >> is seconday > >> > >> thanks > >> > >> > >> > >> To Unsubscribe: send mail to majordomo@FreeBSD.org > >> with "unsubscribe freebsd-current" in the body of the message > >> > > > >-- > >n_hibma@webweaving.org > >n_hibma@freebsd.org USB project > >http://www.etla.net/~n_hibma/ > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001210203.SAA15304>