Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is this enough space for the partitions?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Dark Foo
l33t
l33t


Joined: 21 Nov 2008
Posts: 921
Location: 127.0.0.1

PostPosted: Sat Dec 17, 2011 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 6828

PostPosted: Sun Dec 18, 2011 2:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Dark Foo
l33t
l33t


Joined: 21 Nov 2008
Posts: 921
Location: 127.0.0.1

PostPosted: Sun Dec 18, 2011 7:34 am    Post subject: Reply with quote

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 :twisted:
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1288

PostPosted: Sun Dec 18, 2011 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dark Foo
l33t
l33t


Joined: 21 Nov 2008
Posts: 921
Location: 127.0.0.1

PostPosted: Sun Dec 18, 2011 4:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Veteran
Veteran


Joined: 18 Apr 2009
Posts: 1295
Location: UK

PostPosted: Sun Dec 18, 2011 5:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dark Foo
l33t
l33t


Joined: 21 Nov 2008
Posts: 921
Location: 127.0.0.1

PostPosted: Sun Dec 18, 2011 5:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 6828

PostPosted: Sun Dec 18, 2011 6:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 3849
Location: Houston, Republic of Texas

PostPosted: Mon Dec 19, 2011 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 2354
Location: USA

PostPosted: Tue Dec 20, 2011 12:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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