LinuxQuestions.org
Visit Jeremy's Blog.
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 11-16-2006, 02:38 AM   #1
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 211

Rep: Reputation: 52
USB flashdrive not mounting


I have used many other distros from RH/FC, Mandriva, Ubuntu, knoppix and others and I have had no problem getting my USB flashdrive to work. If it has not worked from install then I've been able to tweak /etc/fstab and get the device mounted.

This is not working in Slackware 11 though (2.4.33.3 Kernel).

I have tried using:
Code:
/dev/sda1 /media/flashdrive  auto defaults,users,noauto 0 0
and then
Code:
/dev/sda2 /media/flashdrive  auto defaults,users,noauto 0 0
in /etc/fstab. This doesn't seem to work/mount.


Here is some output from a manual mount:
Code:
root@holly-desktop:~# mount -t auto /dev/sda2 /media/flashdrive
mount: /dev/sda2 is not a valid block device
root@holly-desktop:~# mount -t auto /dev/sda1 /media/flashdrive
mount: /dev/sda1 is not a valid block device
root@holly-desktop:~#
How does Slack recognise this device?


Also here is the (end part) output of dmesg:
Code:
hub.c: new USB device 00:07.4-2, assigned address 2
usb.c: USB device 2 (vend/prod 0xea0/0x2168) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: Generic   Model: USB Flash Disk    Rev: 2.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 511488 512-byte hdwr sectors (262 MB)
sda: Write Protect is off
 sda: unknown partition table
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
 
Old 11-16-2006, 02:49 AM   #2
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: slackware, centos, scientificlinux
Posts: 128

Rep: Reputation: 25
Try vfat instead of auto
 
Old 11-16-2006, 03:19 AM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
I have this in fstab

/dev/sdc1 /media/flash vfat user,noauto,umask=0 0 0

I have found handling of flash drives more reliable in 2.6 than 2.4. The upgrade is simply a matter of installing packkages from /extras/ in the installation disc.
 
Old 11-16-2006, 03:36 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
sda: unknown partition table
What does the command
Code:
fdisk -l
tell you about your USB flashdrive?

Eric
 
Old 11-16-2006, 04:55 AM   #5
sonika_singhi
Member
 
Registered: Oct 2004
Location: india
Distribution: fedora core
Posts: 34

Rep: Reputation: 15
Thumbs up file system matters

Quote:
Originally Posted by dh2k
I have used many other distros from RH/FC, Mandriva, Ubuntu, knoppix and others and I have had no problem getting my USB flashdrive to work. If it has not worked from install then I've been able to tweak /etc/fstab and get the device mounted.

This is not working in Slackware 11 though (2.4.33.3 Kernel).

I have tried using:
Code:
/dev/sda1 /media/flashdrive  auto defaults,users,noauto 0 0
and then
Code:
/dev/sda2 /media/flashdrive  auto defaults,users,noauto 0 0
in /etc/fstab. This doesn't seem to work/mount.


Here is some output from a manual mount:
Code:
root@holly-desktop:~# mount -t auto /dev/sda2 /media/flashdrive
mount: /dev/sda2 is not a valid block device
root@holly-desktop:~# mount -t auto /dev/sda1 /media/flashdrive
mount: /dev/sda1 is not a valid block device
root@holly-desktop:~#
How does Slack recognise this device?


Also here is the (end part) output of dmesg:
Code:
hub.c: new USB device 00:07.4-2, assigned address 2
usb.c: USB device 2 (vend/prod 0xea0/0x2168) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: Generic   Model: USB Flash Disk    Rev: 2.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 511488 512-byte hdwr sectors (262 MB)
sda: Write Protect is off
 sda: unknown partition table
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.


Filesystem type(s): We'll assume that a USB device can have either a Linux ext3 or a DOS/Windows FAT filesystem. (You could've set the filesystem type to auto, but on certain systems this seems to prevent normal users from mounting USB devices with FAT filesystems. If you have the need to use a USB device with something other than ext3 and FAT, just add the type to the list – but it's rather unlikely you'll encounter anything like that.)
 
Old 11-17-2006, 06:09 AM   #6
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
Quote:
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
seems like the device is /dev/sda2,
first try $mount and c what all are mounted. since you have an entry in fstab you dont need to type all teh commands," mount /media/flashdrive " is enough. make sure /media/flashdrive exists.
after plugging in usb, do "rescan-scsi-bus -l "

please check my signature. also
Quote:
I have this in fstab

/dev/sdc1 /media/flash vfat user,noauto,umask=0 0 0

I have found handling of flash drives more reliable in 2.6 than 2.4. The upgrade is simply a matter of installing packkages from /extras/ in the installation disc.
fstab entry is wrong

please check my signature
 
  


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
Yet another USB Flashdrive Mounting Question - Memorex LALizzie Linux - General 2 11-18-2006 09:35 AM
Problems mounting USB flashdrive gustavderdrache Linux - Hardware 6 03-18-2006 12:49 PM
I need help mounting my flashdrive BajaNick Linux - Hardware 5 04-16-2005 01:59 PM
Mounting a USB flashdrive under Gentoo. uman Linux - Hardware 1 12-25-2004 07:35 PM
USB FlashDrive -- Again kadalz Linux - Newbie 1 10-12-2003 11:20 AM

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

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