From owner-freebsd-current Thu Jan 20 18: 4: 9 2000 Delivered-To: freebsd-current@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id 4216615147 for ; Thu, 20 Jan 2000 18:03:47 -0800 (PST) (envelope-from darrylo@sr.hp.com) Received: from postal.sr.hp.com (postal.sr.hp.com [15.4.46.173]) by palrel3.hp.com (Postfix) with ESMTP id 10E7217CD; Thu, 20 Jan 2000 18:03:36 -0800 (PST) Received: from mina.sr.hp.com (root@mina.sr.hp.com [15.4.42.247]) by postal.sr.hp.com with ESMTP (8.8.6 (PHNE_17190)/8.7.3 TIS 5.0) id SAA24542; Thu, 20 Jan 2000 18:03:35 -0800 (PST) Received: from localhost (darrylo@mina.sr.hp.com [15.4.42.247]) by mina.sr.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.7.3 TIS 5.0) id SAA15304; Thu, 20 Jan 2000 18:03:34 -0800 (PST) Message-Id: <200001210203.SAA15304@mina.sr.hp.com> To: "joanra" Cc: "Nick Hibma" , current@FreeBSD.ORG Subject: Re: error wich devices ad* Reply-To: Darryl Okahata In-reply-to: Your message of "Fri, 21 Jan 2000 01:19:18 +0100." <002c01bf63a5$537fc7a0$0164a8c0@daemon> Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII Date: Thu, 20 Jan 2000 18:03:33 -0800 From: Darryl Okahata Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "joanra" 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 > > > > >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