LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices

Reply
 
Search this Thread
Old 03-23-2011, 10:13 AM   #1
gentisle
Member
 
Registered: May 2005
Location: USA
Distribution: LinuxMint
Posts: 167

Rep: Reputation: 6
Mysterious "usb" directories in /media dir - USB devices Don't Mount Like Before


Here's the output of my /media dir:
/media $ ls -l
total 56
drwx------ 1 owner owner 20480 2011-03-22 11:52 Megadisk
drwxr-xr-x 2 root root 4096 2011-03-20 14:45 isodisk
lrwxrwxrwx 1 root root 4 2011-03-19 13:57 usb -> usb0
drwxr-xr-x 2 root root 4096 2011-03-19 13:57 usb0
drwxr-xr-x 2 root root 4096 2011-03-19 13:57 usb1
drwxr-xr-x 2 root root 4096 2011-03-19 13:57 usb2
drwxr-xr-x 2 root root 4096 2011-03-19 13:57 usb3
drwxr-xr-x 2 root root 4096 2011-03-19 13:57 usb4
drwxr-xr-x 2 root root 4096 2011-03-19 13:57 usb5
drwxr-xr-x 2 root root 4096 2011-03-19 13:57 usb6
drwxr-xr-x 2 root root 4096 2011-03-19 13:57 usb7

1. The Megadisk is the Windows label for that external USB drive. It's correct. So far it has always automatically mounted correctly.
2. The isodisk dir, I created, it is OK.
3. None of the other directories were created by me. Nor did I link the usb to usb0.
4. I have no idea what to even search for since "Mysterious USB directories" didn't yield anything worthwhile.
5. Prior to whatever went wrong, my 4GB flash drive would automatically mount correctly as it's Windows label name (vol name).
Now it always mounts under the linked usb->usb0 dir. Any ideas what I might search on, or what this is called? Thanks.

LinuxMint 10 Gnome amd64, on a Medion laptop, x2 amd, 4GB ram, shared 128MB nVidia 6150 graphics. All updates have been applied through Synaptic. I also had a shutdown issue that was solved by issuing apt-get update; apt-get upgrade at the prompt. I don't recall when that started. Virtualbox 4.0.4.r70112 64-bit is installed. That seems to be working about as well as any other Virtualbox I've installed. Does Virtualbox do something to create those dirs?

$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 2.9G 474M 2.3G 18% /
none 1.9G 304K 1.9G 1% /dev
none 1.9G 308K 1.9G 1% /dev/shm
none 1.9G 348K 1.9G 1% /var/run
none 1.9G 0 1.9G 0% /var/lock
/dev/sda6 4.7G 138M 4.4G 4% /tmp
/dev/sda10 164G 42G 114G 27% /home
/dev/sda7 6.6G 942M 5.4G 15% /var
/dev/sda8 15G 4.0G 9.4G 30% /usr
/dev/sdc1 932G 505G 427G 55% /media/Megadisk
 
Old 03-23-2011, 07:06 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,488

Rep: Reputation: 67
This really sounds like there is some issue with the automounting fuction of mint (assumeing thats what distro this is). Something you can check is how many parttions are listed on the device. You can do this by doing a fdisk -l /dev/sdx where as x is the correct device.
 
Old 03-23-2011, 09:15 PM   #3
gentisle
Member
 
Registered: May 2005
Location: USA
Distribution: LinuxMint
Posts: 167

Original Poster
Rep: Reputation: 6
To exvor: Thanks for replying. fdisk -l just shows 1 partition correctly as it always has been.

Something else I've found: I cannot right click the icon and unmount/eject/safely remove. Regardless of which of those options are listed when I right click, it won't allow me to do it. It complains "/media/usb0 is not in fstab and you are not root." Well there's not much in fstab, but here it is:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/sda5 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda10 during installation
UUID=e...6 /home ext4 defaults 0 2
/dev/sda6 /tmp ext4 defaults 0 2
# /usr was on /dev/sda8 during installation
UUID=0...0 /usr ext4 defaults 0 2
/dev/sda7 /var ext4 defaults 0 2
# swap was on /dev/sda9 during installation
UUID=0...1 none swap sw 0 0

I partitioned the disk at install time with (if I remember correctly)
/ 3gb
/tmp 3gb
/var 5gb
/usr 15gb
swap 4gb
/home remainder

In the folder browsing window (not Konqueor or Dolphin), it lists the correct volume name for my USB flash drive, yet doesn't show that it's mounted. But it does show that the usb0 is mounted. Furthermore, when I right click on the volume name, select "Eject" or "Safely remove", it says, "Unable to eject volname, One or more partitions are busy on /dev/sdb" Strangely enough the "Mount" option is listed on the context menu even though it is mounted at /media/usb0.
Disk Utility in the LM10 menu (is this gnome-disk-utility?) also reports only 1 partition. In the Disk Util, I was able to select "Unmount" and that worked, but selecting "Safely remove" gave the same "unable umount..busy" error. Also, I can umount -f and it will unmount.

First of all, is is OK to create directories in /media? I seem to remember reading on the Solaris forum that you shouldn't do that. Secondly, does this sound like my installation of linux has been into the catnip and is totally stoned? (sorry, I couldn't resist).
 
Old 04-10-2011, 10:37 AM   #4
gentisle
Member
 
Registered: May 2005
Location: USA
Distribution: LinuxMint
Posts: 167

Original Poster
Rep: Reputation: 6
Well, I finally found what the mysterious usb0-9 directories are. Before I had the problem, I was fishing for USB info about my system, and used Synaptics to install other USB utilities. One of which was usbmount. This program created those directories. So I have removed it, and we'll see what happens. I hope everything USB-wise works correctly. I'll try to remember and post again here, but if everything works correctly, I'll probably forget I had the problem.
 
  


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
Can't mount USB stick due to "FAT: invalid media value (0xb9)" bergin Linux - Kernel 8 03-19-2010 07:32 AM
"Invalid mount option when attempting to mount the volume." on plugging USB sumeet inani Linux - Newbie 5 02-23-2010 09:40 PM
why only "mount /dev/sda /mnt/usb" works and not "mount /dev/sda1..." ? gromot Linux - General 7 05-19-2009 10:18 AM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM
usb devices without "plug and play OS" in the bios? maqelgav Linux - Hardware 3 06-11-2004 06:00 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration