public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  fix fstab for tripleboot
@ 2006-10-17  6:57 Thufir
  2006-10-17  7:08 ` Dirk Heinrichs
  2006-10-17 10:01 ` Alan McKinnon
  0 siblings, 2 replies; 3+ messages in thread
From: Thufir @ 2006-10-17  6:57 UTC (permalink / raw
  To: gentoo-user

How can I fix line 10 of /etc/fstab so that, like /mnt/windows, it's just
automagically available for read and write?




[root@arrakis ~]#
[root@arrakis ~]# cat /boot/grub/grub.conf -n
     1  # grub.conf generated by anaconda
     2  #
     3  # Note that you do not have to rerun grub after making changes to this file
     4  # NOTICE:  You have a /boot partition.  This means that
     5  #          all kernel and initrd paths are relative to /boot/, eg.
     6  #          root (hd0,0)
     7  #          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
     8  #          initrd /initrd-version.img
     9  #boot=/dev/hda
    10  default=0
    11  timeout=5
    12  splashimage=(hd0,0)/grub/splash.xpm.gz
    13  #hiddenmenu
    14  title Fedora Core (2.6.18-1.2200.fc5)
    15          root (hd0,0)
    16          kernel /vmlinuz-2.6.18-1.2200.fc5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    17          initrd /initrd-2.6.18-1.2200.fc5.img
    18  title Fedora Core (2.6.17-1.2187_FC5)
    19          root (hd0,0)
    20          kernel /vmlinuz-2.6.17-1.2187_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    21          initrd /initrd-2.6.17-1.2187_FC5.img
    22  title win2k
    23            map (hd0) (hd1)
    24            map (hd1) (hd0)
    25            rootnoverify (hd1,0)
    26            chainloader +1
    27  title Gentoo
    28            kernel (hd1,1)/kernel-genkernel-x86-2.6.15-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hdb4
    29            initrd (hd1,1)/initramfs-genkernel-x86-2.6.15-gentoo-r5
[root@arrakis ~]#
[root@arrakis ~]# exit
logout

[thufir@arrakis ~]$
[thufir@arrakis ~]$ cat /etc/fstab -n
     1  /dev/VolGroup00/LogVol00 /                       reiserfs defaults        1 1
     2  LABEL=/boot             /boot                   ext3    defaults        1 2
     3  devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
     4  tmpfs                   /dev/shm                tmpfs   defaults        0 0
     5  proc                    /proc                   proc    defaults        0 0
     6  sysfs                   /sys                    sysfs   defaults        0 0
     7  /dev/hdb3               swap                    swap    defaults        0 0
     8  /dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
     9  /dev/hdb1               /mnt/windows            vfat    users,owner,rw,umask=000 0 0
    10  #/dev/hdb4              /mnt/gentoo             ext3    users,owner,rw,umask=000 0 0
    11
[thufir@arrakis ~]$
[thufir@arrakis ~]$ date
Tue Oct 17 07:55:42 IST 2006
[thufir@arrakis ~]$



thanks,

Thufir

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user]  fix fstab for tripleboot
  2006-10-17  6:57 [gentoo-user] fix fstab for tripleboot Thufir
@ 2006-10-17  7:08 ` Dirk Heinrichs
  2006-10-17 10:01 ` Alan McKinnon
  1 sibling, 0 replies; 3+ messages in thread
From: Dirk Heinrichs @ 2006-10-17  7:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 612 bytes --]

Am Dienstag, 17. Oktober 2006 08:57 schrieb ext Thufir:

> How can I fix line 10 of /etc/fstab so that, like /mnt/windows, it's just
> automagically available for read and write?
>
>        ext3    users,owner,rw,umask=000

Change it to "ext3 defaults".

HTH...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user]  fix fstab for tripleboot
  2006-10-17  6:57 [gentoo-user] fix fstab for tripleboot Thufir
  2006-10-17  7:08 ` Dirk Heinrichs
@ 2006-10-17 10:01 ` Alan McKinnon
  1 sibling, 0 replies; 3+ messages in thread
From: Alan McKinnon @ 2006-10-17 10:01 UTC (permalink / raw
  To: gentoo-user

On Tuesday 17 October 2006 08:57, Thufir wrote:
> How can I fix line 10 of /etc/fstab so that, like /mnt/windows, it's
> just automagically available for read and write?

[snip]
>   9  /dev/hdb1               /mnt/windows          
>  vfat    users,owner,rw,umask=000 0 0
>  10  #/dev/hdb4              
> /mnt/gentoo             ext3    users,owner,rw,umask=000 0 0 11

The short answer is that you don't. The long answedr is that you can, if 
you are willing to change permissions.

Your /mnt/windows is a vfat filesystem, which has no idea of unix 
permissions. But it's mounted on a Unix system which must have 
permissions, so the kernel takes a default and applies the default to 
every file and directory

Your /mnt/gentoo is ext3 which DOES understand permissions, so therefore 
the system will use the permissions and owner/group that is already on 
that filesystem. You can't override this, and neither do you want to. 
The defaults you are using mostly do not apply to ext3 either, check 
the man page for mount for valid options to ext3 and ext2.

If you are willing to change owner and permissions on all the files 
on /dev/hdb4 then you can do so and they will be available when 
mounted, but you cannot arbitrarily suspend existing permissions with 
just a mount operation.

alan
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-17 10:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-17  6:57 [gentoo-user] fix fstab for tripleboot Thufir
2006-10-17  7:08 ` Dirk Heinrichs
2006-10-17 10:01 ` Alan McKinnon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox