LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot unmount external drive in ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-unmount-external-drive-in-ubuntu-695442/)

Lord Xeb 01-06-2009 04:45 PM

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


David the H. 01-06-2009 06:22 PM

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.

Lord Xeb 01-06-2009 09:22 PM

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


All times are GMT -5. The time now is 04:50 PM.