LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-20-2010, 04:46 PM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
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.
 
Old 01-20-2010, 04:54 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 216Reputation: 216Reputation: 216
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?
 
Old 01-20-2010, 04:58 PM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
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.
 
Old 01-20-2010, 05:09 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 216Reputation: 216Reputation: 216
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.
 
Old 01-20-2010, 07:19 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
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
 
Old 01-20-2010, 08:05 PM   #6
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 216Reputation: 216Reputation: 216
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.
 
Old 01-20-2010, 08:16 PM   #7
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548

Rep: Reputation: 40
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
 
Old 01-21-2010, 06:48 AM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
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.
 
  


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
I don't want my flash drive as read-only! johnnyxxxcakes Linux - Newbie 1 06-02-2009 09:10 PM
Cruzer Flash Drive Problem: Can't Write only Read guerrascience Linux - Hardware 3 08-26-2008 02:21 AM
USB flash drive (Pen drive) mounts read only prabhatsoni Linux - Hardware 24 07-02-2007 01:28 PM
usb flash drive always read-only flihp Linux - Hardware 2 11-12-2005 05:14 PM
Another USB-Flash-Drive Post- I read all the others so what now Al Bundy Linux - Hardware 4 04-24-2003 12:30 AM


All times are GMT -5. The time now is 09: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration