My /etc/fstab File

I have MS-DOS 6.22, Windows 3.11, Windows-95, Mandrake Linux 5.2 and Solaris/x86 7.0 installed on my system, sharing two IDE hard disk drives, a CD-ROM drive, and a 3.5 inch 1.44MB Floppy disk drive. They are hooked up as follows :

  • Drive 0 : /dev/hda - 3.1 GB HDD : Primary Master
  • Drive 1 : /dev/cdrom - CD-ROM Drive : Primary Slave
  • Drive 2 : /dev/hdc - 240 MB HDD : Secondary Master
  • /dev/fd0 - 3.5" 1.44 MB Floppy Disk Drive

The 3.1 Gig drive has three partitions of 1 Gig each : a FAT16 for MS-DOS 6.22, Windows 3.11 and Windows-95, an extended partition inside which Linux resides, and a Solaris partiton. Since Linux is installed within the extended partiton,the mount points in Linux are /hda5 to /hda7. This is because there can be a maximum of four primary partitons on a drive - /dev/hda1 to /dev/hda4, and Linux knows about this potential situation.

The Windows swap file resides on my second 200 Meg drive, taking up the first 100 Meg partition. There is another 50 Meg partition, an extended one, on the second drive, which is used for Linux swap (/dev/hdc5). The remaining 50 Meg has another partition which is the swap partition for Solaris.

This is how my /etc/fstab file looks like.

/dev/hda5 / ext2 defaults 1 1
/dev/hda1 /C vfat defaults,ro 0 0
/dev/hdc1 /D vfat defaults,ro 0 0
/dev/hda7 /tmp ext2 defaults 1 2
/dev/hda6 /usr ext2 defaults 1 2
/dev/hdc5 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto sync,user,noauto,nosuid,nodev,unhide 0 0
/dev/cdrom /mnt/cdrom auto user,noauto,nosuid,nodev,ro 0 0
none /proc proc defaults 0 0

The file-systems are mounted like this on my system:

  • /dev/hda5 on / type ext2 (rw)
  • none on /proc type proc (rw)
  • /dev/hda1 on /C type vfat (ro)
  • /dev/hdc1 on /D type vfat (ro)
  • /dev/hda7 on /tmp type ext2 (rw)
  • /dev/hda6 on /usr type ext2 (rw)
  • /dev/cdrom on /mnt/cdrom type iso9660 (ro)

 


JavaScript DHTML Menu Powered by Milonic (License)