View previous topic :: View next topic |
Author |
Message |
ALecFFer n00b
Joined: 04 Feb 2004 Posts: 2
|
Posted: Tue Sep 07, 2004 11:16 pm Post subject: /etc/fstab Question |
|
|
Hi ya! I'm a old linux desktop user but it's my first time installing gentoo on my hardware and I have never set up things manually.
I've already read about fstab on: http://www.tuxfiles.org/linuxhelp/fstab.html but I've got some lil' questions:
-question1: I hadn't partitionated /boot separately (supposed to everything be on /) I need to set up fstab to mount it? (I think not)
Code: |
like that? I can do it? Is it possible?
/dev/sda1 /boot reiserfs auto,noatime,notail 0 1
/dev/sda1 / reiserfs auto,noatime,notail 0 1
???
|
-info:
Code: |
/dev/sda1 Boot Primary Linux ReiserFS
/dev/sda2 Primary Linux swap
/dev/sda3 Primary Linux ext3
/dev/sda5 Logical Linux ReiserFS
/dev/sda6 Logical Linux ReiserFS
/dev/sda7 Logical Linux ext3
|
-question2: is it good ?
Code: |
/dev/sda1 / reiserfs auto,noatime,notail 0 1
/dev/sda2 none swap sw 0 0
/dev/sda3 /vmware ext3 auto,noatime,notail 0 0
/dev/sda5 /tmp reiserfs notail,noatime,nodev,nosuid,noexec 0 0
/dev/sda6 /www reiserfs auto,noatime,notail,noexec 0 0
/dev/sda7 /media ext3 auto,noatime,notail,noexec 0 0
/dev/cdroms /cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
|
thanks in advance.
____
~great community make a great distro.~
Last edited by ALecFFer on Wed Sep 08, 2004 12:06 am; edited 9 times in total |
|
Back to top |
|
|
inode77 Veteran
Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Tue Sep 07, 2004 11:27 pm Post subject: |
|
|
Quote: |
/dev/sda1 / reiserfs auto,noatime,notail 0 1
/dev/sda2 none swap sw 0 0
/dev/sda3 /vmware ext3 auto,noatime,notail 0 0
/dev/sda5 /tmp reiserfs notail,noatime,nodev,nosuid,noexec 0 0
/dev/sda6 /www reiserfs auto,noatime,notail 0 0
/dev/sda7 /media ext3 auto,noatime,notail 0 0
/dev/cdroms /cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
proc /proc proc defaults 0 0
|
Doesn't look bad (no comment on the part sizes because I don't know the intentions for setting it up like this.
The only thing I see @ moment is that the "noexec" statement may break some exotic scripts in rare occasions but the advantage is almost any script kiddie attack will fail.
And don't forget /dev/shm.
Mine looks like that to give you an example: Code: |
# <fs> <mountpoint> <type> <opts> <dump/pass>
# Local FS that span an entire device
/dev/hda1 /mnt/win/c ntfs noauto,ro,user,uid=1000,gid=100 0 0
/dev/hda2 /mnt/win/d ntfs noauto,ro,user,uid=1000,gid=100 0 0
/dev/hda4 none swap sw 0 0
/dev/hda5 /boot ext3 noauto,noatime 1 1
/dev/hda7 / reiserfs noatime 0 0
/dev/hda8 /home reiserfs noatime 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0
# Local encrypted FS that span an entire device
/dev/mapper/secure /mnt/vault reiserfs noauto,noatime,user 0 0
# Local special system FS
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
# Non local FS
//sealion/private /mnt/sealion/private smbfs noauto,username=xxx,user 0 0
//sealion/private /mnt/sealion/public smbfs noauto,username=xxx,user 0 0
//sealion/private /mnt/sealion/temp smbfs noauto,username=nobody,user 0 0
|
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|