Re: [reiserfs-list] Mount options

2001-08-31 Thread Andreas Dilger

On Aug 31, 2001  18:54 +0200, Rosaire AMORE wrote:
 /dev/hdb6 /ext reiserfs rw,suid,dev,exec,auto,user,async 1 2
 
 The second line contains options that i used with ext2fs. The result was
 that i was unable to execute nothing on the /ext filesystem (scripts or
 binaries).
 I rewrote the line like this :
 
 /dev/hdb6 /ext reiserfs notail 1 2

Well, most of those options are in the defaults flag, so you could use:

/dev/hdb6 /ext reiserfs defaults,user 1 2

and it should work for both filesystem types.  However, I don't think any
of them are specific to ext2, so reiserfs shouldn't have a problem if
they are specified explicitly.  I would _guess_ that all of these flags
are handled by mount/VFS and neither reiserfs nor ext2 actually do anything
with them, so it is strange that you would have such a problem.

Cheers, Andreas
-- 
Andreas Dilger  \ If a man ate a pound of pasta and a pound of antipasto,
 \  would they cancel out, leaving him still hungry?
http://www-mddsp.enel.ucalgary.ca/People/adilger/   -- Dogbert




Re: [reiserfs-list] Mount options

2001-08-31 Thread Nikita Danilov

Andreas Dilger writes:
  On Aug 31, 2001  18:54 +0200, Rosaire AMORE wrote:
   /dev/hdb6 /ext reiserfs rw,suid,dev,exec,auto,user,async 1 2
   
   The second line contains options that i used with ext2fs. The result was
   that i was unable to execute nothing on the /ext filesystem (scripts or
   binaries).
   I rewrote the line like this :
   
   /dev/hdb6 /ext reiserfs notail 1 2
  
  Well, most of those options are in the defaults flag, so you could use:
  
  /dev/hdb6 /ext reiserfs defaults,user 1 2

By the way, last two fields should be 0 0, see
http://namesys.com/faq.html#fstab

  
  and it should work for both filesystem types.  However, I don't think any
  of them are specific to ext2, so reiserfs shouldn't have a problem if
  they are specified explicitly.  I would _guess_ that all of these flags
  are handled by mount/VFS and neither reiserfs nor ext2 actually do anything
  with them, so it is strange that you would have such a problem.
  
  Cheers, Andreas

Nikita.

  -- 



Re: [reiserfs-list] Mount options

2001-08-31 Thread Vladimir V. Saveliev

Hi

Rosaire AMORE wrote:

 Hi
 I had a /etc/fstab (Linux Mandrake 7.2 - kernel 2.2.17) that contained
 the following lines :

 /dev/hda3 / reiserfs notail 1 1
 /dev/hdb6 /ext reiserfs rw,suid,dev,exec,auto,user,async 1 2

 Nothing to say about the first one.

Actually, there is something:
root filesystem is mounted when /etc/fstab is not available, so, I guess
that this line is used only to remount root filesystem. AFAIS, option
notail is ignored when reiserfs is remounted with that option. So, notail
does not work here.
Also, you might want to change 1 in sixth field by 0 in both records, so
that fsck(8) will avoid calling to reiserfsck.


 The second line contains options that i used with ext2fs. The result was
 that i was unable to execute nothing on the /ext filesystem (scripts or
 binaries).
 I rewrote the line like this :

 /dev/hdb6 /ext reiserfs notail 1 2

 and everything works.
 The question is : does it exists mount options for reiserfs that does
 the same thing as those on ext2fs? (rw,suid,dev,exec,auto,user,async,
 etc).

The above mount options which are common for all filesystems should work
for reiserfs.
As for exec - if it does not work for reiserfs (fs gets mounted noexec) -
it should not also work for ext2. At least it does not for me.

Probably there is some mismatching between what bits does mount(8) set and
how does kernel interpret those bits.

Thanks,
vs