Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't mount Fat32 partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
NeoBender
n00b
n00b


Joined: 24 Nov 2003
Posts: 41

PostPosted: Mon Dec 15, 2003 11:07 am    Post subject: Can't mount Fat32 partition Reply with quote

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
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1114
Location: Den Dolder, The Netherlands

PostPosted: Mon Dec 15, 2003 11:15 am    Post subject: Re: Can't mount Fat32 partition Reply with quote

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.

Try
Code:
cfdisk /dev/hdb
All partitions on /dev/hdb should show up. Have you compiled FAT32 support into the kernel?
Back to top
View user's profile Send private message
NeoBender
n00b
n00b


Joined: 24 Nov 2003
Posts: 41

PostPosted: Mon Dec 15, 2003 11:23 am    Post subject: Re: Can't mount Fat32 partition Reply with quote

Helena wrote:
Try
Code:
cfdisk /dev/hdb

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
View user's profile Send private message
NeoBender
n00b
n00b


Joined: 24 Nov 2003
Posts: 41

PostPosted: Mon Dec 15, 2003 11:44 am    Post subject: Re: Can't mount Fat32 partition Reply with quote

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
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1114
Location: Den Dolder, The Netherlands

PostPosted: Mon Dec 15, 2003 1:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeoBender
n00b
n00b


Joined: 24 Nov 2003
Posts: 41

PostPosted: Mon Dec 15, 2003 1:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1114
Location: Den Dolder, The Netherlands

PostPosted: Mon Dec 15, 2003 4:07 pm    Post subject: Reply with quote

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 with
Code:
cfdisk -v
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?
Back to top
View user's profile Send private message
NeoBender
n00b
n00b


Joined: 24 Nov 2003
Posts: 41

PostPosted: Mon Dec 15, 2003 8:12 pm    Post subject: Reply with quote

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
Code:
cfdisk -v

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
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1114
Location: Den Dolder, The Netherlands

PostPosted: Mon Dec 15, 2003 9:54 pm    Post subject: Reply with quote

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 line
Code:
lba32
I use grub, so I didn't know.
Back to top
View user's profile Send private message
NeoBender
n00b
n00b


Joined: 24 Nov 2003
Posts: 41

PostPosted: Mon Dec 15, 2003 10:01 pm    Post subject: Reply with quote

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 line
Code:
lba32
I 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
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1114
Location: Den Dolder, The Netherlands

PostPosted: Mon Dec 15, 2003 10:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeoBender
n00b
n00b


Joined: 24 Nov 2003
Posts: 41

PostPosted: Mon Dec 15, 2003 10:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeoBender
n00b
n00b


Joined: 24 Nov 2003
Posts: 41

PostPosted: Tue Dec 16, 2003 1:00 am    Post subject: Reply with quote

All I needed to do was:
Code:
mknod /dev/hdb2 b 3 66
Back to top
View user's profile Send private message
nsahoo
l33t
l33t


Joined: 17 Jul 2003
Posts: 618

PostPosted: Tue Dec 16, 2003 2:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum