fstab (phone home)

Craig White craigwhite at azapple.com
Tue Feb 7 21:07:46 MST 2006


On Tue, 2006-02-07 at 18:34 -0800, bmike101 at cox.net wrote:
> df -h (1) does show that /dev/hda4 is mounted to the proper point but that still leaves the question whether or not it is being used for /home and why I ran out of disk space..
> 
> As for the scsi drive (2), it is VERY small and slow (old?) so I figured that it would be good for a swap drive.
> 
> The other commands you wished me to issue (ls -l /mnt/hda3 & hda4 revealed where I had placed my ripped music and that /mnt/hda4 is being used as home (3). I suppose that since fstab has /dev/hda4 being mounted to /mnt/hda4 it means that it truly is being used. 
> 
> I just read Jerry's mailing and it seems that my understanding of what fstab does is flawed.
> Hmmmmmm.....
> 
> Wait.... there it is! df does show it!
> 
> (1)
> bmike1 at 0[bmike1]$ df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hda2             4.0G  3.3G  504M  87% /
> /dev/hda4              16G  1.3G   14G   9% /mnt/hda4
> tmpfs                 189M     0  189M   0% /dev/shm
> bmike1 at 0[bmike1]$
----
that's just a biscuit away from some real trouble... 504M left on
partition that includes /usr & /var and possibly /home

at some point, you might want to see where the disk usage is...

du -sh /*
----
> 
> (2)
> bmike1 at 0[bmike1]$ fdisk -l /dev/sda1
> 
> Disk /dev/sda1: 1049 MB, 1049608192 bytes
> 64 heads, 32 sectors/track, 1000 cylinders
> Units = cylinders of 2048 * 512 = 1048576 bytes
> 
> Disk /dev/sda1 doesn't contain a valid partition table
----
it probably would have worked had you followed directions...

fdisk -l /dev/sda
----
> bmike1 at 0[bmike1]$     
> 
> (3)
> bmike1 at 0[Documents]$ ls -l /mnt/hda4
> total 24
> drwxr-xr-x   45 bmike1   bmike1       4096 2006-02-07 18:43 bmike1
> drwx------    2 root     root        16384 2004-06-30 16:32 lost+found
> drwxr-xr-x    2 root     root         4096 2005-03-27 20:07 Mark
> bmike1 at 0[Documents]$       
----
It might be '/home' or it might be a copy of it...

perhaps this might reveal something...

ls -ld /home

Craig

ps...it's much easier to see what is going on when partitions are
created with labels...

# cat /etc/fstab
LABEL=/                 /            ext3    defaults        1 1
LABEL=/boot             /boot        ext3    defaults        1 2
none                    /dev/pts     devpts  gid=5,mode=620  0 0
LABEL=/home             /home        ext3    defaults        1 2
none                    /proc        proc    defaults        0 0
none                    /dev/shm     tmpfs   defaults        0 0
LABEL=/tmp              /tmp         ext3    defaults        1 2
LABEL=/usr              /usr         ext3    defaults        1 2
LABEL=/var              /var         ext3    defaults        1 2
/dev/hda6               swap         swap    defaults        0 0

I clipped out the nfs & samba shares but you should get the idea...



More information about the PLUG-discuss mailing list