Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I Wiped windBlow$ off my box completely however, left /dev/hda4 which is vfat there as it was my backup partition. Now that I have Redhat 9.0 exclusively on my box I cannot mount this partition.
I get the following.
[root@riddlebox /]# mount -t vfat /dev/hda4 /mnt/storage/
mount: wrong fs type, bad option, bad superblock on /dev/hda4,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
[root@riddlebox /]#
Is there any way to get the data off this partition? It has about 8GB of data on there that I'd really not like to lose.
hda4 is not a fat32 partition. There is no such thing as an extended fat32 partition. an extended partition is a container for virtual partitions, which is what you are actaully after, it is probably hda5. run fdisk -l to list the partitions.
As you can see below it shows hda4 as a Fat32 Extended Partition. I'm not sure why but if you can help me somehow mount this d@#! thing I would be extremely happy to get that data. Thanks again!!!
[root@riddlebox root]# fdisk -l
Disk /dev/hda: 255 heads, 63 sectors, 3736 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 76 610438+ 83 Linux
/dev/hda2 77 1351 10241437+ 83 Linux
/dev/hda3 1352 2371 8193150 83 Linux
/dev/hda4 2372 3736 10964362+ f Win95 Ext'd (LBA)
/dev/hda5 2372 3136 6144831 83 Linux
/dev/hda6 3137 3455 2562336 83 Linux
/dev/hda7 3456 3563 867478+ 83 Linux
/dev/hda8 3564 3664 811251 83 Linux
/dev/hda9 3665 3728 514048+ 82 Linux swap
Disk /dev/hdb: 64 heads, 63 sectors, 1023 cylinders
Units = cylinders of 4032 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 1022 2060320+ b Win95 FAT32
[root@riddlebox root]#
no it doesn't, it says it is a win95 LBA extended partition, this si NOT a fat32 file system. you can only have 4 primary / extended partitions on a drive, and so virtual partitions exist. naturally in order to accomodate these virtual partitions, you haev to give over one of the 4 main partitions. primary and extended parts are hda1-4 and virtual parts are hda5 and greater. you can even look at the cylinder data there...
/dev/hda4 2372 3736 10964362+ f Win95 Ext'd (LBA)
so it starts at 2372 and ends at 3736, which is AFTER the swap partition, and therefore undenaiably contains those partitions. you can also see what a fat32 entry looks like on hdb1 if you needed any further proof.
Try using cfdisk. It list partitions on a drive better than fdisk. fdisk sometimes doesn't list the partitions correctly.
An Extended partition is a container but it doesn't contain virtual partitions. Those partitions are called logical partitions in the Extended partition, so /dev/hda5 through /dev/hda8 are logical drives and /dev/hd4 is an extended parttion containing all those logical drives.
I think LINUX killed your DOS partition or the other way around. The user killed the DOS partitions.
Since you have a DOS partition drive on /dev/hdb. Try making a DOS boot disk and see if you can find your data. Then copy the data to it.
You can't mount an extended partition. You mount a logical drive. Thus, you can't mount hda4. HOWEVER - That doesn't mean your data is gone. Try mounting hda5 - that's your first logical drive and probably has your data.
from looking at the fdisk output
/dev/hda4 2372 3736 10964362+ f Win95 Ext'd (LBA)
/dev/hda5 2372 3136 6144831 83 Linux
you can see that hda4 and hda5 start at the same point on the disk (2372), this is because hda4 (as mentioned above) contains the partitions 5-9 rather than data per se (note that hda9 ends just shy of where hda4 does, there is a little bit of wasted space). If you created those partitions and formatted them as Linux Native (and Swap) then you've probably lost the data you're looking for.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.