Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bad superblock fat32 - can't mount
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
andermic
n00b
n00b


Joined: 21 Apr 2004
Posts: 21

PostPosted: Fri Sep 24, 2004 1:33 am    Post subject: bad superblock fat32 - can't mount Reply with quote

When I try to mount my fat32 hard drive, this is what I get.

Code:
bash-2.05b# mount -t vfat /dev/hdc1 /mnt/music
mount: wrong fs type, bad option, bad superblock on /dev/hdc1, or too many mounted file systems


fdisk tells me this:

Code:
bash-2.05b# fdisk -l /dev/hdc1

Disk /dev/hdc1: 120.0 GB, 120031478784 bytes
255 heads, 63 sectors/track, 14592 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

     Device Boot      Start         End      Blocks   Id  System
/dev/hdc1p4          128454      128456       19911    0  Empty
Partition 4 does not end on cylinder boundary.


I converted the partition from ntfs to fat32 with partition magick so that I would be able to write to it from linux while I move my files around and format everything with ext2 fs. I would just format, only problem is I need all the stuff on this drive. If I can just mount it, I can go on from there, but since I can't, anyone know of anything I can do. I tried a few things with the program parted, mostly just resizing. And dosfsck on the drive, but nothing is changing it. I am also using kernel 2.6.8.1-ck7, and I read something about fat32 not working with 2.6.8.1, is this true.

thanks
Back to top
View user's profile Send private message
tollwilly125
n00b
n00b


Joined: 31 Aug 2003
Posts: 73
Location: Boston, MA

PostPosted: Fri Sep 24, 2004 3:28 am    Post subject: Reply with quote

after you try to mount, what does
Code:
$dmesg
say? Please post it.
_________________
Click, Click, bloody Click PANCAKES!!!!
Back to top
View user's profile Send private message
andermic
n00b
n00b


Joined: 21 Apr 2004
Posts: 21

PostPosted: Fri Sep 24, 2004 3:53 am    Post subject: Reply with quote

Unable to load NLS charset cp437
FAT: codepage cp437 not found
/dev/ide/host0/bus1/target0/lun0: p1
Unable to load NLS charset cp437
FAT: codepage cp437 not found
Back to top
View user's profile Send private message
andermic
n00b
n00b


Joined: 21 Apr 2004
Posts: 21

PostPosted: Fri Sep 24, 2004 4:01 am    Post subject: Reply with quote

So I take is I just need to load that code page under file systems in the kernel..? I did not know that I could use dmesg for that.
Back to top
View user's profile Send private message
andermic
n00b
n00b


Joined: 21 Apr 2004
Posts: 21

PostPosted: Fri Sep 24, 2004 4:24 am    Post subject: Reply with quote

ok, I added codepage 437 to my kernel, and looked under the dos/fat/ntfs section and codepage is set to 437. But I still get the same error and dmesg still tells me the same thing. Any ideas?
Back to top
View user's profile Send private message
andermic
n00b
n00b


Joined: 21 Apr 2004
Posts: 21

PostPosted: Fri Sep 24, 2004 4:34 am    Post subject: Reply with quote

I just had to add the ISO cp that fat was looking for... it wasnt enabled in the kernel, thanks for making me look at that to help myself, I appreciate it.
Back to top
View user's profile Send private message
tollwilly125
n00b
n00b


Joined: 31 Aug 2003
Posts: 73
Location: Boston, MA

PostPosted: Fri Sep 24, 2004 1:26 pm    Post subject: Reply with quote

Not a problem. This seems to be a recurring problem with USB storage devices and the 2.6 kernels. Glad you got it fixed.
_________________
Click, Click, bloody Click PANCAKES!!!!
Back to top
View user's profile Send private message
pvincent
n00b
n00b


Joined: 02 Aug 2003
Posts: 29

PostPosted: Wed Nov 03, 2004 7:41 pm    Post subject: Reply with quote

Thank you guys,
I fixed my problem.
The codepage was missing in my kernel config.
I've just load the default codepage cp437 as module and now it works fine.
I definitely love this forum... :D
Back to top
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Sun Nov 07, 2004 4:16 pm    Post subject: Reply with quote

i'm having this same problem. i get this when trying to mount the usb drive (after setting up the partition type as FAT32 (b) in fdisk and vfat file system with mkfs.vfat -F 32):

Code:
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       or too many mounted file systems


and this in /var/log/messages:

Code:
Unable to load NLS charset cp437
FAT: codepage cp437 not found


..when i try to mount the usbdrive.

this is in my fstab:
Code:
/dev/sda1   /mnt/usbstick      vfat      user,noauto,umask=002,gid=35,codepage=437  0 0


i have cp437 compiled as an option for the vfat module and the vfat module loaded. these modules are loaded.

Code:
vfat                   11840  0
fat                    39104  1 vfat
sd_mod                 15872  0
usb_storage            42976  0
nfs                    95152  1
snd_pcm_oss            49000  0
snd_mixer_oss          17344  1 snd_pcm_oss
udf                    88132  0
agpgart                27624  0
sg                     29728  0
nfsd                   90440  1
exportfs                4992  1 nfsd
lockd                  57864  3 nfs,nfsd
sunrpc                130404  5 nfs,nfsd,lockd
parport_pc             22144  1
lp                      8424  0
parport                34440  2 parport_pc,lp
ehci_hcd               25860  0
emu10k1_gp              2496  0
gameport                3584  1 emu10k1_gp
usbhid                 22464  0
usblp                  10816  0
nvidia               2074504  12
snd_emu10k1            91336  0
snd_rawmidi            20260  1 snd_emu10k1
snd_pcm                84744  2 snd_pcm_oss,snd_emu10k1
snd_timer              21060  1 snd_pcm
snd_seq_device          6472  2 snd_emu10k1,snd_rawmidi
snd_ac97_codec         65732  1 snd_emu10k1
snd_page_alloc          8840  2 snd_emu10k1,snd_pcm
snd_util_mem            3264  1 snd_emu10k1
snd_hwdep               7108  1 snd_emu10k1
snd                    46436  10 snd_pcm_oss,snd_mixer_oss, snd_emu10k1,snd_rawmidi,snd_pcm, snd_timer,snd_seq_device,snd_ac97_codec, snd_util_mem,snd_hwdep
soundcore               7456  1 snd
ohci_hcd               18436  0
usbcore               101540  7 usb_storage,ehci_hcd, usbhid,usblp,ohci_hcd
st                     34972  0
scsi_mod               97676  4 sd_mod,usb_storage,sg,st
unix                   22964  126


i've gotten the usb stick to work with reiserfs. the problem is with vfat. i'm using kernel 2.6.8-gentoo-r3.

thanks.


Last edited by SerfurJ on Tue Nov 09, 2004 9:04 pm; edited 2 times in total
Back to top
View user's profile Send private message
xenon
Guru
Guru


Joined: 25 Dec 2002
Posts: 432
Location: Europe

PostPosted: Sun Nov 07, 2004 4:34 pm    Post subject: Re: bad superblock fat32 - can't mount Reply with quote

andermic wrote:
fdisk tells me this:

Code:
bash-2.05b# fdisk -l /dev/hdc1

Disk /dev/hdc1: 120.0 GB, 120031478784 bytes
255 heads, 63 sectors/track, 14592 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

     Device Boot      Start         End      Blocks   Id  System
/dev/hdc1p4          128454      128456       19911    0  Empty
Partition 4 does not end on cylinder boundary.


Probably it doesn't matter here, but it's something everyone dual-booting should know. Windows like partitions to end on cylinder boundaries; linux (and possibly other systems) doesn't care. This can lead to fs corruption and data loss when manipulating Windows partitions with linux tools (yes, it also happened to me years ago). So, as bad as it's sounds, Partition Magic is a dual-booter's good friend. :wink:
Back to top
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Sun Nov 07, 2004 5:05 pm    Post subject: Reply with quote

i figured it out. these were the modules i needed: nls_iso8859_1 and nls_cp437.
Back to top
View user's profile Send private message
dkaplowitz
Guru
Guru


Joined: 22 Nov 2003
Posts: 596
Location: Philadelphia, PA

PostPosted: Tue Nov 09, 2004 2:15 am    Post subject: Reply with quote

SerfurJ wrote:
i figured it out. these were the modules i needed: nls_iso8859_1 and nls_cp437.


That's exactly what I needed...thanks for posting that. They were pretty easy to find, but for anyone having trouble, they were under File Systems > Native Language Support.
_________________
http://dkap.info
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Tue Nov 09, 2004 8:19 pm    Post subject: Reply with quote

@Serfurj,

could you edit your thread to break the line:

snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_rawmidi,snd_pcm, snd_timer,snd_seq_device,snd_ac97_codec,snd_util_mem,snd_hwdep

its making the thread pretty unreadable.

Thx. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86


Last edited by Gentree on Tue Nov 09, 2004 10:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Tue Nov 09, 2004 9:06 pm    Post subject: Reply with quote

Gentree,

ok, i did. but now your thread has a long line.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Tue Nov 09, 2004 10:19 pm    Post subject: Reply with quote

Ha! Brilliant.

I thought it was the code block that was fixing the width :oops:

Anyway its a useful thread now I can read it better.

Thx 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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