[plug] Disk partitions and Swap file

Robert Andrews squirrel at emerge.net.au
Sun Dec 23 23:11:34 WST 2001


Hi all I seem to be a little confused as to the space being used on my hard
drive and the partition confgiuration
the output of df -h is
------------------------------------------------------------------------
[root at linux etc]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5             7.7G  3.4G  3.8G  47% /
/dev/hda1              23M  5.0M   17M  23% /boot
--------------------------------------------------------------------------
The bios reports the drive as having 8447 meg
however df -h comes in under 8 gig
useing fdisk p shows

Disk /dev/hda: 255 heads, 63 sectors, 1027 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1         3     24066   83  Linux
/dev/hda2             4      1027   8225280    5  Extended
/dev/hda5             4      1018   8152956   83  Linux
/dev/hda6          1019      1027     72261   82  Linux swap

The fstab file is as follows[root at linux /etc]# cat fstab
/dev/hda5             /                       ext2    defaults
1 1
/dev/hda1             /boot                ext2    defaults
1 2
/dev/cdrom           /mnt/cdrom      iso9660 noauto,owner,ro   0 0
/dev/hda6             swap                swap    defaults
0 0
/dev/fd0                /mnt/floppy       ext2    noauto,owner           0 0
none                     /proc                proc    defaults
0 0
none                     /dev/pts            devpts  gid=5,mode=620    0 0

Now my question is do i need to modify the fstab file to include
/dev/hda2 and /dev/hda6
if so could somebody include an example of what the fstab should look like
given the above information.
Thank you
and A Merry Xmas to all
Regards Bob Andrews.




More information about the plug mailing list