Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-20-2010, 04:46 PM
|
#1
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
Cannot read files from flash drive
This happens in my main computer with Slackware and Arch.
Code:
$ su
Password:
# cd /media/fl
# mount /dev/sdb1 .
# ls # No Output!
# umount .
# umount .
umount: .: not mounted # first worked but now failed, so it must have been mounted. But where's the data?
My hard drive is /dev/sda.
Last edited by MTK358; 01-20-2010 at 04:47 PM.
|
|
|
01-20-2010, 04:54 PM
|
#2
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
since you used umount twice in a row it will be not mounted on the second try.
What files are you expecting to see and what filing system does your flash device use?
|
|
|
01-20-2010, 04:58 PM
|
#3
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Original Poster
|
I am expecting to see a tarball of all my personal files when I run the ls command.
The flash drive is formatted with FAT32.
And I umounted twice to show that is was mounted, but the files did not show up.
Last edited by MTK358; 01-20-2010 at 04:59 PM.
|
|
|
01-20-2010, 05:09 PM
|
#4
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
Are you certain that /dev/sdb refers to the flash drive and not say another sata device, possibly like cdrom? What do you get in the tail of dmesg when you plug the flash drive in? You should get a message in there about it.
|
|
|
01-20-2010, 07:19 PM
|
#5
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Original Poster
|
Code:
usb 1-4: new high speed USB device using ehci_hcd and address 3
usb 1-4: configuration #1 chosen from 1 choice
scsi9 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
|
|
|
01-20-2010, 08:05 PM
|
#6
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
Hmmm, could have hoped for something more useful like what it had been placed as. I would check if /dev/sdb still exists when the flash drive is disconnected, if it is then the flash drive is not being placed as /dev/sdb.
|
|
|
01-20-2010, 08:16 PM
|
#7
|
Member
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548
Rep:
|
Have you tried the full commands:
$ su
# mount /dev/sdb1 /media/fl
# cd /media/fl
# ls
# umount /dev/sdb1
I am not sure that mount sees '.' as the directory you have cd'ed to
|
|
|
01-21-2010, 06:48 AM
|
#8
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Original Poster
|
For some reason it doesn't work if my current dir is /media/fl!
If I am not in /media/fl during mounting, it works, even with relative pathnames!
Last edited by MTK358; 01-21-2010 at 06:52 AM.
|
|
|
All times are GMT -5. The time now is 10:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|