LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-20-2009, 11:12 AM   #1
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
mounting usb-stick manually


Solved.

when i try to mount a stick i get this:
Code:
# mount /dev/sdb1 /media/disk
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Code:
# dmesg | tail
[ 2852.066714] scsi 2:0:0:0: Direct-Access     USB_DISK USB_DISK         1.00 PQ: 0 ANSI: 0
[ 2852.068812] sd 2:0:0:0: [sdb] 2009088 512-byte hardware sectors: (1.02 GB/981 MiB)
[ 2852.069312] sd 2:0:0:0: [sdb] Write Protect is off
[ 2852.069318] sd 2:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 2852.069321] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 2852.071185] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 2852.071193]  sdb: sdb1
[ 2852.072746] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[ 2882.202526] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 2882.240087] FAT: codepage cp437 not found
so: do i a) miss a tool to mount it (like msdos-tools or such) or b) did i miss something when compiling the kernel.

thank you

Last edited by j1alu; 10-21-2009 at 12:45 PM.
 
Old 10-20-2009, 11:15 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
try
Code:
mount -t vfat /dev/sdb1 /media/disk
 
Old 10-20-2009, 11:39 AM   #3
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by repo View Post
try
Code:
mount -t vfat /dev/sdb1 /media/disk
thanks, the result is the same.
apt-cache search vfat only gave me the msdostools, and they are installed. as said: i compiled the kernel on my own, without knowing exactly what i did (just for fun)...oh my. i wouldnt know how to get to know if that is the problem.
 
Old 10-20-2009, 11:44 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
What filesystem is on the drive?
If it is ntfs, you need to compile it in the kernel

Code:
mount -t ntfs /dev/sdb1 /media/disk
 
Old 10-20-2009, 12:10 PM   #5
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by repo View Post
What filesystem is on the drive?
If it is ntfs, you need to compile it in the kernel

Code:
mount -t ntfs /dev/sdb1 /media/disk
that is difficult to answer for me. fdisk -l gives me this:
/dev/sdb1 1 1994 1004287+ 6 FAT16
so, as far i understand, it aint a ntfs-system. or better: mounting it with -t ntfs tells me so.
on my other installation i may mount it with a simple
Quote:
mount /dev/sdb1 /media/disk
but its a different kernel.
thanks

Last edited by j1alu; 10-20-2009 at 12:13 PM.
 
Old 10-20-2009, 01:50 PM   #6
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Here's another option to try:

Code:
mount -t auto /dev/sdb1 /media
This works for me with a vfat formatted usb flash drive.
 
Old 10-21-2009, 02:46 AM   #7
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Original Poster
Rep: Reputation: Disabled
ok, i booted into a lenny-backorts kernel and had no problems mounting the same stick.
how may i figure out whats missing in the other kernel? thanks

i yet gotta try the mount -a way trooper has mentioned, but, to be honest, i aint got much hope it will work (well: i will see).

greetings

Last edited by j1alu; 10-21-2009 at 02:47 AM.
 
Old 10-21-2009, 04:23 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Make sure you have the module
Quote:
nls_cp437
installed

Code:
modprobe -l | grep nls_cp437
 
Old 10-21-2009, 04:58 AM   #9
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by repo View Post
Make sure you have the module

installed

Code:
modprobe -l | grep nls_cp437
awsome !
so: youre right, the mentioned module is installed in the backports-kernel (which mounts the stick) and aint installed on mine (under /lib/modules/2.6.30-mt1/kernel/fs/nls i cant find it)

just to be sure: i got to re-configure the kernel and run the compilation again, correct?
thanks a lot
 
Old 10-21-2009, 12:09 PM   #10
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,035

Rep: Reputation: 65
Quote:
Originally Posted by j1alu View Post
awsome !
so: youre right, the mentioned module is installed in the backports-kernel (which mounts the stick) and aint installed on mine (under /lib/modules/2.6.30-mt1/kernel/fs/nls i cant find it)

just to be sure: i got to re-configure the kernel and run the compilation again, correct?
thanks a lot
Can you post:
Code:
uname -a
sudo fdisk -l

Last edited by cola; 10-21-2009 at 12:12 PM.
 
Old 10-21-2009, 12:45 PM   #11
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Original Poster
Rep: Reputation: Disabled
SOLVED ( i dont know how to edit the first post, sorry)
repo wrote:
Code:
nls_cp437
which was correct. i ran the make menuconfig and the compilation again and added it under:
filesystems -> native language support -> codepage 437 (UnitedStates, Canada).
Not that i would understand it, but im happy it works again.



cola wrote:
Quote:
Can you post:
Code:

uname -a
sudo fdisk -l
though the problem seems to be solved, sure:
Code:
$ uname -a
Linux desktop-lenny 2.6.30-mt2 #1 Wed Oct 21 18:37:45 CEST 2009 i686 GNU/Linux
Code:
root@desktop-lenny# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xec31ec31

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         851     6835626   83  Linux
/dev/sda2             852       19457   149452695    5  Extended
/dev/sda5             852        1181     2650693+  82  Linux swap / Solaris
/dev/sda6            1182       15509   115089628+  83  Linux
/dev/sda7   *       15510       19457    31712278+  83  Linux

Disk /dev/sdb: 1028 MB, 1028653056 bytes
16 heads, 63 sectors/track, 1993 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x49e2a461

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1994     1004287+   6  FAT16

thanks for all the help.
greetings

Last edited by j1alu; 10-21-2009 at 12:46 PM.
 
  


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
how does one manually mount a usb stick ninja master Linux - Hardware 2 03-16-2009 02:17 PM
mounting to USB stick dolphs Linux - General 1 08-06-2007 08:33 AM
mounting manually USB pens on 2.6 kernel Michele Spinolo Linux - Hardware 4 04-06-2005 04:58 AM
mounting a USB stick.. kurrupt Linux - Hardware 2 01-01-2005 01:13 AM
Manually mounting a USB stick in Suse 9.1 Celettu Linux - Hardware 4 09-14-2004 11:49 AM

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

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

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