From owner-freebsd-questions Mon Apr 21 20:30:34 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA09487 for questions-outgoing; Mon, 21 Apr 1997 20:30:34 -0700 (PDT) Received: from main.statsci.com (main.statsci.com [206.63.206.110]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id UAA09480 for ; Mon, 21 Apr 1997 20:30:31 -0700 (PDT) Received: from apple.statsci.com [206.63.206.4] with smtp by main.statsci.com with smtp (/\oo/\ Smail3.1.29.1 #29.3 #3) id m0wJWHA-000ZMjC; Mon, 21 Apr 97 20:29 PDT Received: from apple.statsci.com [206.63.206.4] with smtp by apple.statsci.com with smtp (/\oo/\ Smail3.1.29.1 #29.3 #3) id m0wJWHA-0006uMC; Mon, 21 Apr 97 20:29 PDT Message-Id: To: Doug White cc: Kristian Kennaway , freebsd-questions@freebsd.org Subject: Re: Corrupted disk slice References: In-reply-to: Your message of "Mon, 21 Apr 1997 19:15:14 -0700." Reply-to: scott@statsci.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23266.861679791.1@apple.statsci.com> Date: Mon, 21 Apr 1997 20:29:51 -0700 From: Scott Blachowicz Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Doug White wrote: > On Tue, 22 Apr 1997, Kristian Kennaway wrote: > > Can't open /dev/rwd1s4e: Invalid argument > > > > And dumped me into single-user mode. Trying to mount the partition manually > > gives: > > > > [morden] 0:33 ~ mount -t ufs /dev/wd1s4e /usr2 > > > > /dev/wd1s4e on /usr2: Incorrect super block. > > It's trying to mount a DOS logical disk in an extended partition. Make > sure that /etc/fstab records this filesystem as a 'msdos' type FS. I thought the logical slices started with s5 (regardless of how many non-logical slices are currentlly being used). Doing 'fdisk wd1' should show something similar to what 'fdisk wd0' shows on my system: one:~% fdisk wd0 ******* Working on device /dev/rwd0 ******* parameters extracted from in-core disklabel are: cylinders=656 heads=128 sectors/track=63 (8064 blks/cyl) parameters to be used for BIOS calculations are: cylinders=656 heads=128 sectors/track=63 (8064 blks/cyl) Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: sysid 6,(Primary 'big' DOS (> 32MB)) start 63, size 1048257 (511 Meg), flag 80 beg: cyl 0/ sector 1/ head 1; end: cyl 129/ sector 63/ head 127 The data for partition 1 is: sysid 5,(Extended DOS) start 1048320, size 3144960 (1535 Meg), flag 0 beg: cyl 130/ sector 1/ head 0; end: cyl 519/ sector 63/ head 127 The data for partition 2 is: sysid 7,(OS/2 HPFS, QNX or Advanced UNIX) start 4193280, size 677376 (330 Meg), flag 0 beg: cyl 520/ sector 1/ head 0; end: cyl 603/ sector 63/ head 127 The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 4870656, size 419328 (204 Meg), flag 0 beg: cyl 604/ sector 1/ head 0; end: cyl 655/ sector 63/ head 127 It looks like fdisk shows partitions 0-3, but the slice numbers go from 1-4, so adjust your numbers accordingly. That partition 1 of mine is my extended partition and the 3 DOS partitions I have in there should be known as slices 5-7 from FreeBSD land. I haven't been brave enough to try mounting DOS disks since the msdosfs code tickled some bugs that trashed my BSD partitions on this drive's predecessor...but I think this info is right. Scott Blachowicz Ph: 206/283-8802x240 Mathsoft (Data Analysis Products Div) 1700 Westlake Ave N #500 scott@statsci.com Seattle, WA USA 98109 Scott.Blachowicz@seaslug.org