Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: can't umount hard drive
PostPosted: Fri May 09, 2014 4:13 am 
Offline
Newbie

Joined: Fri May 09, 2014 4:08 am
Posts: 2
I have a block device I call backups (/dev/xvdc) mounted to /mnt/backups and I can't unmount it. It doesn't show up in fstab or mtab and is there after reboots. I mounted this drive a couple of years ago and must have done it in a weird way that I can't remember. I want to unmount now, but can't figure out how to do it. Despite umount saying it's not mounted, I can use it just fine.

umount /mnt/backups/
umount: /mnt/backups/: not mounted

cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/xvda / ext3 noatime,errors=remount-ro 0 1
/dev/xvdb none swap sw 0 0


cat /etc/mtab
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,noatime,errors=remount-ro,barrier=0,data=writeback 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1019268k,nr_inodes=254817,mode=755 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=204092k,mode=755 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=460600k 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0


Top
   
PostPosted: Fri May 09, 2014 5:16 am 
Offline
Senior Member

Joined: Sat Nov 27, 2010 8:21 pm
Posts: 63
Perhaps it is not mounted. In that case /mnt/backups/ is acting like a normal directory. Mount /dev/xvdc at a new mountpoint somewhere else and compare the contents.


Top
   
PostPosted: Fri May 09, 2014 12:16 pm 
Offline
Newbie

Joined: Fri May 09, 2014 4:08 am
Posts: 2
Nibbler wrote:
Perhaps it is not mounted. In that case /mnt/backups/ is acting like a normal directory. Mount /dev/xvdc at a new mountpoint somewhere else and compare the contents.

Thank you good sir! The contents are not the same. I wonder what /mnt/backups is then since it's the same size as /dev/xvdc.


Top
   
PostPosted: Fri May 09, 2014 3:48 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
blahyawnblah wrote:
Thank you good sir! The contents are not the same. I wonder what /mnt/backups is then since it's the same size as /dev/xvdc.

Something like this could happen if, in the past, a process assumed /dev/xvdc was mounted on /mnt/backups (when it wasn't) and did whatever it does that uses that filesystem. In that case the files were actually going to the parent filesystem instead, but if /dev/xvdc was subsequently mounted, you'd never notice unless you just happened to look at the tree when /dev/xvdc was no longer mounted.

-- David


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group