Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-06-2006, 10:15 PM
|
#1
|
Member
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161
Rep:
|
Can't Mount Fat32 partition
I am having a problem mounting my fat32 partition. It keeps returning
Code:
cetra linux # mount /music
mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
I have made sure that MS-DOS and FAT filesystems are compiled into my kernel. Dmesg returns with:
Code:
FAT: codepage cp850 not found
Here is my fstab:
Code:
/dev/hda2 /boot reiserfs noauto,noatime,notail 1 2
/dev/hda3 / reiserfs noatime,notail 0 1
/dev/hda4 /home reiserfs noatime,notail 0 0
/dev/hdb1 /music auto noatime, 0 0
/dev/hdb2 none swap sw 0 0
/dev/hdc /dvd auto noauto,ro 0 0
/dev/hdd /cdr auto noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
The partition exists, here's fdisk -l
Code:
cetra linux # fdisk -l /dev/hdb
Disk /dev/hdb: 13.5 GB, 13578485760 bytes
16 heads, 63 sectors/track, 26310 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 23252 11718976+ b W95 FAT32
/dev/hdb2 23253 26310 1541232 82 Linux swap / Solaris
Any Ideas on how to mount this partition?
|
|
|
08-06-2006, 11:03 PM
|
#2
|
Member
Registered: Jul 2006
Location: Paraná, Argentina
Distribution: Frugalware 0.6 (Terminus) - Kubuntu 7.04 (Feisty Fawn Herd 5)
Posts: 217
Rep:
|
Greets. Did you already tried by hand like this?:
# mount -t vfat /dev/hdb1 /music
or may be modifying this line:
/dev/hdb1 /music auto noatime, 0 0
like this?:
/dev/hdb1 /music vfat defaults,noatime 0 0
|
|
|
08-06-2006, 11:03 PM
|
#3
|
Member
Registered: Oct 2004
Distribution: Slackware
Posts: 376
Rep:
|
Code:
FAT: codepage cp850 not found
Check your kernel config. Make sure NLS_CODEPAGE_850 is enabled. In make menuconfig (for 2.6 kernels) it can be found in:
File systems -> Native Language Support -> Codepage 850 (Europe)
|
|
|
08-06-2006, 11:34 PM
|
#4
|
Member
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161
Original Poster
Rep:
|
runnerfrog: both of those suggestions yielded the same results
zhangmaike: that is what is listed in my kernel config.
|
|
|
08-06-2006, 11:53 PM
|
#5
|
Member
Registered: Oct 2004
Distribution: Slackware
Posts: 376
Rep:
|
Is codepage 850 set to be built-in or built as a module?
|
|
|
08-07-2006, 12:06 AM
|
#6
|
Member
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161
Original Poster
Rep:
|
its set to be built in......is it the correct codepage?
|
|
|
08-07-2006, 02:09 AM
|
#7
|
Member
Registered: Oct 2004
Distribution: Slackware
Posts: 376
Rep:
|
Sure looks like it... I've never had this error, nor do I routinely mount FAT filesystems, but the only codepage listed anywhere in the kernel config containing the number 850 is the one that you apparently already have built in.
Any other kernel messages mentioning cp850?
|
|
|
08-07-2006, 03:22 PM
|
#8
|
Member
Registered: Jul 2006
Location: Paraná, Argentina
Distribution: Frugalware 0.6 (Terminus) - Kubuntu 7.04 (Feisty Fawn Herd 5)
Posts: 217
Rep:
|
The best way of having installed the codepages -in my experience- is as modules.
So let's try to change for utf8 instead, in fstab:
/dev/hdb1 /music vfat defaults,utf8,umask=007 0 1
and reboot, just in case we're messing with automount; many people say that rebooting is the best way of restarting automount (but: /etc/rc.d/init.d/autofs reload). If it works, eventually you can add "noatime".
To see messages about automount (just in case): tail -100 /var/log/messages | grep automount
|
|
|
All times are GMT -5. The time now is 03:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|