You are not logged in.

#1 2003-10-22 04:05:39

marin_linuxer
Member
From: San Rafael, CA U.S.A.
Registered: 2003-09-03
Posts: 111
Website

FSTAB: A Science and an Art? Your Craft HERE!

Hi All,

As part of my on-going learning courses, here, I ask you to please cut/paste your 'etc/fstab' entries into a reply(if they differ at all from the Arch defaults) for the benefit of all us nOOb's who are looking to further our understanding of the various ways to configure this all-important file.

Of particular interest to me is how you support any of your usb connected devices(hard-drives, card-reader's, digital cameras, and other eccentric hardware).  Please post any comments to help explain how you achieved success with difficult devices.  However, uncommented plain 'ol fstab entries are great, too.

Here's one of my current one's and Thanx from all us nOOb's for your time(!):

$ cat /etc/fstab

/dev/discs/disc0/part3  /               reiserfs        defaults                                                                        0       0

/dev/discs/disc0/part2  swap            swap            defaults                                                                        0       0

none                    /proc           proc            defaults                                                                        0       0

none                    /dev/shm        tmpfs           defaults                                                                        0       0

none                    /proc/bus/usb   usbfs           defaults                                                                        0       0

tmpfs                   /tmp            tmpfs           size=2G,nr_inodes=10k                                                           0       0

/dev/discs/disc0/part1  /mnt/windows    auto            umask=0                                                                         0       0

/dev/cdroms/cdrom0      /mnt/cdrom      supermount      dev=/dev/cdroms/cdrom0,--,user,exec,dev,suid,noauto,unhide                      0       0

/dev/floppy/0           /mnt/floppy     supermount      dev=/dev/floppy/0,--,user,exec,dev,suid,noauto,umask=0                          0       0

$


-- Linux!  Isn't it time?

Offline

#2 2003-10-22 06:36:47

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,176
Website

Re: FSTAB: A Science and an Art? Your Craft HERE!

marin_linuxer wrote:

Of particular interest to me is how you support any of your usb connected devices(hard-drives, card-reader's, digital cameras, and other eccentric hardware).

Please read this topic, it may help:
http://bbs.archlinux.org/viewtopic.php?t=1452

Offline

#3 2003-10-22 16:37:57

Jagged
Member
From: Blacksburg, VA
Registered: 2003-07-18
Posts: 153

Re: FSTAB: A Science and an Art? Your Craft HERE!

#/ect/fstab
/dev/cdroms/cdrom0     /mnt/cd   iso9660   ro,user,noauto,unhide  0      0
/dev/cdroms/cdrom0     /mnt/dvd  udf       ro,user,noauto,unhide  0      0
/dev/floppy/0          /mnt/fl   vfat      user,noauto,unhide     0      0
none                   /proc     proc      defaults               0      0
none                   /dev/shm  tmpfs     defaults               0      0
/dev/md/0               /       reiserfs        defaults        0       0
/dev/md/1               /usr    reiserfs        defaults        0       0
/dev/md/2               /home   reiserfs        defaults        0       0
/dev/discs/disc0/part1  /boot   ext2            noauto          0       0
/dev/discs/disc1/part1  swap    swap            defaults        0       0
#EOF

linux software raid-0 on md/0 and md/1, software linear raid on md/2

#df -h output
Filesystem            Size  Used Avail Use% Mounted on
/dev/md/0              19G  554M   19G   3% /
none                  252M     0  252M   0% /dev/shm
/dev/md/1              38G  1.4G   36G   4% /usr
/dev/md/2              56G  4.3G   52G   8% /home

here's my raid setup

#/etc/raidtab
raiddev /dev/md0
        raid-level              0
        nr-raid-disks           2
        persistent-superblock   1
        chunk-size              4

        device                  /dev/hda2
        raid-disk               0
        device                  /dev/hdb2
        raid-disk               1

raiddev /dev/md1
        raid-level              0
        nr-raid-disks           2
        persistent-superblock   1
        chunk-size              4

        device                  /dev/hda3
        raid-disk               0
        device                  /dev/hdb3
        raid-disk               1

raiddev /dev/md2
        raid-level              linear
        nr-raid-disks           2
        persistent-superblock   1
        chunk-size              32

        device                  /dev/hda4
        raid-disk               0
        device                  /dev/hdb4
        raid-disk               1
#EOF

http://bbs.archlinux.org/viewtopic.php?t=1456  go there if you want to read about installing archlinux on a software raid


Nkawtg...n!

Offline

#4 2003-10-22 23:58:38

jlvsimoes
Member
From: portugal
Registered: 2002-12-23
Posts: 392
Website

Re: FSTAB: A Science and an Art? Your Craft HERE!

#
# /etc/fstab: static file system information
#
# <file system>        <dir>     <type>    <options>              <dump> <pass>

/dev/discs/disc1/part1 /boot     reiserfs  defaults               0      0
/dev/discs/disc1/part3 /         reiserfs  defaults               0      0
/dev/discs/disc1/part2 swap      swap      defaults               0      0
/dev/discs/disc0/part1 /mnt/win  vfat      rw,user,noauto,unhide  0      0
/dev/discs/disc0/part2 /home     reiserfs  defaults               0      0
/dev/cdroms/cdrom1     /mnt/cdrw   auto   ro,user,noauto,unhide  0      0
/dev/cdroms/cdrom0     /mnt/idedvd  auto       ro,user,noauto,unhide  0      0
/dev/fd0               /mnt/floppy   vfat      noauto,rw,user,unhide           0      0
none                   /proc     proc      defaults               0      0
none                   /dev/shm  tmpfs     defaults               0      0
tmpfs                  /tmp      tmpfs     defaults               0      0
none                   /proc/bus/usb usbfs defaults               0      0
none                   /dev/pts/ devpts    defaults               0      0
#/dev/scsi/host0/bus0/target1/lun0/cd    /mnt/cdrw    auto    ro,noauto,user,exec    0 0
/dev/scsi/host0/bus0/target0/lun0/cd    /mnt/dvd    auto    ro,noauto,user,exec    0 0


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------

Offline

#5 2003-10-23 00:03:17

contrasutra
Member
From: New Jersey
Registered: 2003-07-26
Posts: 507

Re: FSTAB: A Science and an Art? Your Craft HERE!

#
# /etc/fstab: static file system information
#
# <file system>        <dir>     <type>    <options>              <dump> <pass>

#/dev/#EXT2FS_BOOT#    /boot     ext2      defaults               0      1
#/dev/#REISERFS_ROOT#  /         reiserfs  defaults               0      0
#/dev/#EXT2FS_ROOT#    /         ext2      defaults               0      1
#/dev/#SWAP#           swap      swap      defaults               0      0
/dev/hda7  /home     reiserfs  defaults               0      0
#/dev/#EXT2FS_HOME#    /home     ext2      defaults               0      2

/dev/cdroms/cdrom0     /mnt/cd   iso9660   ro,user,noauto,unhide  0      0
/dev/cdroms/cdrom1     /mnt/dvd  udf       ro,user,noauto,unhide  0
/dev/cdroms/cdrom1    /mnt/cdrecorder auto ro,noauto,user,exec  0    0
/dev/scd0       /mnt/cdrecorder  auto      ro,noauto,user,exec    0      0
/dev/floppy/0          /mnt/fl   vfat      user,noauto,unhide     0      0
none                   /proc     proc      defaults               0      0
none                   /dev/shm  tmpfs     defaults               0      0
tmpfs                  /tmp      tmpfs     size=2G,nr_inodes=10k  0      0
none                   /dev/pts  devpts      defaults              0     0
/dev/discs/disc0/part5 /mnt/windows ntfs   ro,umask=0222          0      0
#/dev/discs/disc0/part6 /rams ntfs ro,umask=0222          0     0
/dev/discs/disc0/part4  /mnt/winlin  vfat      rw,defaults,umask=000  0  0
/dev/discs/disc0/part8 swap swap defaults 0 0
/dev/discs/disc0/part3 / reiserfs defaults 0 0
/dev/discs/disc0/part6 /mnt/wprograms ntfs ro,umask=0222 0 0
/dev/discs/disc0/part1 /mnt/wswap ntfs ro,umask=0222 0 0


"Contrary to popular belief, penguins are not the salvation of modern technology.  Neither do they throw parties for the urban proletariat."

Offline

#6 2004-02-01 19:12:33

marin_linuxer
Member
From: San Rafael, CA U.S.A.
Registered: 2003-09-03
Posts: 111
Website

Re: FSTAB: A Science and an Art? Your Craft HERE!

Hi,  I notice that some of you posted fstab _with_ /dev/pts entries and some _without_ /dev/pts.

Also, most seem to be mounting tmpfs both on /dev/shm and /tmp.

Could someone please explain the benefits of using /dev/pts versus not and also why tmpfs needs to be mounted in two places.  The man pages on tmpfs are a little vague about the this and the dev/pts is just not terribly clear in its' uses either.

Thanx !!


-- Linux!  Isn't it time?

Offline

#7 2004-02-23 19:27:35

Thikasabrik
Member
Registered: 2004-02-23
Posts: 92

Re: FSTAB: A Science and an Art? Your Craft HERE!

tmpfs is mounted on /dev/shm because this is expected by various progs (i think). This is normal anyway. It is also mounted on /tmp because this means this folder will not consume your hdd and will loose its contents on power-down. Which is good.

This does, however, require a fairly large swap file to avoid running out of room in /tmp, since tmpfs provides shared memory using ram and swap. I discovered this while extracting the kernel sources with a 500mb swap - I was confused as to why I ran out of memory... so now I only have it mounted on /dev/shm.

Btw, if anyone knows why the /dev/shm tmpfs has a 'device' of 'none' rather than 'tmpfs' like /tmp, I'd be interested to know.

Offline

#8 2004-02-24 14:02:55

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: FSTAB: A Science and an Art? Your Craft HERE!

With a 2.4 kernel devfs will mount /dev/pts automatically, in 2.6 devfs is stripped down and won't do that anymore, so you need to add it to fstab.  /dev/pts is used for Unix98 pseudo terminal support (yes, you want that).

/dev/shm is used for shared memory, so it's not really a filesystem, it's only implemented with tmpfs. Some programs may need it, and it won't hurt to have.

I wouldn't mount /tmp on a tmpfs filesystem, it has not much advantages, and if some program puts a very big file there you could get memory problems (e.g. Mozilla downloading files to /tmp first and only moving them to the right place when the download is finished). If you want an empty /tmp then you can add 'rm -rf /tmp/*' to an init script.

Offline

Board footer

Powered by FluxBB