Subject: Re: mounting extended linux partitions
To: <>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 02/06/2002 14:24:24
Wayne Cuddy wrote:
> 
> I have Debian Linux and NetBSD 1.5.2 both installed on my Laptop.
> Here is the Linux fdisk output of the partition table on the 1st
> harddisk.
> ----
> Disk /dev/hda: 240 heads, 63 sectors, 2584 cylinders
> Units = cylinders of 15120 * 512 bytes
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1             1         5     31216+  83  Linux
> Partition 1 does not end on cylinder boundary:
>      phys=(4, 31, 63) should be (4, 239, 63)
> /dev/hda2             5      1305   9828504   a9  Unknown
> /dev/hda4          1305      2584   9671256    5  Extended
> /dev/hda5          1305      1576   2048224+  83  Linux
> /dev/hda6          1576      1915   2560288+  83  Linux
> /dev/hda7          1915      2186   2048224+  83  Linux
> /dev/hda8          2186      2203    131512+  82  Linux swap
> ----
> 
> As displayed the NetBSD partition is /dev/hda2,  /dev/hda1 is the
> Linux /boot partition, the rest of the Linux system is in /dev/hda4..
> If I want to mount he Linux partitions /dev/hda[5-8] what devices
> files should I specify to mount_ext2fs?

With things as they stand at the moment, you have to find the start and
end sector numbers for the partitions and edit them into the netbsd disk
label.

IMHO this isn't user friendly!

If I knew the changes would be used, I'd write the code to pick up the
native partitions - it isn't that hard.

What does the netbsd fdisk (from current) say about your disk?
It would be useful to know the output for your disk.
(If you don't have a copy, I've just put one at
http://www.btinternet.com/~david.laight/netbsd/fdisk)

	David