Subject: Re: mouting extended lba partition
To: Alexander Jossifov <alex@tugab.net>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-help
Date: 02/14/2001 08:15:46
On Tue, 13 Feb 2001, Alexander Jossifov wrote:
> # size offset fstype [fsize bsize cpg]
> a: 4095315 6634845 4.2BSD 1024 8192 16 # (Cyl.
> 6582*- 10644)
> b: 611730 10730160 swap # (Cyl.
> 10645 - 11251*)
> c: 6634782 63 MSDOS # (Cyl.
> 0*- 6582*)
> d: 17992737 11341953 MSDOS # (Cyl.
> 11251*- 29101*)
"c" and "d" are supposed to be reserved for the NetBSD part, and the
whole disk, respectively. "d", especially, is usually taken to be the
whole disk, regardless of what it says in the disklabel. If you saved
the old disklabel you should restore it to what it was before going
any further; you may also have a backup in
/var/backups/disklabel.wd0.backup.
> root@/# mount -t msdos /dev/wd0d /mnt2
> mount_msdos: /dev/wd0d on /mnt2: Invalid argument
>
> This is the case when I tried with the info the Partition Magic
> gave me.
>
> Now there's a fdisk wd0:
>
> root@/# fdisk wd0
> NetBSD disklabel disk geometry:
> cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)
>
> BIOS disk geometry:
> cylinders: 1024 heads: 255 sectors/track: 63 (16065
> sectors/cylinder)
>
> Partition table:
> 0: sysid 11 (Primary DOS with 32 bit FAT)
> start 63, size 6634782 (3239 MB), flag 0x0
> beg: cylinder 0, head 1, sector 1
> end: cylinder 412, head 254, sector 63
> 1: sysid 15 (Ext. partition - LBA)
> start 11341890, size 17992800 (8785 MB), flag 0x0
> beg: cylinder 706, head 0, sector 1
> end: cylinder 1023, head 254, sector 63
> 2: sysid 169 (NetBSD)
> start 6634845, size 4707045 (2298 MB), flag 0x80
> beg: cylinder 413, head 0, sector 1
> end: cylinder 705, head 254, sector 63
> 3: <UNUSED>
The DOS file system actually starts one track in on the extended
partitions, so make a partiton "f" with start 11341953=11341890+63 and
size 17992737=17992800-63. The start and size were right the first
time, it's just that you can't use "d".
Frederick