Hi All and happy new year, Via a cron job a USB disk is mounted on a Centos 6.4 machine for backup and dismounted after. I've noticed this failing. See below, the backup directory that was in /mnt had disappeared, so creating it again as follows... # cd /mnt # mkdir backup # mount /dev/sdb1 /mnt/backup/ # ls backup # cd backup/ # ls boot.tar.gz etc etc.tar.gz home home.tar.gz ident.txt lost+found named.tar.gz root.tar.gz usr.tar.gz var var.tar.gz # cd .. # ls backup # umount /dev/sdb1 # ls # cat /etc/redhat-release CentOS release 6.4 (Final) After the umount the directory vanishes. What gives or have I lost the plot in 2014. (This works as I'd expect on an old fc14 system I have) :-) Ken -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Ken Smith wrote:> Hi All and happy new year, > > Via a cron job a USB disk is mounted on a Centos 6.4 machine for backup > and dismounted after. I've noticed this failing. See below, the backup > directory that was in /mnt had disappeared, so creating it again as > follows... > > # cd /mnt > # mkdir backup > # mount /dev/sdb1 /mnt/backup/ > # ls > backup > # cd backup/ > # ls > boot.tar.gz etc etc.tar.gz home home.tar.gz ident.txt lost+found > named.tar.gz root.tar.gz usr.tar.gz var var.tar.gz > # cd .. > # ls > backup > # umount /dev/sdb1 > # ls > > # cat /etc/redhat-release > CentOS release 6.4 (Final) > > After the umount the directory vanishes. What gives or have I lost the > plot in 2014. (This works as I'd expect on an old fc14 system I have) > > :-) Ken > > >Before I'm asked, no there's nothing helpful in messages except advice to run fsck on the external disk as its a while since that was done :-) Ken> >-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
On Thu, Jan 02, 2014 at 07:05:31PM +0000, Ken Smith wrote:> Hi All and happy new year, > > Via a cron job a USB disk is mounted on a Centos 6.4 machine for backup > and dismounted after. I've noticed this failing. See below, the backup > directory that was in /mnt had disappeared, so creating it again as > follows... > > # cd /mnt > # mkdir backup > # mount /dev/sdb1 /mnt/backup/ > # ls > backup > # cd backup/ > # ls > boot.tar.gz etc etc.tar.gz home home.tar.gz ident.txt lost+found > named.tar.gz root.tar.gz usr.tar.gz var var.tar.gz > # cd .. > # ls > backup > # umount /dev/sdb1 > # ls > > # cat /etc/redhat-release > CentOS release 6.4 (Final) > > After the umount the directory vanishes. What gives or have I lost the > plot in 2014. (This works as I'd expect on an old fc14 system I have)I'd guess that something is rm-ing the mount point while it's mounted, so that when you umount it, it disappears. -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------- The Lord detests the way of the wicked but he loves those who pursue righteousness. ----------------------------- Proverbs 15:9 (niv) -----------------------------
Ken Smith wrote:> Hi All and happy new year, > > Via a cron job a USB disk is mounted on a Centos 6.4 machine for backup > and dismounted after. I've noticed this failing. See below, the backup > directory that was in /mnt had disappeared, so creating it again as > follows... >> {snip} >> After the umount the directory vanishes. What gives or have I lost the > plot in 2014. (This works as I'd expect on an old fc14 system I have) > > :-) Ken > > > >After a reboot all returns to normal. Very strange. Thanks for all the replies. BTW: The crude backup script mounts the external USB device, checks for a specific file in the root of the external device to verify the right thing is mounted, runs the backup with various rsync incantations and then dismounts the external disk. Very simple and basic and working again... :-) Ken -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.