LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 02-28-2008, 01:22 AM   #1
toxic_brain
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Rep: Reputation: 0
USB storage device does not get mounted.


I ma trying to mount my mobile phone (Sony Ericsson w810i) into RH9 with KDE.
It detects and appers in sda
Code:
[root@new anoop]# fdisk -l /dev/sda

Disk /dev/sda: 500 MB, 500969984 bytes
64 heads, 32 sectors/track, 477 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1       478    489228+   6  FAT16
but it throws-up an error when i try to mount.
Code:
[root@new anoop]# mount -t vfat /dev/sda /home/anoop/temp/drive
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       or too many mounted file systems
I even tried with fat=16 option,
Code:
[root@new anoop]# mount -t vfat -o fat=16 /dev/sda /home/anoop/temp/drive
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       or too many mounted file systems
pls help.
 
Old 02-28-2008, 05:34 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Code:
[root@new anoop]# mount -t vfat /dev/sda /home/anoop/temp/drive
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       or too many mounted file systems
FAT16 != vfat
So try:

Code:
mount  -t  msdos   /dev/sda  /home/anoop/temp/drive
 
Old 02-28-2008, 05:58 AM   #3
toxic_brain
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I tried, but
Code:
[root@new anoop]# mount  -t  msdos   /dev/sda  /home/anoop/temp/drive
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       or too many mounted file systems

Last edited by toxic_brain; 02-28-2008 at 05:59 AM.
 
Old 02-28-2008, 06:27 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You are trying to mount the drive device instead of the filesystem. Use /dev/sda1 instead of /dev/sda.
 
Old 02-28-2008, 07:45 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Use /dev/sda1 instead of /dev/sda
The devil's in the details. Well spotted!
 
Old 02-28-2008, 11:25 PM   #6
toxic_brain
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I tried, but
Code:
[root@new anoop]# mount -t msdos /dev/sda1  /home/anoop/temp/drive
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       or too many mounted file systems
by the way I tried with usbfs as,
Code:
[root@new anoop]# mount -t usbfs /dev/sda1  /home/anoop/temp/drive
and it got mounted without any error.
But the content shows up the mounted folder is something different than in the memory card.
Code:
[root@new anoop]# ls /home/anoop/temp/drive
001  002  003  004  devices  drivers
wat is wrong?
 
Old 02-29-2008, 03:54 AM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Originally Posted by tredegar View Post
FAT16 != vfat
So try:

Code:
mount  -t  msdos   /dev/sda  /home/anoop/temp/drive
Wrong, FAT16 is still vfat. Also the example that you specify is also wrong. The correct syntax to mount devices is the following.

mount -t vfat /dev/sda1 /home/anoop/temp/drive

Just forgot to specify the partition number that is why it error out. A raw device can not be mounted.

If you do not want to support long file names you can use msdos.
 
Old 02-29-2008, 04:16 AM   #8
toxic_brain
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
no luck for me
Code:
[root@new anoop]# fdisk -l /dev/sda1

Disk /dev/sda1: 500 MB, 500969984 bytes
64 heads, 32 sectors/track, 477 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

     Device Boot    Start       End    Blocks   Id  System
[root@new anoop]# mount -t vfat /dev/sda1 /home/anoop/temp/drive
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       or too many mounted file systems
 
Old 02-29-2008, 05:29 PM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Look at "sudo file -s /dev/sda1". Double check that you have the right filesystem.
 
Old 02-29-2008, 11:54 PM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Your problem could be that /home is mounted using the option nodev, no file system on /dev/sda1, the device node /dev/sda1 is already mounted, or the file system is not FAT12/16/32. Assuming the directory /mnt/drive is created, I suggest mount it using the following command.

mount -v -t auto /dev/sda1 /mnt/drive

If it still has problems, use a more recent Linux distribution because Redhat 9 is toooooooooooooo old.

Are you sure it is a USB Flash storage device because a memory card such as SD is a lot different than a USB Flash storage. The difference is that one is a card reader and the other uses USB. The latest kernel supports card readers using a separate module and they are designated differently when being listed under fdisk.

Using a phone as a storage device in Linux may not work.
 
  


Reply



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 drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
USB storage device mounted and regonized in Suse but files not recognized Sarge. tuffstuff Linux - Newbie 6 02-11-2007 11:19 PM
Detect storage device by checking mounted file system to Linux syseeker Programming 4 02-06-2006 10:14 AM
Assign one USB-storage device to one device file Misel Linux - Hardware 1 08-28-2004 03:52 AM
USB Mass Storage mounted as floppyfs instead of vfat... andi88 Linux - Hardware 2 07-06-2004 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:35 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