LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-18-2006, 06:32 PM   #1
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Rep: Reputation: 15
vfat fails when trying to mount. Help?


I'm trying to mount an FAT32 usb drive. Simple, I've done this before.

Code:
mount /dev/sda /mnt/usbmem -t vfat
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Wow...first time I got that message. Strange. I figured I'd try this to se what I would get...
Code:
dmesg | tail
sda : READ CAPACITY failed.
sda : status = 1, message = 00, host = 0, driver = 08
Info fld=0x0, Current sd00:00: sns = f0  2
ASC=3a ASCQ= 0
Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
sda : block size assumed to be 512 bytes, disk size 1GB.
sda: test WP failed, assume Write Enabled
 sda: I/O error: dev 08:00, sector 0
 I/O error: dev 08:00, sector 0
 unable to read partition table
Yes...I'm not really sure what to do now. The memory stick works with WinXP, so I know it works. I just can't get it to work here.

I'm using a 2.4 kernel. I got a memory stick to work before with a 2.6 kernel installed in a different box. Why I picked a 2.4 kernel for this box, I'm not sure, but I plan to upgrade soon.

Any help you can give would be HIGHLY appreciated.
 
Old 02-18-2006, 06:54 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I think you need a longer tail, something like tail --lines=50. What you should be seeing is a partition number in the output, for example /dev/sda4. Once you have that, you can use it instead of just /dev/sda.
 
Old 02-18-2006, 07:36 PM   #3
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
Crobat:
/dev/sda is the entire device. What you want is to mount the first partition on that device, which would be /dev/sda1.

Instead of typing in:
Code:
mount /dev/sda /mnt/usbmem -t vfat
Try the following:
Code:
mount /dev/sda1 /mnt/usbmem -t vfat
Let us know if that did it.
 
Old 02-19-2006, 02:13 AM   #4
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Original Poster
Rep: Reputation: 15
Code:
mount /dev/sda1 /mnt/usbmem -t vfat
mount: /dev/sda1 is not a valid block device
That didn't do it, either...
 
Old 02-19-2006, 03:19 AM   #5
sabitdisk
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
I suggest you to try /dev/sdb1

I have two storage devices, one is an USB memory stick and the other is an external hard disk in an USB HDD box.
I've mounted the first as /dev/sda1 and then "unmounted and removed" it.
When I've attempted to mount the other as /dev/sda1 I've got the same message.
Then I've tried to mount it as /dev/sdb1 and it is mounted ok.

After restarting the system, I can mount it as /dev/sda1 again.
If you have logical partitions in your storage device, try starting the partition number from 5 (example: /dev/sda5).
 
Old 02-19-2006, 04:56 AM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Can you run a tail in a console window prior to plugging in the device? That will show which device is being recognised by the kernel (in my case, /dev/sda4):
Code:
# tail -f /var/log/messages
Feb 19 20:54:09 fender kernel: usbcore: registered new driver usb-storage
Feb 19 20:54:09 fender kernel: USB Mass Storage support registered.
Feb 19 20:54:14 fender kernel:   Vendor: Generic   Model:                   Rev:
Feb 19 20:54:14 fender kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Feb 19 20:54:14 fender kernel: SCSI device sda: 1007616 512-byte hdwr sectors (516 MB)
Feb 19 20:54:14 fender kernel: sda: Write Protect is off
Feb 19 20:54:14 fender kernel: SCSI device sda: 1007616 512-byte hdwr sectors (516 MB)
Feb 19 20:54:14 fender kernel: sda: Write Protect is off
Feb 19 20:54:14 fender kernel:  sda: sda4
Feb 19 20:54:14 fender kernel: sd 0:0:0:0: Attached scsi removable disk sda
 
Old 02-19-2006, 05:47 AM   #7
dipenchaudhary
Member
 
Registered: Jan 2006
Location: india
Distribution: FEDORA CORE 3
Posts: 103

Rep: Reputation: 15
u sure its fat32 .. usb drives are normally fat16 or fat12 ~~~
its workin in winxp doesnt mean its fat32
 
Old 02-19-2006, 05:51 AM   #8
dipenchaudhary
Member
 
Registered: Jan 2006
Location: india
Distribution: FEDORA CORE 3
Posts: 103

Rep: Reputation: 15
wot does fdisk /dev/sda
and then p says ?
 
Old 02-19-2006, 09:16 AM   #9
Crobat
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sabitdisk
I suggest you to try /dev/sdb1

I have two storage devices, one is an USB memory stick and the other is an external hard disk in an USB HDD box.
I've mounted the first as /dev/sda1 and then "unmounted and removed" it.
When I've attempted to mount the other as /dev/sda1 I've got the same message.
Then I've tried to mount it as /dev/sdb1 and it is mounted ok.

After restarting the system, I can mount it as /dev/sda1 again.
If you have logical partitions in your storage device, try starting the partition number from 5 (example: /dev/sda5).
This one's the winner. Worked beautifully. Thanks everyone.
 
  


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
Cannot mount vfat bsdpowa Fedora 5 07-28-2005 09:22 AM
Repeat mounting a VFAT device fails iscurrah Linux - Hardware 0 02-05-2005 06:45 AM
Can't mount VFAT oneandoneis2 Linux - Hardware 5 12-18-2004 10:54 PM
Encrypted Reiserfs Fails to Mount -- Reiserfsck Fails as Well antic Linux - Hardware 0 07-30-2004 04:32 PM
Mount VFAT files? Intoxicado Linux - Newbie 2 03-23-2003 11:21 AM

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

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