View previous topic :: View next topic |
Author |
Message |
NeoBender n00b
Joined: 24 Nov 2003 Posts: 41
|
Posted: Mon Dec 15, 2003 11:07 am Post subject: Can't mount Fat32 partition |
|
|
Hi,
I have a hard drive (/dev/hdb) with 2 partitions:
/dev/hdb1 - reiserfs
/dev/hdb2 - win95 fat32 (LBA)
I can mount the reiser partition just fine, but I get the following error when I try to mount the fat partition
Code: | mount -t vfat /dev/hdb2 /media/winshare
mount: special device /dev/hdb2 does not exist |
There is no /dev/hdb2... how do I go about making one?
Thanks. |
|
Back to top |
|
|
Helena Veteran
Joined: 02 Apr 2003 Posts: 1114 Location: Den Dolder, The Netherlands
|
Posted: Mon Dec 15, 2003 11:15 am Post subject: Re: Can't mount Fat32 partition |
|
|
NeoBender wrote: | Hi,
I have a hard drive (/dev/hdb) with 2 partitions:
/dev/hdb1 - reiserfs
/dev/hdb2 - win95 fat32 (LBA)
I can mount the reiser partition just fine, but I get the following error when I try to mount the fat partition
Code: | mount -t vfat /dev/hdb2 /media/winshare
mount: special device /dev/hdb2 does not exist |
There is no /dev/hdb2... how do I go about making one?
Thanks. |
TryAll partitions on /dev/hdb should show up. Have you compiled FAT32 support into the kernel? |
|
Back to top |
|
|
NeoBender n00b
Joined: 24 Nov 2003 Posts: 41
|
Posted: Mon Dec 15, 2003 11:23 am Post subject: Re: Can't mount Fat32 partition |
|
|
Helena wrote: | Try
All partitions on /dev/hdb should show up. Have you compiled FAT32 support into the kernel? | Thanks for your quick response.
cfdisk shows both partitions.
VFat is enabled in the kernel (2.4.22) as a module. I'll try simply including it, not modularizing it. (It worked for me with NTFS, so it might work for this too). |
|
Back to top |
|
|
NeoBender n00b
Joined: 24 Nov 2003 Posts: 41
|
Posted: Mon Dec 15, 2003 11:44 am Post subject: Re: Can't mount Fat32 partition |
|
|
NeoBender wrote: | VFat is enabled in the kernel (2.4.22) as a module. I'll try simply including it, not modularizing it. (It worked for me with NTFS, so it might work for this too). | This didn't work. Any other suggestions? Please? |
|
Back to top |
|
|
Helena Veteran
Joined: 02 Apr 2003 Posts: 1114 Location: Den Dolder, The Netherlands
|
Posted: Mon Dec 15, 2003 1:37 pm Post subject: |
|
|
Is the partition number right? You may want to include the output of cfdisk so I can tell from that. Choose Print /Sectors from the cfdisk menu. |
|
Back to top |
|
|
NeoBender n00b
Joined: 24 Nov 2003 Posts: 41
|
Posted: Mon Dec 15, 2003 1:46 pm Post subject: |
|
|
Code: | Partition Table for /dev/hdb
First Last
# Type Sector Sector Offset Length Filesystem Type (ID) Flag
-- ------- ----------- ----------- ------ ----------- -------------------- ----
1 Primary 0 230243579 63 230243580 Linux (83) None
2 Primary 230243580 234436544 0 4192965 W95 FAT32 (LBA) (0C) None |
*edit* Loading from a rescue disk allows me to mount /dev/hdb2, so I know that the filesystem is good... I just don't have a /dev/hdb2 in my gentoo installation. Is there a way to have the OS re-examine the hard drive and create necessary symlinks? |
|
Back to top |
|
|
Helena Veteran
Joined: 02 Apr 2003 Posts: 1114 Location: Den Dolder, The Netherlands
|
Posted: Mon Dec 15, 2003 4:07 pm Post subject: |
|
|
NeoBender wrote: | Code: | Partition Table for /dev/hdb
First Last
# Type Sector Sector Offset Length Filesystem Type (ID) Flag
-- ------- ----------- ----------- ------ ----------- -------------------- ----
1 Primary 0 230243579 63 230243580 Linux (83) None
2 Primary 230243580 234436544 0 4192965 W95 FAT32 (LBA) (0C) None |
*edit* Loading from a rescue disk allows me to mount /dev/hdb2, so I know that the filesystem is good... I just don't have a /dev/hdb2 in my gentoo installation. Is there a way to have the OS re-examine the hard drive and create necessary symlinks? | There could be something else going on. First I note (LBA) in the partition type, which I don't have (I also mount a FAT32 partition). Second, I'm trying to repeat your screen. Are you using cfdisk? Which version (I have 2.11z)? You can find out withThird, you sure have a lot of sectors there, ten times more than I have, and I have a 120 GB disk. So this seems to point to very small sectors.
I'm not sure but that could be a problem as well. So you have to find out how your disk was formatted (it shows in the heading of the cfdisk startup screen) and check the BIOS settings as well. This may become complicated but I don't think there's another solution... Maybe you can paste the entire screen from cfdisk? |
|
Back to top |
|
|
NeoBender n00b
Joined: 24 Nov 2003 Posts: 41
|
Posted: Mon Dec 15, 2003 8:12 pm Post subject: |
|
|
Helena wrote: | There could be something else going on. First I note (LBA) in the partition type, which I don't have (I also mount a FAT32 partition). |
I've tried it both with and without the (LBA) (types 0B and 0C) with no luck.
Helena wrote: | Second, I'm trying to repeat your screen. Are you using cfdisk? Which version (I have 2.11z)? You can find out with |
I have version 2.12 and I got that screen doing Print -> Sectors like you suggested.
Helena wrote: | Third, you sure have a lot of sectors there, ten times more than I have, and I have a 120 GB disk. So this seems to point to very small sectors.
I'm not sure but that could be a problem as well. So you have to find out how your disk was formatted (it shows in the heading of the cfdisk startup screen) and check the BIOS settings as well. This may become complicated but I don't think there's another solution... Maybe you can paste the entire screen from cfdisk? |
Code: | cfdisk 2.12
Disk Drive: /dev/hdb
Size: 120034123776 bytes, 120.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 14593
Name Flags Part Type FS Type [Label] Size (MB)
-------------------------------------------------------------------------------------
hdb1 Primary Linux ReiserFS 117884.72
hdb2 Primary W95 FAT32 2146.80
[Bootable] [ Delete ] [ Help ] [Maximize] [ Print ] [ Quit ]
[ Type ] [ Units ] [ Write ]
Toggle bootable flag of the current partition | That's my main cfdisk screen.
Thanks for the help, please don't give up on me. |
|
Back to top |
|
|
Helena Veteran
Joined: 02 Apr 2003 Posts: 1114 Location: Den Dolder, The Netherlands
|
Posted: Mon Dec 15, 2003 9:54 pm Post subject: |
|
|
Where the hell did you get 2.12?
Seriously, when I googled for cfdisk 2.12 I found some interesting links. One of them mentioned it in relation to Knoppix. You're using it from Gentoo, I suppose?
Also, what is your boot loader? I just discovered that LILO needs special configuration to deal with large hard disks. Apparently it needs a lineI use grub, so I didn't know. |
|
Back to top |
|
|
NeoBender n00b
Joined: 24 Nov 2003 Posts: 41
|
Posted: Mon Dec 15, 2003 10:01 pm Post subject: |
|
|
Helena wrote: | Where the hell did you get 2.12? | Not sure.
Helena wrote: | Seriously, when I googled for cfdisk 2.12 I found some interesting links. One of them mentioned it in relation to Knoppix. You're using it from Gentoo, I suppose? | Yes.
Helena wrote: | Also, what is your boot loader? I just discovered that LILO needs special configuration to deal with large hard disks. Apparently it needs a lineI use grub, so I didn't know. | Using grub as well.
*edit* The Gentoo install CD recognizes it, a linux rescue/util CD recognizes it, Windows XP recognizes it... there must be some way to have the Gentoo installation probe hdb and have it recreate the symlinks or something. |
|
Back to top |
|
|
Helena Veteran
Joined: 02 Apr 2003 Posts: 1114 Location: Den Dolder, The Netherlands
|
Posted: Mon Dec 15, 2003 10:23 pm Post subject: |
|
|
OK I admit I'm out of ideas. Last thing I can suggest (since the partition is not too big): save its contents -if necessary- somehow, delete it and recreate it from inside Gentoo, using cfdisk.
This is all I can think of... Good luck! |
|
Back to top |
|
|
NeoBender n00b
Joined: 24 Nov 2003 Posts: 41
|
Posted: Mon Dec 15, 2003 10:29 pm Post subject: |
|
|
Helena wrote: | OK I admit I'm out of ideas. Last thing I can suggest (since the partition is not too big): save its contents -if necessary- somehow, delete it and recreate it from inside Gentoo, using cfdisk.
This is all I can think of... Good luck! | Haha. I've done that about a hundred times.
Thanks for your help though. Anyone else? |
|
Back to top |
|
|
NeoBender n00b
Joined: 24 Nov 2003 Posts: 41
|
Posted: Tue Dec 16, 2003 1:00 am Post subject: |
|
|
All I needed to do was:
Code: | mknod /dev/hdb2 b 3 66 |
|
|
Back to top |
|
|
nsahoo l33t
Joined: 17 Jul 2003 Posts: 618
|
Posted: Tue Dec 16, 2003 2:18 am Post subject: |
|
|
I guess I am too late to help you. last night i was having the same issue. Neither cfdisk not qtparted was doing it right. I solved it with
Code: |
mkdosfs -F32 /dev/hdb2
|
took help from #gentoo IRC channel. |
|
Back to top |
|
|
|