fstab entry not producing desired results.
# fstab entry not producing desired results.
# the ultimate goal is to use a backup script to mount, backup, and unmount a file system.
#
running XUBUNTU with the Thunar file manager
sb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise
uname -a
Linux bill-laptop 3.2.0-65-generic #99-Ubuntu SMP Fri Jul 4 21:04:27 UTC 2014 i686 i686 i386 GNU/Linux
# can mount and unmount /media/Backup via the file manager.
bill@bill-
/dev/sda1 / ext4 rw,errors=
proc /proc proc rw,noexec,
sysfs /sys sysfs rw,noexec,
none /sys/fs/
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/
udev /dev devtmpfs rw,mode=0755 0 0
devpts /dev/pts devpts rw,noexec,
tmpfs /run tmpfs rw,noexec,
none /run/lock tmpfs rw,noexec,
none /run/shm tmpfs rw,nosuid,nodev 0 0
gvfs-fuse-daemon /home/bill/.gvfs fuse.gvfs-
gvfs-fuse-daemon /root/.gvfs fuse.gvfs-
/dev/sdb2 /media/BackUp ext4 rw,nosuid,
# mounting at terminal
bill@bill-
mount: mount point /media/BackUp does not exist <<-----------------
# creating mount point
bill@bill-
bill@bill-
bill@bill-
bill@bill-
bill@bill-
total 4
drwxrwxr-x 4 bill bill 4096 Jun 28 21:12 BackUp
bill@bill-
total 2683080
-rw-r--r-- 1 root root 408203914 May 27 20:53 5-27-2014.tar.gz
-rw-r--r-- 1 root root 383927136 Jun 16 21:13 6-16-2014.tar.gz
-rw-r--r-- 1 root root 1955313970 Jun 28 20:48 6-28-2014.tar.gz
drwx------ 2 root root 16384 May 25 15:24 lost+found
# works okay and then unmount is okay
bill@bill-
umount: /media/BackUp is not in the fstab (and you are not root)
bill@bill-
bill@bill-
total 4
drwxr-xr-x 2 root root 4096 Jul 8 16:02 BackUp
bill@bill-
total 0
# mount via thunar file manager still works but now mounted to "BackUp_"
bill@bill-
total 8
drwxr-xr-x 2 root root 4096 Jul 8 16:02 BackUp
drwxrwxr-x 4 bill bill 4096 Jun 28 21:12 BackUp_
bill@bill-
total 0
bill@bill-
total 2683080
-rw-r--r-- 1 root root 408203914 May 27 20:53 5-27-2014.tar.gz
-rw-r--r-- 1 root root 383927136 Jun 16 21:13 6-16-2014.tar.gz
-rw-r--r-- 1 root root 1955313970 Jun 28 20:48 6-28-2014.tar.gz
drwx------ 2 root root 16384 May 25 15:24 lost+found
# unmount via Thunar file manager, "BackUp_" is now gone.
bill@bill-
total 4
drwxr-xr-x 2 root root 4096 Jul 8 16:02 BackUp
# mount from terminal
bill@bill-
mount: can't find /media/BackUp/ in /etc/fstab or /etc/mtab
# determine UUID
bill@bill-
/dev/sdb1: LABEL="Boot2" UUID="909a0618-
/dev/sdb2: LABEL="BackUp" UUID="dcd9f11a-
/dev/sdb3: LABEL="DiskC" UUID="4d94f320-
/dev/sda1: UUID="e1208bf4-
/dev/sda5: UUID="1e175449-
# enter info into /etc/fstab
# mount removable hd for backups
UUID=dcd9f11a-
# mount from terminal, no "BackUp_" file, mount okay.
bill@bill-
bill@bill-
total 4
drwxrwxr-x 4 bill bill 4096 Jun 28 21:12 BackUp
bill@bill-
total 2683080
-rw-r--r-- 1 root root 408203914 May 27 20:53 5-27-2014.tar.gz
-rw-r--r-- 1 root root 383927136 Jun 16 21:13 6-16-2014.tar.gz
-rw-r--r-- 1 root root 1955313970 Jun 28 20:48 6-28-2014.tar.gz
drwx------ 2 root root 16384 May 25 15:24 lost+found
# unmount from terminal and NOT okay
bill@bill-
Unmount failed: Error unmounting: umount exited with exit code 1: helper failed with: <<----------------
bill@bill-
total 4
drwxrwxr-x 4 bill bill 4096 Jun 28 21:12 BackUp
bill@bill-
total 2683080
-rw-r--r-- 1 root root 408203914 May 27 20:53 5-27-2014.tar.gz
-rw-r--r-- 1 root root 383927136 Jun 16 21:13 6-16-2014.tar.gz
-rw-r--r-- 1 root root 1955313970 Jun 28 20:48 6-28-2014.tar.gz
drwx------ 2 root root 16384 May 25 15:24 lost+found
# removed line from fstab and umount is okay again.
# added line back in fstab and now mount requires sudo
bill@bill-
[sudo] password for bill:
bill@bill-
total 4
drwxrwxr-x 4 bill bill 4096 Jun 28 21:12 BackUp
bill@bill-
total 2683080
-rw-r--r-- 1 root root 408203914 May 27 20:53 5-27-2014.tar.gz
-rw-r--r-- 1 root root 383927136 Jun 16 21:13 6-16-2014.tar.gz
-rw-r--r-- 1 root root 1955313970 Jun 28 20:48 6-28-2014.tar.gz
drwx------ 2 root root 16384 May 25 15:24 lost+found
# unmount is okay
bill@bill-
# with fstab entry back in place, Thunar unmount fails with the following message
Failed to eject "BackUp".
Error unmounting: unount exited <<----------------
with exit code 1: helper failed with:
# unmount from terminal produces the same error and the unmount fails.
#######
okay, how to I get Thunar and a script to play nice and mount this file system?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Bill
- Solved:
- Last query:
- Last reply: