LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-06-2009, 05:45 PM   #1
Lord Xeb
Member
 
Registered: Nov 2008
Location: Ohio, USA
Distribution: Ubuntu 8.10 (I always update)
Posts: 34

Rep: Reputation: 15
Cannot unmount external drive in ubuntu


I am not too sure where to put this topic so I put it here (I am not new to linux). But I cannot unmount both of my external drive's partitions.

I get this error:

Unmount: Only root can unmount
UUID-600f9328-964d-46a4-8313-968055b3e925
from /media/Secondary

umount: only root can unmount
UUID: only root can unmount
UUID=5F535D9D4725F721 from /media/disk-1


I have already tried sudo chmod 777 /dev/sdb



here is all the info that I think you need:


Code:
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa1d6a1d6

   Device Boot      Start         End      Blocks   Id  System
/dev/sda2   *           1        4864    39070048+   5  Extended
/dev/sda5               1        1144     9189085+  83  Linux
/dev/sda6            1145        4833    29631861   83  Linux
/dev/sda7            4834        4864      248976   82  Linux swap / Solaris

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x44fdfe06

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb2               1       60801   488384001    f  W95 Ext'd (LBA)
/dev/sdb5               1       18240   146512737   83  Linux
/dev/sdb6           18241       60801   341871201    7  HPFS/NTFS

Here is my fstab

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc	/proc	proc	defaults	0	0
#Entry for /dev/sda5 :
UUID=436d9d53-3386-4a33-bb8d-d757ee2bd198	/	ext3	relatime,errors=remount-ro	0	1
#Entry for /dev/sda6 :
UUID=a920ff4e-07be-41ee-a147-155dc3a0b56e	/home	ext3	relatime	0	2
#Entry for /dev/sdb5 :
UUID=600f9328-964d-46a4-8313-968055b3e925	/media/Secondary	ext3	defaults	0	2
#Entry for /dev/sdb6 :
UUID=5F535D9D4725F721	/media/disk-1	ntfs-3g	defaults,nosuid,nodev,uhelper=hal,locale=en_US.UTF-8	0	0
#Entry for /dev/sda7 :
UUID=44eb7562-8c3a-4b6a-8857-617184731296	none	swap	sw	0	0
/dev/scd0	/media/cdrom0	udf,iso9660	user,noauto,exec,utf8	0	0
 
Old 01-06-2009, 07:22 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,834

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
It's not very clear from your post exactly what kind of setup you actually want here, but if you want a regular user to be able to mount and unmount a drive, you need to add the "user" option to the fstab entry.

But for removable drives, it's usually recommended not to use fstab, and instead use whatever hotplugging system your distro has set up.
 
Old 01-06-2009, 10:22 PM   #3
Lord Xeb
Member
 
Registered: Nov 2008
Location: Ohio, USA
Distribution: Ubuntu 8.10 (I always update)
Posts: 34

Original Poster
Rep: Reputation: 15
Thats the thing, I dont know what it is.
Edit: If fixed it.


I had something called disk manager installed. In uninstalled it. Looked in media under root and found .python-created-fstab. I deleted that and m-tab. Then I went in and found fstab. Removed the entries for my external drive.


# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
#Entry for /dev/sda5 :
UUID=436d9d53-3386-4a33-bb8d-d757ee2bd198 / ext3 relatime,errors=remount-ro 0 1
#Entry for /dev/sda6 :
UUID=a920ff4e-07be-41ee-a147-155dc3a0b56e /home ext3 relatime 0 2
#Entry for /dev/sda7 :
UUID=44eb7562-8c3a-4b6a-8857-617184731296 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0


that fixed everything. You saying something about fstab gave me a clue as to what was going on. Thanks

Last edited by Lord Xeb; 01-06-2009 at 10:34 PM. Reason: figured it out, fstab and another file
 
  


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
External Drive- Booting ubuntu - more then one computer blackbinary Ubuntu 7 07-23-2008 12:12 PM
Cannot unmount from external hard drive anthony602 Linux - Newbie 1 05-16-2008 05:39 PM
Trying to install ubuntu 6.10 to an external hard drive Phillippp Ubuntu 1 05-09-2007 04:23 PM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 01:44 AM
External Hard drive + ubuntu yayd Linux - Newbie 9 01-15-2006 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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