I recently moved from Ubuntu 14.10 to Debian Testing. Under Ubuntu I had a shell script for backing up my home folder to a USB stick. The last line of the script unmounts the USB stick. Adapting it to Debian's file system, it should be:
/media/usb which links to
/media/usb0). But when I execute the script, this last line throws
umount: /media/usb0: umount failed: Operation not permitted. Obviously, with
sudo it works, but I'm wondering why I need to be sudo here (was not necessary on Ubuntu). Any ideas how to circumvent that, so how to unmount the USB stick without being root? (the remaining part of the script runs flawlessly).
This is my /etc/fstab:
# <file system> <mount point> <type> <options> <dump> <pass> /dev/mapper/sklar--vg-root / ext4 errors=remount-ro 0 1 # /boot was on /dev/sda1 during installation UUID=a90bee04-e08a-4a86-8465-762aca5719a4 /boot ext2 defaults 0 2 /dev/mapper/sklar--vg-swap_1 none swap sw 0 0 /dev/sdb1 /media/usb0 auto rw,user,noauto 0 0