LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-04-2009, 10:50 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,139

Rep: Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307
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.
 
Old 06-06-2009, 07:56 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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.
 
Old 06-07-2009, 03:39 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,139

Original Poster
Rep: Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307
Quote:
Originally Posted by Bruce Hill View Post
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.
 
Old 06-07-2009, 03:50 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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.
 
Old 06-15-2009, 03:20 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,139

Original Poster
Rep: Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307Reputation: 2307
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 .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb disk not mounting automatically prabhatsoni Linux - Software 5 07-28-2007 06:58 AM
Mounting a USB Flash Disk jnbalneg Linux - General 1 04-18-2006 06:50 PM
Mounting a USB disk mabeken Linux - Hardware 4 04-03-2006 08:52 AM
usb controller dies mounting external usb hard disk komasoftware Linux - Hardware 4 11-30-2005 01:18 PM
Problem in mounting USB disk kernelbuster Linux - Hardware 2 02-24-2005 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration