Mounting extended dos partition

Kent Stewart kstewart at owt.com
Sun Jul 6 12:51:45 PDT 2003


On Sunday 06 July 2003 11:36 am, Wayne Pascoe wrote:
> Hi all,
>
> I have an 80 Gig hard drive with the following partition layout:
> Primary 1 - MS-DOS - 29996 Meg
> Extended with 1 Logical drive (D) - MS DOS - 27996 Meg
> FreeBSD Partition - 20167 Meg
>
> I'm trying to mount the extended partition. My primary dos partition is
> /dev/ad4s1
>
> I've tried mounting the extended as follows:
>
> mount_msdos /dev/ad4s2 /mnt/dose
> mount_msdos /dev/ad4s2a /mnt/dose
> mount_msdos /dev/ad4s2b /mnt/dose
> mount_msdos /dev/ad4s2c /mnt/dose
> mount_msdos /dev/ad4s2d /mnt/dose
>
> All of these return with
> mount_msdos: /dev/ad4s2x: Invalid argument
>
> Any ideas on how I mount this logical drive in this extended partition ?

The extended partitions all start at 5 because you can have 4 primary 
partitions.

Kent

>
> For the record, fdisk ad4 presents the following output:
>
> # fdisk ad4
> ******* Working on device /dev/ad4 *******
> parameters extracted from in-core disklabel are:
> cylinders=9964 heads=255 sectors/track=63 (16065 blks/cyl)
>
> Figures below won't work with BIOS for partitions not in cyl 1
> parameters to be used for BIOS calculations are:
> cylinders=9964 heads=255 sectors/track=63 (16065 blks/cyl)
>
> Media sector size is 512
> Warning: BIOS sector numbering starts with sector 1
> Information from DOS bootblock is:
> The data for partition 1 is:
> sysid 12,(DOS or Windows 95 with 32 bit FAT, LBA)
>     start 63, size 61432497 (29996 Meg), flag 0
>         beg: cyl 0/ head 1/ sector 1;
>         end: cyl 1023/ head 254/ sector 63
> The data for partition 2 is:
> sysid 15,(Extended DOS, LBA)
>     start 61432560, size 57335985 (27996 Meg), flag 0
>         beg: cyl 1023/ head 255/ sector 63;
>         end: cyl 1023/ head 254/ sector 63
> The data for partition 3 is:
> sysid 165,(FreeBSD/NetBSD/386BSD)
>     start 118768545, size 41303115 (20167 Meg), flag 80 (active)
>         beg: cyl 1023/ head 255/ sector 63;
>         end: cyl 1023/ head 254/ sector 63
> The data for partition 4 is:
> <UNUSED>
>
> Thanks in advance,

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html



More information about the freebsd-questions mailing list