Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 1997 20:29:51 -0700
From:      Scott Blachowicz <scott@apple.statsci.com>
To:        Doug White <dwhite@resnet.uoregon.edu>
Cc:        Kristian Kennaway <kkennawa@physics.adelaide.edu.au>, freebsd-questions@freebsd.org
Subject:   Re: Corrupted disk slice 
Message-ID:  <m0wJWHA-0006uMC@apple.statsci.com>
In-Reply-To: Your message of "Mon, 21 Apr 1997 19:15:14 -0700." <Pine.BSF.3.96.970421191426.23172G-100000@localhost> 
References:  <Pine.BSF.3.96.970421191426.23172G-100000@localhost> 

next in thread | previous in thread | raw e-mail | index | archive | help
Doug White <dwhite@gdi.uoregon.edu> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0wJWHA-0006uMC>