LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 05-22-2003, 09:18 AM   #1
shaggz
Member
 
Registered: Dec 2002
Location: FuNkYToWN
Distribution: SuSe, Gentoo, Fedora
Posts: 64

Rep: Reputation: 15
Mounting extended vfat partition


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.



Thanks for any help from anyone!
 
Old 05-22-2003, 09:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 05-22-2003, 03:55 PM   #3
shaggz
Member
 
Registered: Dec 2002
Location: FuNkYToWN
Distribution: SuSe, Gentoo, Fedora
Posts: 64

Original Poster
Rep: Reputation: 15
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]#
 
Old 05-22-2003, 05:20 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 05-22-2003, 06:00 PM   #5
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
Old 05-22-2003, 06:18 PM   #6
Korff
Member
 
Registered: May 2003
Location: Central Florida
Distribution: Gentoo
Posts: 103

Rep: Reputation: 15
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.
 
Old 05-23-2003, 03:32 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
s/virtual/logical/g

pah i can never remember what they're called!
 
Old 05-23-2003, 05:19 AM   #8
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
su
cd /mnt
mkdir windows
mount -t auto /dev/hda1 /mnt/windows


not sure if this will help but worth a try
 
Old 05-23-2003, 05:36 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Quote:
Originally posted by macewan
su
cd /mnt
mkdir windows
mount -t auto /dev/hda1 /mnt/windows


not sure if this will help but worth a try
but hda1 is a linux partition, and that's not what he's looking for....
 
Old 05-23-2003, 02:29 PM   #10
0x4B
Member
 
Registered: May 2003
Location: Nashville TN, USA
Distribution: Debian (I'm unstable)
Posts: 117

Rep: Reputation: 15
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.
 
Old 05-25-2003, 03:36 PM   #11
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I thought in my post I said the user messed up his or her DOS partitions. FAT and FAT32 are DOS partitions.
 
Old 05-25-2003, 04:07 PM   #12
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
Quote:
Originally posted by acid_kewpie
but hda1 is a linux partition, and that's not what he's looking for....
naturally he should substitute hda4 for hda1
 
Old 05-25-2003, 04:13 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Quote:
Originally posted by macewan
naturally he should substitute hda4 for hda1
erm.. no ... that's the point. hda4 is an extended partition...
 
Old 05-25-2003, 07:41 PM   #14
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
su
/sbin/fdisk /dev/hda4
*press "p"*
then mount the appropriate area? maybe? ignore my above posting.
 
Old 05-26-2003, 03:56 AM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
again, this information is already shown in his fdisk output above. there *IS* no fat32 partition there...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Extended Partition damica Linux - Hardware 2 01-15-2004 09:02 AM
Mounting Extended XP Partition silkmaze Linux - General 4 08-20-2003 06:03 AM
Mounting extended Vfat drive issues shaggz Linux - General 2 04-27-2003 08:44 PM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM
mounting extended vfat filesystems lommer0 Linux - Newbie 2 01-17-2002 10:43 PM


All times are GMT -5. The time now is 05:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration