LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   USB flashdrive not mounting (https://www.linuxquestions.org/questions/slackware-14/usb-flashdrive-not-mounting-502125/)

dh2k 11-16-2006 02:38 AM

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.


cmk77 11-16-2006 02:49 AM

Try vfat instead of auto

arubin 11-16-2006 03:19 AM

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.

Alien Bob 11-16-2006 03:36 AM

Quote:

sda: unknown partition table
What does the command
Code:

fdisk -l
tell you about your USB flashdrive?

Eric

sonika_singhi 11-16-2006 04:55 AM

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.)

rkrishna 11-17-2006 06:09 AM

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


All times are GMT -5. The time now is 10:19 PM.