Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB Harddrive: mount fail: vfat drive
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
coren2000
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2003
Posts: 75
Location: Toronto Canada

PostPosted: Thu Sep 07, 2006 2:09 am    Post subject: USB Harddrive: mount fail: vfat drive Reply with quote

Hello,

Could you please help me? I have a 2 USB external harddrives I wish to mount.

One is fat16
Other is fat32

I cannot mount the second with this command

Code:
mount -t vfat /dev/sda1 /mnt/usb


I can mount both drives with this command

Code:
mount -t msdos -o codepage=437 /dev/sda1 /mnt/usb


when I mount with the msdos option, my file/folder names are truncated to tightly.

Can someone please help me mount with wider file/folder names please?
_________________
"The most important design issue... is the fact that Linux is supposed to be fun...". - Linus Torvalds
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54805
Location: 56N 3W

PostPosted: Thu Sep 07, 2006 8:22 am    Post subject: Reply with quote

coren2000,

Both commands will need the
Code:
 -o codepage
option. If that is required for mount to work at all, it indicates you have set a defualt codepage to be used in the kernel other than 437 but not actually compiled it under NLS Support.

The error message that the vfat mount returns would be useful
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ChickensDontFly
n00b
n00b


Joined: 03 Jan 2004
Posts: 64
Location: TN

PostPosted: Thu Sep 07, 2006 8:25 am    Post subject: Reply with quote

What happens with mount -t auto?
Back to top
View user's profile Send private message
coren2000
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2003
Posts: 75
Location: Toronto Canada

PostPosted: Fri Sep 08, 2006 10:31 pm    Post subject: Reply with quote

Code:
localhost coren # mount -t vfat -o codepage=437 /dev/sda1 /mnt/usb
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

localhost coren # mount -t auto -o codepage=437 /dev/sda1 /mnt/usb
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

_________________
"The most important design issue... is the fact that Linux is supposed to be fun...". - Linus Torvalds
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54805
Location: 56N 3W

PostPosted: Sat Sep 09, 2006 1:21 pm    Post subject: Reply with quote

coren2000,

What does the end of dmesg show after you ave attempted to moount /dev/sda1 ?
Code:
-t auto
is a really bad idea. It asks mount to guess the filesystem.
Thats ok for reading, when mount guesses wrong. You just get a mess.

When you write ... well, you have backups don't you ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
coren2000
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2003
Posts: 75
Location: Toronto Canada

PostPosted: Tue Sep 19, 2006 11:03 pm    Post subject: Reply with quote

It says

Code:
Unable to load NLS charset iso8859-1
FAT: IO charset iso8859-1 not found

_________________
"The most important design issue... is the fact that Linux is supposed to be fun...". - Linus Torvalds
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Wed Sep 20, 2006 5:31 am    Post subject: Reply with quote

According to that message, the kernel that system is running on lacks iso8859-1 character set support in its Native Language Support. It would seem a new kernel is in order. When configuring the new kernel, under 'File systems --->', 'Native Language Support --->', select (at least one of) 'Codepage 437 (United States, Canada)' or 'NLS ISO 8859-1 (Latin 1; Western European Languages)', along with whatever else is of interest.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54805
Location: 56N 3W

PostPosted: Wed Sep 20, 2006 12:09 pm    Post subject: Reply with quote

coren2000,

You have selected a defualt codepage for VFAT to use but not actually made the codepage for the kernel.
You can use the mount option
Code:
-o codepage=<codepage>
to avoid a kernel build.
See
Code:
man mount
under FAT
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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