Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-18-2006, 06:32 PM
|
#1
|
Member
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135
Rep:
|
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. 
|
|
|
02-18-2006, 06:54 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
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.
|
|
|
02-18-2006, 07:36 PM
|
#3
|
Member
Registered: Oct 2005
Distribution: Slackware
Posts: 228
Rep:
|
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.
|
|
|
02-19-2006, 02:13 AM
|
#4
|
Member
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135
Original Poster
Rep:
|
Code:
mount /dev/sda1 /mnt/usbmem -t vfat
mount: /dev/sda1 is not a valid block device
That didn't do it, either...
|
|
|
02-19-2006, 03:19 AM
|
#5
|
LQ Newbie
Registered: Feb 2006
Posts: 1
Rep:
|
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).
|
|
|
02-19-2006, 04:56 AM
|
#6
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
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
|
|
|
02-19-2006, 05:47 AM
|
#7
|
Member
Registered: Jan 2006
Location: india
Distribution: FEDORA CORE 3
Posts: 103
Rep:
|
u sure its fat32 .. usb drives are normally fat16 or fat12 ~~~
its workin in winxp doesnt mean its fat32
|
|
|
02-19-2006, 05:51 AM
|
#8
|
Member
Registered: Jan 2006
Location: india
Distribution: FEDORA CORE 3
Posts: 103
Rep:
|
wot does fdisk /dev/sda
and then p says ?
|
|
|
02-19-2006, 09:16 AM
|
#9
|
Member
Registered: Dec 2005
Distribution: Slackware 10.2, Slackware 11.0
Posts: 135
Original Poster
Rep:
|
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. 
|
|
|
All times are GMT -5. The time now is 07:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|