Where is my 2G? - MC

daniel sobey dns_server at yahoo.com
Thu Apr 12 11:29:59 CST 2007


What i think happened is you you copied stuff to your
/home directory on your root partition not the
partition containing /home. When you mount a partition
it basically says "look in this other partition for
files instead of the / partition" when you mount it
does not care if the directory you are mounting over
is has any files or not. what it appears is you did
not have /home mounted and copied the files to a
directory called /home on your / partition.

The solution to this kind of thing is to unmount /home
(and all other partitions except /) and you will then
see the contents of  /home from your root partition,
then you will be able to delete the files from your
root partition, then you should mount /home again.  

--- Brian Astill <bastill at adam.com.au> wrote:

> So far, I have:
> 	ls -lar | grep hdb7
> 	fdisk -L
> 	lsof | grep deleted
> 	mount    mount -a      mount 
> 	tune2fs -l /dev/hdb7
> 	used Baobab to search for .Trash and
> 	examine the filesystem.
> The only odd thing is that baobab lists BOTH /home
> and  /mnt/hdb7 
> as if they are separate items, thereby falsely
> reporting the 
> total size.  No other output indicates any problem.
> 
> THE cause of all the trouble is Midnight Commander
> (from root) 
> accepting my instructions to copy /home to an 
> _unmounted_  /dev/hdb7.  It's reports of progress
> were entirely 
> normal, until it began to complain of lack of disk
> space - which 
> was nonsense, as i was copying 3.7G onto a 12G
> partition.
> Obviously, MC was copying to "somewhere" on hda2,
> which is why 
> that partition became totally full and unusable
> until I used a 
> live CD to copy /home to a _mounted_ /dev/hdb7, then
> delete the 
> original /home.
> 
> QUESTION:
> Where has MC put the files it "copied" to hda2 - and
> how can I 
> find and delete them?
> 
> PS  "Where is my 2G? - Ubuntu BUG" describes bad
> Ubuntu behaviour 
> dealing with the above situation.
> 
> -- 
> Regards,
> Brian
> -- 
> LinuxSA WWW: http://www.linuxsa.org.au/ IRC:
> #linuxsa on irc.freenode.net
> To unsubscribe or change your options:
>  
> http://www.netcraft.com.au/mailman/listinfo/linuxsa
> 



Send instant messages to your online friends http://au.messenger.yahoo.com 


More information about the linuxsa mailing list