Is fsck obsolet for journaling FS? - Was: How do I Automount [snip]
Robert Heller
heller at deepsoft.com
Sun Nov 29 20:15:37 UTC 2015
At Sun, 29 Nov 2015 20:56:42 +0100 "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
>
>
>
> hi,
> Am Sonntag, den 29.11.2015, 20:30 +0100 schrieb Petter Adsen:
> > On Sun, 29 Nov 2015 19:46:36 +0100
> > Oliver Grawert <ogra at ubuntu.com> wrote:
> > > also since this is relevant for the thread, please note that
> > > technically /etc/fstab has not been necessary in years in ubuntu
> > > (try
> > > it, move it away and reboot, your system will be fine and properly
> > > have mounted all fileystems)
> >
> > Using what mechanism? I now mount several NFS exports with fstab
> > entries, if I were to (re)move fstab, how would they be mounted on
> > the
> > next boot? Even in the case of only local filesystems, how would the
> > system know where to mount them?
>
> lol, well, indeed if you have nfs mounts you will need fstab, i doubt
> you can specify them any differently in an easy way and wouldnt suggest
> you to remove it in that case ... for local filesystems you do not need
> an fstab in place, i.e. it is fine to boot without one but the file
> gets respected if it exists ...
> (i guess there are some autofs tricks to handle nfs mounts without
> fstab though)
I'm guessing you are thinking that most people only bother to have one file
system (the root file system). *Some* of us however have *many* file systems.
For example my desktop system (currently running CentOS 5 w/ Xen):
/dev/mapper/sauron-c5root / ext3 defaults 1 1
#LABEL=/c5 / ext3 defaults 1 1
LABEL=/extra /extra ext3 defaults 1 2
LABEL=/home /home ext3 defaults 1 2
LABEL=/dvdisos /dvdisos ext3 defaults 1 2
LABEL=/wineC /wineC ext3 defaults 1 2
LABEL=/distrocds /distrocds ext3 defaults 1 2
LABEL=/Stuff /Stuff ext3 defaults 1 2
#LABEL=/c5var /var ext3 defaults 1 2
LABEL=/c5usr /usr ext3 defaults 1 2
LABEL=/boot /boot ext2 defaults 1 2
LABEL=C5_SM /home3/heller/Deepwoods ext3 defaults 1 2
LABEL=localrepo /var/www/localrepo ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=Swap swap swap defaults 0 0
#LABEL=REPOS /repos ext3 noauto,user,rw,exec 0 0
# Centos 5.11 DVDs
/distrocds/CentOS/5/CentOS-5.11-i386-bin-DVD-1of2.iso /centos511i386/1 iso9660 ro,loop=/dev/loop2 0 0
/distrocds/CentOS/5/CentOS-5.11-i386-bin-DVD-2of2.iso /centos511i386/2 iso9660 ro,loop=/dev/loop3 0 0
/distrocds/CentOS/5/CentOS-5.11-x86_64-bin-DVD-1of2.iso /centos511x86_64/1 iso9660 ro,loop=/dev/loop4 0 0
/distrocds/CentOS/5/CentOS-5.11-x86_64-bin-DVD-2of2.iso /centos511x86_64/2 iso9660 ro,loop=/dev/loop5 0 0
# FC 15
#/distrocds/Fedora/Fedora-15-x86_64-DVD.iso /fc15x86_64 iso9660 ro,loop=/dev/loop6 0 0
#/distrocds/Fedora/Fedora-15-i386-DVD.iso /fc15i386 iso9660 ro,loop=/dev/loop7 0 0
# Ubuntu 11.10
#/distrocds/Ubuntu/Oneiric/ubuntu-11.10-desktop-amd64.iso /ub11x86_64 iso9660 ro,loop=/dev/loop8 0 0
# Mint 14 (xfce)
#/distrocds/Mint/linuxmint-14.1-xfce-dvd-32bit.iso /mint14xfcei386 iso9660 ro,loop=/dev/loop9 0 0
# Centos 6.4 DVDs
#/distrocds/CentOS/6/CentOS-6.4-i386-bin-DVD1.iso /centos64i386/1 iso9660 ro,loop=/dev/loop11 0 0
#/distrocds/CentOS/6/CentOS-6.4-i386-bin-DVD2.iso /centos64i386/2 iso9660 ro,loop=/dev/loop12 0 0
#/distrocds/CentOS/6/CentOS-6.4-x86_64-bin-DVD1.iso /centos64x86_64/1 iso9660 ro,loop=/dev/loop13 0 0
#/distrocds/CentOS/6/CentOS-6.4-x86_64-bin-DVD2.iso /centos64x86_64/2 iso9660 ro,loop=/dev/loop14 0 0
# removable media
/dev/dvdrw /media/cdrom auto user,noauto,ro 0 0
/dev/dvdrw /mnt/cdchanger/data auto user,noauto,ro 0 0
/dvdisos/temp.udf /mnt/tempudf udf user,noauto,loop,uid=amanda,gid=disk 0 0
>
> >
> > Also, you said (in an earlier message):
> >
> > > nowadays mtab is (or should be, i dont know if update-manager
> > > already
> > > switches it over on upgrades yet for all releases) a link
> > > to /proc/mounts (until it hopefully goes away within the next year
> > > or
> > > two)
> >
> > What goes away - mtab or /proc/mounts?
>
> mtab indeed ... it is an ugly wart (dynamically created file at boot in
> /etc ...)
>
> ciao
> oliContent-Description: This is a digitally signed message part
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iD8DBQBWW1h6SsOT+6LQaTYRAkdfAJ9eFbmzWpb6e7eCt9rUA9+jKNjqMgCg31XX
> hKaqkBdg86XaoQKuq65vkaM=
> =Cd5B
> -----END PGP SIGNATURE-----
>
> MIME-Version: 1.0
>
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller at deepsoft.com -- Webhosting Services
More information about the ubuntu-users
mailing list