Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

bad superblock fat32 - can't mount

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
andermic
n00b
n00b
Posts: 21
Joined: Wed Apr 21, 2004 3:57 pm

bad superblock fat32 - can't mount

  • Quote

Post by andermic » Fri Sep 24, 2004 1:33 am

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

Code: Select all

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: Select all

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
Top
tollwilly125
n00b
n00b
User avatar
Posts: 73
Joined: Sun Aug 31, 2003 9:25 pm
Location: Boston, MA

  • Quote

Post by tollwilly125 » Fri Sep 24, 2004 3:28 am

after you try to mount, what does

Code: Select all

$dmesg
say? Please post it.
Click, Click, bloody Click PANCAKES!!!!
Top
andermic
n00b
n00b
Posts: 21
Joined: Wed Apr 21, 2004 3:57 pm

  • Quote

Post by andermic » Fri Sep 24, 2004 3:53 am

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
Top
andermic
n00b
n00b
Posts: 21
Joined: Wed Apr 21, 2004 3:57 pm

  • Quote

Post by andermic » Fri Sep 24, 2004 4:01 am

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.
Top
andermic
n00b
n00b
Posts: 21
Joined: Wed Apr 21, 2004 3:57 pm

  • Quote

Post by andermic » Fri Sep 24, 2004 4:24 am

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?
Top
andermic
n00b
n00b
Posts: 21
Joined: Wed Apr 21, 2004 3:57 pm

  • Quote

Post by andermic » Fri Sep 24, 2004 4:34 am

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.
Top
tollwilly125
n00b
n00b
User avatar
Posts: 73
Joined: Sun Aug 31, 2003 9:25 pm
Location: Boston, MA

  • Quote

Post by tollwilly125 » Fri Sep 24, 2004 1:26 pm

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!!!!
Top
pvincent
n00b
n00b
User avatar
Posts: 29
Joined: Sat Aug 02, 2003 9:02 pm

  • Quote

Post by pvincent » Wed Nov 03, 2004 7:41 pm

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
Top
SerfurJ
l33t
l33t
Posts: 824
Joined: Sat Apr 10, 2004 10:25 pm
Location: Texas

  • Quote

Post by SerfurJ » Sun Nov 07, 2004 4:16 pm

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: Select all

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       or too many mounted file systems
and this in /var/log/messages:

Code: Select all

Unable to load NLS charset cp437
FAT: codepage cp437 not found 
..when i try to mount the usbdrive.

this is in my fstab:

Code: Select all

/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: Select all

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.
Top
xenon
Guru
Guru
User avatar
Posts: 432
Joined: Wed Dec 25, 2002 1:47 am
Location: Europe

Re: bad superblock fat32 - can't mount

  • Quote

Post by xenon » Sun Nov 07, 2004 4:34 pm

andermic wrote:fdisk tells me this:

Code: Select all

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:
Top
SerfurJ
l33t
l33t
Posts: 824
Joined: Sat Apr 10, 2004 10:25 pm
Location: Texas

  • Quote

Post by SerfurJ » Sun Nov 07, 2004 5:05 pm

i figured it out. these were the modules i needed: nls_iso8859_1 and nls_cp437.
Top
dkaplowitz
Guru
Guru
User avatar
Posts: 596
Joined: Sat Nov 22, 2003 2:16 pm
Location: Philadelphia, PA
Contact:
Contact dkaplowitz
Website

  • Quote

Post by dkaplowitz » Tue Nov 09, 2004 2:15 am

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
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

  • Quote

Post by Gentree » Tue Nov 09, 2004 8:19 pm

@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)
Last edited by Gentree on Tue Nov 09, 2004 10:13 pm, edited 1 time in total.
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
Top
SerfurJ
l33t
l33t
Posts: 824
Joined: Sat Apr 10, 2004 10:25 pm
Location: Texas

  • Quote

Post by SerfurJ » Tue Nov 09, 2004 9:06 pm

Gentree,

ok, i did. but now your thread has a long line.
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

  • Quote

Post by Gentree » Tue Nov 09, 2004 10:19 pm

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
Top
Post Reply

15 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic