"Veerraghava Reddi.Tetali" wrote:
>
> How can I access dos extended partition from linux, for primary dos iam
> using msdos filesystem, but what is for extended partition?
*** PLEASE, PLEASE DO PUT SOME RELEVANT SUBJECT FOR YOUR MAIL!!! ***
An extended partition is a container partition. A HDD cannot have more
than a total of 4 partitions, i.e. the partition table has space for
only 4 entries. What do u do if u want to have > 4 partitions? Well, u
turn to the extended partition for help. There *cannot* be more than 1
extended partition on the HDD. So, u make 3 primary & 1 extended
partition. DOS cannot see more than 1 primary partition. So 1 primary
partition is set to DOS type and then formatted. Within the extended
partition u create n number of "logical" partitions, which can be
formatted to any file system.
So, within an extended partition u would have some logical partitions,
which are actually where the data is stored. So, as root do an fdisk on
the HDD, print the partition table using the p option. U will get a list
of partitions and file system types. Partition number /dev/hda5 and
above are in the extended partition. Assume u have the following type of
fdisk o/p:
/dev/hda1 dos >=32M
/dev/hda2 linux native
/dev/hda3 linux swap
/dev/hda4 extended
/dev/hda5 linux native
/dev/hda6 dos >=32M
so, to access /dev/hda6, i.e. drive D: u simply do:
mount -t msdos /dev/hda6 <mount_point>
Hope this helps.
sachin
-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH