LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-25-2006, 10:29 AM   #16
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled

You can check if there's anything in /mnt/flash (or wherever you mounted to), with ls, e.g.

$ ls /mnt/flash.
 
Old 07-25-2006, 01:37 PM   #17
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 287

Original Poster
Rep: Reputation: 30
Hot dang! Lockpicker, you nailed it!

The commands:

mkdir /mnt/flash
and
mount -t vfat /dev/sda1 /mnt/flash

resulted in an icon on my desktop and there are my files on the USB device.

Hot dang!

Many thanks to all who have contributed.

One thing I still don't understand is why use sda1 in the mount command above when Ubuntu has identified the USB device as sda? Please clarify.

Last edited by Odyssey1942; 07-25-2006 at 01:56 PM.
 
Old 07-25-2006, 02:00 PM   #18
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You use sda1 because even if it's labelled as sda, it still has a partition on it and you mount filesystems found on partitions. You could repartition it and have two (or more) partitions and then these would be labelled as sda1 and sda2.
 
Old 07-25-2006, 02:03 PM   #19
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
To get back to the topic: "how to unmount a device you can't find?"

-> use mount to determine the mounted filesystems:

Code:
mount
That should list every mounted filesystem. Then simply use umount to unmount the desired filesystem; if the device you're looking for is not in the list (like sda1), then it's probably not mounted.

This thread seems to have turned into "how to mount" rather than "how to umount"..
 
Old 07-25-2006, 02:06 PM   #20
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 287

Original Poster
Rep: Reputation: 30
My apology as I am coming from Windoze/dos environment, but is this sort of correct?

Ubuntu identified the device and "assigned" it to sda (but it is still not mounted), then the mount command did in fact mount it at sda1 within (or on top of or associated with) sda. i.e., sort of like a subfolder (sda1) under folder sda?

Please correct any misunderstanding or give better analogy as I do want to learn how to do this sort of stuff on my own in future. thanks.
 
Old 07-25-2006, 02:09 PM   #21
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 287

Original Poster
Rep: Reputation: 30
Wooopsie! Just tried to unmount the device before removing it and got:

Error: mount point /mnt/flash is not below /media/

Help!

Bouncer, just saw yours as it posted while I was writing mine above. Thanks for yours and technically you are doubtless correct, but surely it should not be an issue when the obvious answer to the question is to solve another problem first. Then the original issue either then becomes moot, or as in this case, we are now back to the original question.

I used the command:

odyssey@ubuntu:/mnt/flash$ umount sda1 /mnt/flash
umount: sda1 is not mounted (according to mtab)

but it is still mounted, so still can't unmount

Last edited by Odyssey1942; 07-25-2006 at 03:28 PM.
 
Old 07-25-2006, 11:35 PM   #22
lockpicker
Member
 
Registered: Feb 2006
Location: Sikkim Manipal Institute of Technology, Sikkim
Distribution: Slackware 10.2
Posts: 80

Rep: Reputation: 15
for unmounting, just use

umount /mnt/flash
or
umount /dev/sda1

That should do it!
 
Old 07-26-2006, 05:21 PM   #23
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 287

Original Poster
Rep: Reputation: 30
This is beginning to seem like the never-ending saga. Results:

odyssey@ubuntu:/mnt/flash$ sudo umount /mnt/flash
Password:
umount: /mnt/flash: device is busy
umount: /mnt/flash: device is busy

odyssey@ubuntu:/mnt/flash$ sudo umount /dev/sda1
umount: /mnt/flash: device is busy
umount: /mnt/flash: device is busy

Looks like both would have worked if Ubuntu didn't think that the "device is busy" (which AFAIAC, it is not as it has been sitting undisturbed for the last 24 hours.

ran fdisk -l and got

Disk /dev/sda: 64 MB, 64487424 bytes
4 heads, 32 sectors/track, 984 cylinders
Units = cylinders of 128 * 512 = 65536 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 983 62896 6 FAT16

This particular USB drive is a Jumpdrive "Secure" meaning it has some sort of encryption feature (which I have never used), but maybe the "secure" feature runs an application which is constantly polling for input to the drive and marks it for encryption or whatever. This is speculative and maybe irrelevant, but since it is a USB device, it probably runs Linux for any intelligence it needs to provide.

Can anyone suggest a way to determine what is going on that results in the message "device is busy"?
 
Old 07-26-2006, 05:24 PM   #24
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
try
umount -l /mnt/flash

that is a lower case L.
 
Old 07-26-2006, 06:07 PM   #25
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 287

Original Poster
Rep: Reputation: 30
Even more. I mounted a second USB drive (without encryption features to create issues) and went to unmount it. Being lazy, I copied the prior command ( sudo umount /dev/sda1 ) and pasted it onto the command line, intending to change the sda1 to sdb1, but apparently the copy picked up the Enter command that was given in the earlier entry and so the command ocurred before I could make the change.

Anyway, much to my surprise, it instantly unmounted the first USB device. Surprising because before the same command resulted in the message in the previous post, but this time it worked.

I then gave the command: "sudo umount /dev/sdb1" and it unmounted the second drive.

So maybe all is OK, but there was some weirdness in that last bit! Anyone have any thoughts on this?

Edit: jstephens, we cross posted. Any additional comments would be welcome.

Last edited by Odyssey1942; 07-26-2006 at 06:12 PM.
 
Old 07-27-2006, 12:37 AM   #26
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by Odyssey1942
odyssey@ubuntu:/mnt/flash$ sudo umount /mnt/flash
Password:
umount: /mnt/flash: device is busy
umount: /mnt/flash: device is busy
The device is busy as you're in the folder that the filesystem is mounted to (presumably you have none of the files open). If you change to another directory and try to unmount, it should work.
 
Old 07-27-2006, 09:33 AM   #27
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 287

Original Poster
Rep: Reputation: 30
I understand. Thanks.
 
  


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
how to unmount unknown usb device? touser Linux - Hardware 1 05-30-2007 10:53 AM
usb 2.0 camera - can't find the device jweller Linux - Hardware 1 10-11-2005 07:38 PM
unmount the usb device prital Linux - Newbie 6 01-24-2005 09:08 PM
USB flash unmount: device busy mkivihar Linux - Hardware 4 11-20-2004 11:32 AM
unmount usb device pmorimer Linux - Hardware 2 08-25-2004 05:36 PM


All times are GMT -5. The time now is 07:19 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