Problem unmounting drive
David Ryder
davaweb at bigpond.net.au
Mon Dec 29 00:23:28 GMT 2008
Hi,
Hardy 8.10
Please can anybody in the list help with this? It is driving me nuts.
I hava a physically separate ntfs drive that I use for backups. It makes
no difference if I format it ext3. The drive is not in fstab as I do not
want it mounted automatically nor all the time. Keeping it in
Places>Removable Media suits me fine.
I have two scripts - one to mount it and the second to unmount it. The
latter will not run under cron and will only "Run In Terminal". I am
denied permission to unmount it by clicking on it.
The drive is called hardy32-backups and I have made a folder called
hardy32-backups in /media/ - without it the first script will not run.
The scripts are in /usr/local/bin and Schedule Tasks has the right path
to them:
1. mount hardy-32-backups.sh runs at 4am and
2. unmount hardy-32-backups.sh (should) runs at 7am.
1. mount hardy-32-backups.sh script runs fine - it contains:
#!/bin/sh
sudo mount UUID=764809814809417B /media/hardy32-backups
2. unmount hardy-32-backups.sh does not run - which is my problem. It
contains:
#!/bin/sh
sudo umount /media/hardy32-backups/
I have tried:
sudo umount UUID=764809814809417B /media/hardy32-backups
sudo umount UUID=764809814809417B
sudo umount /hardy32-backups
sudo umount /hardy32-backups/
without any luck as well as running without sudo in front.
When mounted by the script it appears on the desktop and in mtab as:
/dev/sdi1 /media/hardy32-backups fuseblk
rw,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
but please note it is not always sdbi1 after a reboot.
I just can't get it to umount via cron. Any help would be very much
appreciated, thanks.
David
More information about the ubuntu-au
mailing list