View previous topic :: View next topic |
Author |
Message |
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Mon Feb 20, 2006 2:05 pm Post subject: partitioning help for 2 drive set-up please... |
|
|
i'm rebuilding my box with 2 drives, a 74gb raptor & a 200gb maxtor
want to use the small drive as system drive & the big one only for /home.
my scheme looks like this:
Code: |
/dev/sda1 -- /boot primary
/dev/sda2 -- (swap) primary
/dev/sda3 -- / primary
/dev/sda4 -- extended
/dev/sda5 -- /usr logical
/dev/sda6 -- /opt logical
/dev/sda7 -- /var logical
/dev/sda8 -- /tmp logical
/dev/sdb1 -- /home primary? |
i understand partitioning with fdisk so far, but my questions are:
how ( on which mount point ) do i have to mount /dev/sdb1?
and how would the corresponding line in /etc/fstab look like?
thanks again! _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
Dlareh Advocate
Joined: 06 Aug 2005 Posts: 2102
|
Posted: Mon Feb 20, 2006 2:14 pm Post subject: Re: partitioning help for 2 drive set-up please... |
|
|
I fail to see why someone unsure about how to write an fstab for two drives feels the need to have a seperate /usr, /opt, /var, and /tmp. Do yourself a favor and lump most of those under /, with *possibly* a seperate /usr or /tmp depending on your needs. In particular, a seperate /opt will be useless in the vast majority of cases.... unless you need to keep your / partition ultra-small for some strange reason.
Anway, /dev/sdb1 should of course be primary and the line for /home will look something like this:
Code: | /dev/sdb1 /home reiserfs defaults,noatime 0 2 |
...... I'm still scratching my head over why someone who feels the need to subdivide / into a gazillion pieces can't figure out something so simple (relatively speaking). Is the handbook really that misleading nowdays?
BTW, 'fdisk' proper is sort of a relic. Try cfdisk... _________________ "Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet? |
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Mon Feb 20, 2006 8:35 pm Post subject: |
|
|
in ultra-modesty
thanks for the reply! _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Mon Feb 20, 2006 9:52 pm Post subject: |
|
|
ok, am ignorant as i'm, i figured out the mounting part ( not in the handbook btw ) would look like this:
Code: | # mount /dev/sda3 /mnt/gentoo
# mkdir /mnt/gentoo/boot
# mount /dev/sda1 /mnt/gentoo/boot
# mkdir /mnt/gentoo/usr
# mount /dev/sda5 /mnt/gentoo/usr
# mkdir /mnt/gentoo/opt
# mount /dev/sda6 /mnt/gentoo/opt
# mkdir /mnt/gentoo/var
# mount /dev/sda7 /mnt/gentoo/var
# mkdir /mnt/gentoo/tmp
# mount /dev/sda8 /mnt/gentoo/tmp
# mkdir /mnt/gentoo/home
# mount /dev/sdb1 /mnt/gentoo/home |
is that right?
thanks again! _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
emery n00b
Joined: 08 Dec 2005 Posts: 7
|
Posted: Mon Feb 20, 2006 11:15 pm Post subject: |
|
|
that should be right
I would recomend putting some of the partitions on the secound hard drive since you have plenty of space. Reason being there is a performance boost if /var, /home, and the swap are on a second drive in different partions. This way binaries are read off of one disk, and data is writen on the secound drive, in /home or /var. I would definitly put /var on your second hard drive as that will speed up portage noticably. Having some stuff in different partitions is good because it reduces fragmentation, and thus read times are improved. There are security advantages too because some partions can only be written to by the root user. Something else to keep in mind is data on the outer edge of a disk reads faster than the inner edge, I think.
These are my mount points
/dev/hda1 /boot
/dev/hda2 /tmp
/dev/hda3 /
/dev/hdb1 swap space
/dev/hdb2 /var
/dev/hdb5 /home
/dev/hdb6 /home/[my home]/music
/dev/hdb4 /mnt/ntfs
I read this when I was trying to figure this stuff out http://www.gentoo.org/doc/en/articles/partition-planning-tips.xml |
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Tue Feb 21, 2006 9:42 am Post subject: |
|
|
one more question: do i have to mount the extended partition too?
thanks again! _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Tue Feb 21, 2006 5:53 pm Post subject: |
|
|
You can't mount the extended partition. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
|