Re: quot;autoquot; in /etc/fstab

2010-10-11 Thread rhubarb...@poetworld.net




--- Original Message ---
From: rhubarbpie...@gmail.com[mailto:rhubarbpie...@gmail.com]
Sent: 10/10/2010 11:12:48 AM
To  : rhubarb...@poetworld.net
Cc  : 
Subject : FW: Re: FW: Re: auto in /etc/fstab

 On 10/10/2010 01:05 PM, rhubarb...@poetworld.net wrote:



 --- Original Message ---
  From: Bruce Dubbs[ mailto:bruce.du...@gmail.com ]
 Sent: 10/9/2010 7:36:52 PM
 To  : lfs-support@linuxfromscratch.org
 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.


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: quot;autoquot; in /etc/fstab

2010-10-11 Thread Neal Murphy
On Monday 11 October 2010 07:56:17 rhubarb...@poetworld.net wrote:
 --- Original Message ---

 From: rhubarbpie...@gmail.com[mailto:rhubarbpie...@gmail.com]

 Sent: 10/10/2010 11:12:48 AM
 To  : rhubarb...@poetworld.net
 Cc  :
 Subject : FW: Re: FW: Re: auto in /etc/fstab

  On 10/10/2010 01:05 PM, rhubarb...@poetworld.net wrote:
  --- Original Message ---
   From: Bruce Dubbs[ mailto:bruce.du...@gmail.com ]
  Sent: 10/9/2010 7:36:52 PM
  To  : lfs-support@linuxfromscratch.org
  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 /mntntfs-3g rw,user,noauto,allow_other,default_permissions,\
  umask=000,dmask=000,fmask=111 0   0
/dev/sdh1 /media/usb1 autorw,user,noauto
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: quot;autoquot; in /etc/fstab

2010-10-11 Thread rhubarbpie
On 10/11/2010 08:39 AM, Neal Murphy wrote:
 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 /mntntfs-3g rw,user,noauto,allow_other,default_permissions,\
umask=000,dmask=000,fmask=111 0   0
 /dev/sdh1 /media/usb1 autorw,user,noauto


Thank you for responding.  I'd thought of the documentation argument.  
However, even though I have auto for each partition in my /etc/fstab, 
mount or df -T tells me the file system type.  True, that doesn't 
apply to the / partition, but that's not a problem for me.

Jonathan suggested auto isn't a good idea with network drives.  I'll 
buy that.

Your /etc/fstab example is good.  I used something similar, but less 
sophisticated, before I began using auto.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page