"auto" in /etc/fstab

Mark Knecht markknecht at gmail.com
Thu Sep 30 15:52:25 PDT 2010


On Thu, Sep 30, 2010 at 2:18 PM,  <rhubarbpie at poetworld.net> wrote:
>
> Is there a disadvantage of using auto for file system type in the
> /etc/fstab file?  I have three non-swap partitions.  Why not list them
> all as auto?

I don't really know the answer to your question but if it's of
interest then here is how I set up 3 swap partitions on one of my
machines at home:

/dev/sda1               /boot           ext2            noauto,noatime  1 2
/dev/md5                /               ext3            noatime         0 1
/dev/sda2               none            swap            sw              0 0
/dev/sdb2               none            swap            sw              0 0
/dev/sdc2               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,ro,users 0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0
/dev/md11               /virdata        ext3            auto            0 0
/dev/md6                /backups        ext3            auto,rw,users   0 0
/dev/sdf1               /mnt/WinMount   vfat            noauto,rw,users 0 0

This machine is sort of weird in that I'm not very RAID experienced.

sda5/sdb5/sdc5 are RAID1 assembled as md5

The boot partition is not RAID. I just put the kernel on all 3
partitions but only called out sda1 here. sdb1 & sdc1 have the kernel
also. If the boot partition goes down I'll chroot into the RAID and
fix grub from there.

sda2/sdb2/sdc2 are all 4GB swap partitions giving me 12GB swap.

top shows 12GB memory, 12GB swap and 12 processors:

top - 15:50:03 up 7 min,  3 users,  load average: 0.78, 0.46, 0.20
Tasks: 223 total,   1 running, 222 sleeping,   0 stopped,   0 zombie
Cpu0  :  1.0%us,  1.3%sy,  0.0%ni, 29.9%id, 67.4%wa,  0.0%hi,  0.3%si,  0.0%st
Cpu1  :  1.0%us,  0.0%sy,  0.0%ni, 98.7%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu2  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu3  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu4  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu5  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu6  :  0.7%us,  0.3%sy,  0.0%ni, 97.7%id,  1.3%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu7  :  0.0%us,  0.3%sy,  0.0%ni, 99.3%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu8  :  0.0%us,  0.0%sy,  0.0%ni, 99.2%id,  0.8%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu9  :  0.0%us,  0.0%sy,  0.0%ni, 99.7%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu10 :  0.0%us,  0.3%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu11 :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  12303144k total,   529176k used, 11773968k free,    16428k buffers
Swap: 12602976k total,        0k used, 12602976k free,   217544k cached

529MB to run KDE. Same machine uses over 1GB to run Win 7.

Hope this helps,
Mark



More information about the lfs-support mailing list