LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   miossing cp437 mounting usb disk (https://www.linuxquestions.org/questions/slackware-14/miossing-cp437-mounting-usb-disk-730671/)

business_kid 06-04-2009 10:50 AM

miossing cp437 mounting usb disk
 
Hi Everyone,

I'm trying to talk to my digital camera with a 64 bit amd laptop on Slamd64-12.2. This mount command fails

mount -s -t vfat /dev/sdb1 /mnt

mount gives the usual(meaningless) error message. dmesg |tail tells me codepage 437 was not found. I should be on codepage 850, iso-8859-15, iso-8859-1, utf-8 or something. Where the hell is it getting cp 437?

/etc/environment doesn't exist and in fact the whole console environment is close to defaults. I rolled my own kernel and thought cp 437 went out with m$dos (Anyone old enough to remember that?). I rolled my own kernel some and never bothered with cp 437. Who'd need that, I thought? Waste of space. Hmmmm.

Bruce Hill 06-06-2009 07:56 AM

Using Slackware64 here "mount /dev/sdb1 /flash" works just fine.

But if you need it, it's in the Slackware64 kernel:
Code:

mingdao@jeremiah:~$ less /boot/config | grep -i 437
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_NLS_CODEPAGE_437=y

Maybe consider switch to Slackware64 now.

business_kid 06-07-2009 03:39 AM

Quote:

Originally Posted by Bruce Hill (Post 3565158)
Using Slackware64 here "mount /dev/sdb1 /flash" works just fine.

But if you need it, it's in the Slackware64 kernel:
Code:

mingdao@jeremiah:~$ less /boot/config | grep -i 437
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_NLS_CODEPAGE_437=y

Maybe consider switch to Slackware64 now.

Thank you. I have actually worked around it. I rolled my own kernel some time back as I had trouble with every chip in this box. Distro kernels don't suit. Slamd64's original kernel (Modeled on slackware's) gave issues on acpi, compile times, disk speeds, and a whole bunch more. There has been a _long_ war to get this box behaving and will be another to refine it when I have the mental energy. I was hoping to mount fat drives without cp 437 by resetting locally. My fix was
sed 's/850/437/' < ./2.6.29.1-SD64/kernel/fs/nls/nls_cp850.ko >
./2.6.29.1-SD64/kernel/fs/nls/nls_cp437.ko

and roll myself one that way. The LAST thing I want to suffer is another kernel recompile.

Bruce Hill 06-07-2009 03:50 AM

I feel your pain. As good as the Slackware kernels are built, they
also usually require a recompile on most of my boxen. And remember,
that kernel .config you just made is portable. Save it and you can
use it compiling a kernel on any box, any distro. I always issue
Code:

zcat /proc/config.gz > custom-kernel.config
after my latest build, to have for later.

business_kid 06-15-2009 03:20 AM

P.S. to this. I am an idiot

I had set CP437 in the FAT filesystem options and didn't include it!

bash-3.1# grep -n 437 .config
2525:CONFIG_FAT_DEFAULT_CODEPAGE=437
2599:# CONFIG_NLS_CODEPAGE_437 is not set

Now I know where mount got the idea cp437 was needed :-/. I had told it!

/goes off to reinflate ego :).


All times are GMT -5. The time now is 05:05 PM.