Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
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.
Running Slackware 10.1 - 2.6.11.10 and recently plugged in an usb flash memory
Kingston Data Traveller II - 256 Mb and it worked OK for a month and a half.
This is a dual boot computer and the other operating system is MSwin98.
After an electricity cut down the memory stick stopped working on Linux but is still working
on Win98. As far as I can see from the logs the Linux system detects this flash memory all
right but there is no /dev/sda1 device created neither /dev/sda and it cannot be mounted any more - "mount: special device /dev/sda1 does not exist"
The line in fstab is:
My question is what has happened and how can I fix it?
Here is the log from ~#dmesg
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.2
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
ACPI: PCI interrupt 0000:00:07.2[D] -> GSI 10 (level, low) -> IRQ 10
uhci_hcd 0000:00:07.2: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
uhci_hcd 0000:00:07.2: irq 10, io base 0xc400
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb 1-1: new full speed USB device using uhci_hcd and address 2
.................................................................................................... ....................
Initializing USB Mass Storage driver...
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
scsi1 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
.................................................................................................... ...........
Vendor: Kingston Model: DataTraveler II Rev: 1.13
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 442368 512-byte hdwr sectors (226 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 442368 512-byte hdwr sectors (226 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
For some reason the devices /dev/sda and /dev/sda1 were really missing and I recreated them like this:
~#mknod -m 666 /dev/sda b 8 0
~#mknod -m 666 /dev/sda1 b 8 0
then I tried to mount the flash drive like this:
~#mount -t vfat /dev/sda1 /mnt/hd
but it gave me the following error : bad option, bad superblock, etc ...etc
so I thought I might as well put a new system on the flash drive like this:
~# mkfs /dev/sda1
and this did the trick! It created a new ext2 filesystem and the according disk structure but then
I needed this flash drive to be used by windows as well as by linux so I had to do again:
~# mkdosfs -F 32 /dev/sda1
and that was it . Now I can mount it again the normal way:
fstab entry:
/dev/sda1 /mnt/usb auto rw,user,uid=1002,gid=0,umask=037 0 0
root@survivor:/home/survivor# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 058f:9380 Alcor Micro Corp. USB Flash drive
Bus 001 Device 001: ID 0000:0000
root@survivor:/home/survivor# mount /dev/sda1
mount: special device /dev/sda1 does not exist
root@survivor:/home/survivor# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 058f:9380 Alcor Micro Corp. USB Flash drive
Bus 001 Device 001: ID 0000:0000
root@survivor:/home/survivor# # mount -t usbfs none /proc/bus/usb
root@survivor:/home/survivor# mount /dev/sda1
mount: special device /dev/sda1 does not exist
root@survivor:/home/survivor# none on /proc/bus/usb type usbfs (rw)
bash: syntax error near unexpected token `('
root@survivor:/home/survivor# none on /proc/bus/usb type usbfs
bash: none: command not found
root@survivor:/home/survivor# none on /proc/bus/usb
bash: none: command not found
root@survivor:/home/survivor# mount none on /proc/bus/usb type usbfs (rw)
bash: syntax error near unexpected token `('
root@survivor:/home/survivor# mount none on /proc/bus/usb type usbfs
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
root@survivor:/home/survivor# mount device usb
mount: mount point usb does not exist
root@survivor:/home/survivor# mkdir /mnt/usb
root@survivor:/home/survivor# mount /dev/sda1
mount: special device /dev/sda1 does not exist
root@survivor:/home/survivor# mount /dev/sdb1
mount: special device /dev/sdb1 does not exist
root@survivor:/home/survivor# mount /dev/sd
mount: can't find /dev/sd in /etc/fstab or /etc/mtab
root@survivor:/home/survivor# mount /dev/sda1
mount: special device /dev/sda1 does not exist
root@survivor:/home/survivor# mount -t usbfs none /proc/bus/usb
mount: none already mounted or /proc/bus/usb busy
mount: according to mtab, usbfs is already mounted on /proc/bus/usb
root@survivor:/home/survivor# mount /proc/bus/usb type usbfs (rw)
bash: syntax error near unexpected token `('
root@survivor:/home/survivor# ls -l /proc/bus/usb
total 0
dr-xr-xr-x 2 root root 0 2005-07-11 18:29 001
dr-xr-xr-x 2 root root 0 2005-07-11 18:29 002
-r--r--r-- 1 root root 0 2005-07-11 23:30 devices
root@survivor:/home/survivor# less /proc/scsi/usb-storage-0/1
/proc/scsi/usb-storage-0/1: No such file or directory
root@survivor:/home/survivor# mkdir -m 777 /mnt/usb
root@survivor:/home/survivor# mount -t vfat /dev/sda1 /mnt/usb
mount: special device /dev/sda1 does not exist
root@survivor:/home/survivor# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 058f:9380 Alcor Micro Corp. USB Flash drive
Bus 001 Device 001: ID 0000:0000
root@survivor:/home/survivor# mknod -m 666 /dev/sda b 8 0
root@survivor:/home/survivor# mknod -m 666 /dev/sda1 b 8 0
root@survivor:/home/survivor# mount -t vfat /dev/sda1 /mnt/hd
mount: /dev/sda1 is not a valid block device
root@survivor:/home/survivor# mkfs /dev/sda1
mke2fs 1.35 (28-Feb-2004)
/dev/sda1 is entire device, not just one partition!
Proceed anyway? (y,n) n
root@survivor:/home/survivor# mkdosfs -F 32 /dev/sda1
mkdosfs 2.10 (22 Sep 2003)
/dev/sda1: No such device or address
root@survivor:/home/survivor# t was it . Now I can mount it again the normal way:
bash: t: command not found
root@survivor:/home/survivor# mkdosfs -F 32 /dev/sda1
mkdosfs 2.10 (22 Sep 2003)
/dev/sda1: No such device or address
root@survivor:/home/survivor# mknod -m 666 /dev/sda1 b 8 0
mknod: `/dev/sda1': File exists
root@survivor:/home/survivor# mkdosfs -F 32 /dev/sda1
mkdosfs 2.10 (22 Sep 2003)
/dev/sda1: No such device or address
root@survivor:/home/survivor# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 058f:9380 Alcor Micro Corp. USB Flash drive
Bus 001 Device 001: ID 0000:0000
root@survivor:/home/survivor# ls -l /proc/bus/usb
total 0
dr-xr-xr-x 2 root root 0 2005-07-11 18:29 001
dr-xr-xr-x 2 root root 0 2005-07-11 18:29 002
-r--r--r-- 1 root root 0 2005-07-11 23:30 devices
root@survivor:/home/survivor# mount /dev/sda1
mount: /dev/sda1 is not a valid block device
root@survivor:/home/survivor#
From one error, I got another
How could I fix this?
Hello,
I have such a problem too.
I've carefully read this thread and the linked "basic verifications", but I still cannot use the micro-sd.
After all the attempts, the best I could do is mounting read-only.
Then I took another micro-sd, from a mobile, and tested it.
I couldn't mount it either.
What do you think? Is there a chance that the card adapter and/or the card reader is out of order?
Thank you
Code:
debian:~# mount /mnt/usbkey/
mount: you must specify the filesystem type
debian:~# mount -t auto /dev/sda /mnt/usbkey/
sda
debian:~# mount -t auto /dev/sda1 /mnt/usbkey/
mount: you must specify the filesystem type
debian:~# mknod -m 666 /dev/sda1 b 8 0
debian:~# mount -t auto /dev/sda1 /mnt/usbkey/
mount: No medium found
# dmesg | tail
usb 2-3: new high speed USB device using ehci_hcd and address 16
usb 2-3: configuration #1 chosen from 1 choice
scsi13 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 16
usb-storage: waiting for device to settle before scanning
Vendor: USB 2.0 Model: SD/MMC Reader Rev:
Type: Direct-Access ANSI SCSI revision: 00
sd 13:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete
usb 2-3: USB disconnect, address 16
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.