LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-17-2008, 03:58 AM   #1
ShellyCat
Member
 
Registered: Jul 2007
Distribution: Slackware 13
Posts: 178

Rep: Reputation: 29
Exclamation /dev/disk/by-label DISAPPEARED! Can't mount USB flash drive


[If you don't know what /dev/disk/by-label is, please don't answer. This is not just a normal directory.]

I would normally mount a USB flash drive this way:
(insert the drive)
Code:
ls /dev/disk/by-label
mount /dev/disk/WHATEVER_LABEL /mnt/jump/jump0
But for some reason, the /dev/disk/by-label directory has disappeared from my Slackware system! (I verified it's not there...I did "ls /dev/disk" and by-label has really disappeared.) I saved all my Windows executables and documents to the USB stick before I reinstalled Slackware, so that I could access them from an XP virtual machine.

This is a fresh Slackware 12 install -- reinstalled it last night -- but the directory WAS there this morning! (I know, I mounted a USB drive and looked at it.)

Is there any way to re-create this special folder, or will I have to reinstall my whole Slackware system???

Last edited by ShellyCat; 02-17-2008 at 04:03 AM.
 
Old 02-17-2008, 06:38 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Did you try inserting the USB device? It's likely that
the directory appears automatically when the device is
inserted and deleted when it's removed.

If the directory doesn't reappear, try running "fdisk -l"
which will list all of your devices and partitions. Look
for a new device which you'll be able mount manually.
 
Old 02-17-2008, 06:49 AM   #3
rupertwh
Member
 
Registered: Sep 2006
Location: Munich, Germany
Distribution: Debian / Ubuntu
Posts: 297

Rep: Reputation: 49
Now a missing label would certainly not keep you from being able to mount a drive.
But maybe it's the other way around?
Does
Code:
fdisk -l
show your USB drive? If not, then something is broken -- either the flash drive itself or maybe some loose USB connector on the mainboard or a missing module/driver.

EDIT: I need to type faster... )
 
Old 02-17-2008, 03:50 PM   #4
ShellyCat
Member
 
Registered: Jul 2007
Distribution: Slackware 13
Posts: 178

Original Poster
Rep: Reputation: 29
Thanks for your help! I started thinking maybe the directories were created at boot, never thought they might be created upon insertion.

Quote:
Originally Posted by rupertwh View Post
Does
Code:
fdisk -l
show your USB drive? If not, then something is broken -- either the flash drive itself or maybe some loose USB connector on the mainboard or a missing module/driver.
You hit the nail on the head...I think (will have to take it to a hardware shop to verify this).

It tried "fdisk -l" over and over again with the USB stick inserted...sometimes the "drive" shows up, sometimes only my hard drive partitions...this is true even if I don't remove the USB stick between attempts!

"/dev/disk/by-label" only exists when a stick is both in a USB port and recognized by fdisk. I also tried this with 2 different sticks to make sure it's not the stick.

I haven't used the USB much on my laptop at all, so I can't see the ports getting loose from my usage...maybe they are defective or just low quality. The 2 ports I tested are right next to each other (maybe on the same card), so I should remove my mouse and laptop pad to see if the problem exists with those ports. I never had a problem with any other computer not recognizing the sticks (not even the computers at school, which are heavily used)!

Also, I sometimes do/sometimes don't get this message from fdisk, so again, I think you are right about the defective ports:
Quote:
Partition 1 has different physical/logical endings:
phys=(960, 128, 32) logical=(952, 71, 32)

Last edited by ShellyCat; 02-17-2008 at 03:59 PM.
 
Old 04-18-2008, 02:48 PM   #5
ShellyCat
Member
 
Registered: Jul 2007
Distribution: Slackware 13
Posts: 178

Original Poster
Rep: Reputation: 29
Not a hardware problem.

see below

Last edited by ShellyCat; 11-16-2010 at 11:29 PM. Reason: Solved
 
Old 11-16-2010, 11:30 PM   #6
ShellyCat
Member
 
Registered: Jul 2007
Distribution: Slackware 13
Posts: 178

Original Poster
Rep: Reputation: 29
Unhappy

USB stick was damaged from use in school computers...probably USB ports at school were damaged, so they damaged my stick. Eventually I could not use the stick at all (Windows or Linux). I had to buy a new one.
 
  


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
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 07:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 04:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 02:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:57 AM.

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