On Monday 11 October 2010 07:56:17 [email protected] wrote:
> ------- Original Message -------
>
> >From    : [email protected][mailto:[email protected]]
>
> Sent    : 10/10/2010 11:12:48 AM
> To      : [email protected]
> Cc      :
> Subject : FW: Re: FW: Re: "auto" in /etc/fstab
>
>  On 10/10/2010 01:05 PM, [email protected] wrote:
> > ------- Original Message -------
> >  From    : Bruce Dubbs[ mailto:[email protected] ]
> > Sent    : 10/9/2010 7:36:52 PM
> > To      : [email protected]
> > Cc      :
> > Subject : FW: Re: "auto" in /etc/fstab
> >
> > If you know what the filesystem is, there is no reason not to specify it.
> >
> >     -- Bruce
>
> I recently restored an imaged partition to a different file system.  Had
> I listed its file type as "auto" in /etc/fstab ...
>
> Even if I know what the file system is, I see no reason to specify it.

Binutils are getting better at recognizing a filesystem and loading its 
module(s) as needed before mounting it; it wasn't always thus. Regardless of 
that, there are two consumers of /etc/fstab: the computer, and the admin; it 
needs to be computer parsable and human grokable. I'll side more with Bruce 
on this one. (1) Fstab is where I usually 'document' which partitions have 
which filesystems. (2) I sometimes need to specify mount options; NTFS 
options don't work with reiserFS and reiserFS options don't work with vfat, 
etc. (3) Even if I know what the FS is, there's no guarantee I'll remember it 
in 6 months.

Something like the following works well enough for me. Depending on the FS, a 
partition will be mounted on different dirs and/or have different mount 
options:
/dev/sdh1 /mnt        ntfs-3g rw,user,noauto,allow_other,default_permissions,\
                              umask=000,dmask=000,fmask=111     0       0
/dev/sdh1 /media/usb1 auto    rw,user,noauto
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to