From owner-freebsd-questions Sat Aug 15 16:05:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA28369 for freebsd-questions-outgoing; Sat, 15 Aug 1998 16:05:09 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lucy.bedford.net (lucy.bedford.net [206.99.145.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA28359 for ; Sat, 15 Aug 1998 16:05:04 -0700 (PDT) (envelope-from djv@lucy.bedford.net) Received: (from djv@localhost) by lucy.bedford.net (8.8.8/8.8.8) id TAA13906 for freebsd-questions@freebsd.org; Sat, 15 Aug 1998 19:04:32 -0400 (EDT) (envelope-from djv) Message-Id: <199808152304.TAA13906@lucy.bedford.net> Subject: Re: disk confusion (fwd) To: freebsd-questions@FreeBSD.ORG Date: Sat, 15 Aug 1998 19:04:32 -0400 (EDT) Reply-To: djv@bedford.net From: djv@bedford.net X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG djv@bedford.net wrote >From djv Sat Aug 15 19:00:54 1998 Subject: Re: disk confusion In-Reply-To: <19980816081357.54810@welearn.com.au> from Sue Blake at "Aug 16, 98 08:13:57 am" To: sue@welearn.com.au (Sue Blake) Date: Sat, 15 Aug 1998 19:00:54 -0400 (EDT) Reply-To: djv@bedford.net From: djv@bedford.net X-Mailer: ELM [version 2.4ME+ PL38 (25)] Content-Length: 1412 > > > Yes it booted fine as sd0 before I plugged the first SCSI disk back in. > > > > Right, sd0... Repeat last comment, s/bet/really bet/ > > > > At this point, I would boot FreeBSD from any but the sd1 system; > > I would fsck the sd1s1X partitions. > > > > Then I would mount the sd1s1a on /mnt, and poke around in > > /mnt/etc, looking for sd0 [fstab :) ] where it should be sd1. cd /mnt/dev sh MAKEDEV sd1s1a That should make sd1s1[a-h], and also the r... ones. Do thou likewise for sd1s2, blah blah, if needed. then cd /dev and do it again. > I don't suppose I can make the right devices on sd1 by mounting the > drive after booting from sd0, can I? (If so you'd better give me the > MAKEDEV incantation too so I can't screw that up) sure, as just given. mknod (what MAKEDEV does), is a very simple deal -- it just creates a file, marks it as a block or char device, and stuffs the appropriate major and minor device id's in its inode. What you see with ls -l /dev/sd1s1a is /all/ there is. The business parts are b or c, and the device numbers. They're used to call the kernel "open block device 3 minor device 4" Dave -- "Today, machines sit on our desks and spend the overwhelming majority of their cycles doing nothing more important than blinking a cursor." --William Dickens http://www.feedmag.com/html/feedline/98.07dickens/98.07dickens_master.html -- "Today, machines sit on our desks and spend the overwhelming majority of their cycles doing nothing more important than blinking a cursor." --William Dickens http://www.feedmag.com/html/feedline/98.07dickens/98.07dickens_master.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message