Removed bad hard drive from computer, now flash drive won't mount.
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.
Removed bad hard drive from computer, now flash drive won't mount.
I think my subject says it all.
I had 3 hd in a RAID1 array. I removed a failing drive and now my flash drive won't mount. I suspect it is related to the fact that now my flash drive gets /dev/sdc (before it was /dev/sdd).
Any ideas on how to make the flash drive mount all they time - even if I remove a drive? Is there a way to specify what /dev/sdX the usb ports can have? Is there a way to set aside a /dev/sdX to not allow my flash drive to get this?
Remove or uncomment incorrect info in /etc/fstab. You have a number of distro's in your profile, so I'm not sure which one this is.
With SuSE, if you have an entry for the device in /etc/fstab, then Hal won't mount it. For removable devices, if you want to have an /etc/fstab entry instead, use either "LABEL=" or "UUID=" instead for removable devices. Then if it is assigned a different device node, it will still mount. Be sure to use the "noauto" option. If you use the "user" or "users" option together with the "uid=" and "gid=" options then you wouldn't need to su to root to mount it and you could have it mounted in ~/.profile. Then it would be mounted when you log in.
I think your main problem is the /dev/sdc exists in /etc/fstab and the info is incorrect.
Monitor /var/log/messages with "sudo -f /var/log/messages" and plug in the device. There may be a reason given why it wasn't auto-mounted.
I'm having difficulty finding the uuid of the usb flash drive. I'm used to seeing a directory under /dev/disk called by-uuid. But for some reason (probably just the way it is with debian) there is no "by-uuid" directory.
How would I find out what the flash drive's uuid is?
This is my /var/log/messages:
Code:
/# tail -f /var/log/messages
Aug 14 07:00:49 intranet kernel: usb 3-3: USB disconnect, address 11
Aug 14 07:00:53 intranet kernel: usb 3-3: new high speed USB device using ehci_hcd and address 12
Aug 14 07:00:53 intranet kernel: usb 3-3: configuration #1 chosen from 1 choice
Aug 14 07:00:53 intranet kernel: scsi14 : SCSI emulation for USB Mass Storage devices
Aug 14 07:00:58 intranet kernel: scsi scan: INQUIRY result too short (5), using 36
Aug 14 07:00:58 intranet kernel: scsi 14:0:0:0: Direct-Access PQ: 0 ANSI: 0
Aug 14 07:00:58 intranet kernel: sd 14:0:0:0: [sdc] Sector size 0 reported, assuming 512.
Aug 14 07:00:58 intranet kernel: sd 14:0:0:0: [sdc] 1 512-byte hardware sectors (0 MB)
Aug 14 07:00:58 intranet kernel: sd 14:0:0:0: [sdc] Write Protect is off
Aug 14 07:00:58 intranet kernel: sd 14:0:0:0: [sdc] Sector size 0 reported, assuming 512.
Aug 14 07:00:58 intranet kernel: sd 14:0:0:0: [sdc] 1 512-byte hardware sectors (0 MB)
Aug 14 07:00:58 intranet kernel: sd 14:0:0:0: [sdc] Write Protect is off
Aug 14 07:00:58 intranet kernel: sdc: sdc1
Aug 14 07:00:58 intranet kernel: sdc: p1 exceeds device capacity
Aug 14 07:00:58 intranet kernel: sd 14:0:0:0: [sdc] Attached SCSI disk
Aug 14 07:00:58 intranet kernel: attempt to access beyond end of device
Aug 14 07:00:58 intranet kernel: sdc: rw=0, want=3968904, limit=1
Aug 14 07:00:58 intranet kernel: __ratelimit: 70 messages suppressed
Aug 14 07:00:58 intranet kernel: attempt to access beyond end of device
Aug 14 07:00:58 intranet kernel: sdc: rw=0, want=3968904, limit=1
Aug 14 07:00:58 intranet kernel: attempt to access beyond end of device
Aug 14 07:00:58 intranet kernel: sdc: rw=0, want=3969024, limit=1
Aug 14 07:00:58 intranet kernel: attempt to access beyond end of device
Aug 14 07:00:58 intranet kernel: sdc: rw=0, want=3969024, limit=1
Aug 14 07:00:58 intranet kernel: attempt to access beyond end of device
The errors continue on for quite a while. I believe my RAID is to blame. If I had to guess I would assume that it is trying to add /dev/sdc to the array but obviously the flash drive is not big enough.
I would like to get rid of these error messages, but perhaps this is the way mdadm is once it is told that there should be 3 drives there and one is missing.
Back to the uuid issue:
Here is what I find in /dev/disk:
I'm gonna mess with mdadm. I blame it. I think I'm going to have to convince it that there isn't a spare drive. I'll just add it back later... we'll see what happens.
poor kernel compile was the culprit. I'm an idiot.
I wanted to thank you guys for all your advice. I must admit I learned some things. So that's always good.
It turned out the whole problem was ibtk (idiot behind the keyboard). I compiled my own kernel about a week or so ago and had no problem using a card reader so far. But then I bought a flash drive and that was a no go.
I (on a whim) booted up the original kernel just a few minutes ago and the flash drive worked like a charm. I'm going to take another look at what I did wrong with the kernel compile and will hopefully post what change makes it work (or not work).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.