| View previous topic :: View next topic |
| Author |
Message |
Dark Foo l33t

Joined: 21 Nov 2008 Posts: 921 Location: 127.0.0.1
|
Posted: Sat Dec 17, 2011 7:16 pm Post subject: |
|
|
| Code: | /dev/sda1 /boot ext4 defaults,noatime 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext4 noatime 0 1
/dev/sda5 /opt ext4 defaults,noatime,nodev 0 1
/dev/sda6 /usr ext4 defaults,noatime,nodev 0 1
/dev/sda7 /usr/portage ext4 defaults,noatime,nodev,noexec,nosuid 0 1
/dev/sda8 /var ext4 defaults,noatime,nodev 0 1 |
Is how the system is set atm, server will be the same, although i will remove /usr/portage
so i am gussing if i remove sda8 it should look something like
| Code: | /dev/sda1 /boot ext4 defaults,noatime,nodev 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext4 noatime,nodev 0 1
/dev/sda5 /opt ext4 defaults,noatime,nodev 0 1
/dev/sda6 /usr ext4 defaults,noatime,nodev 0 1
/dev/sda7 /var ext4 defaults,noatime,nodev 0 1
/dev/mapper/home /home xfs defaults,allocsize=512m 0 0
tmpfs /tmp tmpfs size=2G defaults,noatime,nodev,nosuid 0 0
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
_________________ I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Last edited by Dark Foo on Sun Dec 18, 2011 7:38 am; edited 1 time in total |
|
| Back to top |
|
 |
Hu Watchman

Joined: 06 Mar 2007 Posts: 6828
|
Posted: Sun Dec 18, 2011 2:20 am Post subject: |
|
|
| Although not likely to be important, you missed nodev on / and /boot. You could mark /var noexec, but only if you do not build on it. |
|
| Back to top |
|
 |
Dark Foo l33t

Joined: 21 Nov 2008 Posts: 921 Location: 127.0.0.1
|
Posted: Sun Dec 18, 2011 7:34 am Post subject: |
|
|
well the worst that can happen is that it will tell me it cant build there, which is what i think it did to me before which is why i removed it, if memeroy serves me right it complained about /var/tmp/portage
I edited the above post so i can copy and past it when i reinstall  _________________ I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch. |
|
| Back to top |
|
 |
cwr Veteran

Joined: 17 Dec 2005 Posts: 1288
|
Posted: Sun Dec 18, 2011 4:56 pm Post subject: |
|
|
Does nodev on / still permit the use of the /dev files? Or is the kernel happy once
udev has created them? I've always been a bit confused about nodev on anything
but /home partitions.
Will |
|
| Back to top |
|
 |
Dark Foo l33t

Joined: 21 Nov 2008 Posts: 921 Location: 127.0.0.1
|
Posted: Sun Dec 18, 2011 4:57 pm Post subject: |
|
|
seems to be working ok here atm, not really had chance to test it all out as its still compiling stuff, but i can see all my drives and things so assume so _________________ I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch. |
|
| Back to top |
|
 |
Ant P. Veteran

Joined: 18 Apr 2009 Posts: 1295 Location: UK
|
Posted: Sun Dec 18, 2011 5:50 pm Post subject: |
|
|
I wouldn't recommend this to anyone yet, but on my laptop I just have an ext2 /boot and give the rest of the disk to btrfs subvolumes. Everything can have as much space as it wants while having separate mount flags. _________________ sig temporarily out of order |
|
| Back to top |
|
 |
Dark Foo l33t

Joined: 21 Nov 2008 Posts: 921 Location: 127.0.0.1
|
Posted: Sun Dec 18, 2011 5:51 pm Post subject: |
|
|
btrfs might get a look in when it is stable _________________ I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch. |
|
| Back to top |
|
 |
Hu Watchman

Joined: 06 Mar 2007 Posts: 6828
|
Posted: Sun Dec 18, 2011 6:46 pm Post subject: |
|
|
| cwr wrote: | Does nodev on / still permit the use of the /dev files? Or is the kernel happy once
udev has created them? I've always been a bit confused about nodev on anything
but /home partitions. | nodev applies to device nodes on the filesystem in question. In a typical system, /dev is a tmpfs or devtmpfs, and is therefore not part of /. Thus, device nodes in /dev are not affected by the nodev option on /. You might get into trouble if you use a static /dev with pre-created devices, but there is no reason to do that these days. |
|
| Back to top |
|
 |
cach0rr0 Moderator


Joined: 13 Nov 2008 Posts: 3849 Location: Houston, Republic of Texas
|
Posted: Mon Dec 19, 2011 1:32 am Post subject: |
|
|
| Ant P. wrote: | | I wouldn't recommend this to anyone yet, but on my laptop I just have an ext2 /boot and give the rest of the disk to btrfs subvolumes. Everything can have as much space as it wants while having separate mount flags. |
I did this for a long while.
I moved away from it as soon as humanly possible. I have my own anecdotal evidence it was not up to snuff (the way i was using it, at least) |
|
| Back to top |
|
 |
eccerr0r Advocate

Joined: 01 Jul 2004 Posts: 2354 Location: USA
|
Posted: Tue Dec 20, 2011 12:05 am Post subject: |
|
|
I ended up going away from the usual partition for each section, for my personal workstations with one disk that update frequently, because pooling all disk space gives highest flexibility.
For systems that aren't supposed to change often and multiple disks/disk types, then partition per may make sense... But for the most part my typical linux machine has a small /boot partition (some even don't!), a swap partition (some don't and use swap files instead!), and the root partition with everything on it. A lot less hassle.
I got sort of tired of the partitions because I tended to make modifications on my whole system and ended up needing to back up the whole system anyway because I don't remember which partitions I changed... that means it defeats the purpose of keeping more frequent backups of, say, /home which has the most changes, and none of /tmp, which we don't care about.
(And I've been bad. I store files in /tmp expecting them to stay there and then openrc default then blows /tmp away...) _________________ Core2Quad 9550S/4GB/4x500G RAID5/RadeonHD 5770
What the heck am I advocating? |
|
| 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
|
|