Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Get help on partitioning here [Part 2]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... , 28, 29, 30  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
xiaweitang
Apprentice
Apprentice


Joined: 26 Feb 2010
Posts: 152

PostPosted: Sat Mar 06, 2010 5:03 am    Post subject: Reply with quote

Thanks to all. This helps a lot.
Back to top
View user's profile Send private message
Zeerak
Apprentice
Apprentice


Joined: 27 Nov 2006
Posts: 239
Location: Aalborg, Denmark

PostPosted: Tue Mar 30, 2010 12:07 am    Post subject: Reply with quote

Hey, I'm about to reinstall my system and I just thought I'd see how my partitioning scheme is considered (I shamefully copied from another a few pages back ;) )

My main concerns are /usr, /var and /var/tmp. All of

Code:

/boot                           ext2                    100  M  (0.09GB)
/                               JFS                     4096 M  (4.00GB)
/usr                            JFS                     8192 M  (8.00GB)
/var/portage                    reiserfs                3072 M  (3.00GB)
/var/portage/distfiles          ext2                    6144 M  (6.00GB)
/var/src                        reiserfs                2048 M  (2.00GB)
/var                            reiserfs                1024 M  (1.00GB)
/var/tmp                        reiserfs                10240M  (10.00GB)
<none>                          swap                    3072 M  (3.00GB)
/home                           JFS                     Remaining Space
<free space>                    none                    20480M  (20.00GB)


And here are relevant parts of make.conf to explain /var/portage* rather than /usr/portage*

Code:

DISTDIR="/var/portage/distfiles"
PORTDIR="/var/portage/"
PKGDIR="/var/portage/packages"
RPMDIR="/var/portage/rpm"
PORTAGE_TMPDIR="/var/tmp"
EMERGE_LOG_DIR="/var/log/portage"
PORT_LOGDIR="/var/log/portage"


Let me know what you think :-)
_________________
Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Tue Mar 30, 2010 7:09 am    Post subject: Reply with quote

@Zeerak : Being said that everybody is right with his own partition scheeme, I am nevertheless surprised by coherency questions :
1/ You explode var in no less than 5 partitions but you do not make a dedicated one for /tmp ?
2/ You dedicate a specific partition for /usr but none for /opt which is of similar nature ?
Back to top
View user's profile Send private message
Zeerak
Apprentice
Apprentice


Joined: 27 Nov 2006
Posts: 239
Location: Aalborg, Denmark

PostPosted: Tue Mar 30, 2010 11:42 am    Post subject: Reply with quote

@aCOSwt:

See I knew there was something off about it :-)

Based on my current opt I'd say 7GB should do it. And 900M for /tmp should be well above the necessary
_________________
Einstein was a great man, but he got one thing wrong with his theory of relativity. E= MC hammer. As far as logic goes, this is flawed, but as a show of wit, you can't touch this
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 524

PostPosted: Mon May 10, 2010 1:07 am    Post subject: Reply with quote

Installing Gentoo on a new computer in the next few days.

Plan on putting / (including /etc) on reiserfs, and everything else as LVM partitions (ext4). That'd be /home, /var, /opt, /usr, and /tmp.

Any reasons ext4 is bad or unsafe?

How big should / be? I currently have it at 2 GB and only 700 MB is used.

How big should /var be? Currently at 10 GB, using 8 GB. I've maxed this out in the past due to things like ccache, so am thinking of 15 GB on the new computer.

And /tmp? Currently at 5 GB, which may be overkill.

I guess getting /var, and /tmp right is not critical, as it'll be under LVM and can be changed later.

Oh, and swap size? I assume not above 1 GB?

Thanks.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Tue May 11, 2010 11:42 am    Post subject: Reply with quote

Beetle B. wrote:
Installing Gentoo on a new computer in the next few days.

Plan on putting / (including /etc) on reiserfs, and everything else as LVM partitions (ext4). That'd be /home, /var, /opt, /usr, and /tmp.

Any reasons ext4 is bad or unsafe?

How big should / be? I currently have it at 2 GB and only 700 MB is used.

How big should /var be? Currently at 10 GB, using 8 GB. I've maxed this out in the past due to things like ccache, so am thinking of 15 GB on the new computer.

And /tmp? Currently at 5 GB, which may be overkill.

I guess getting /var, and /tmp right is not critical, as it'll be under LVM and can be changed later.

Oh, and swap size? I assume not above 1 GB?

Thanks.


I'd just use ext4 for everything - seems simpler. And I'm not sure why you are separating /usr from /, and why you're not adding a separate /home,
which would be the first partition I'd split off.

I use 16G for /var, and use 20% or so, but with 8G already in use YM must V. I don't see much use of /tmp, since I've got portage using
directories under /var. Swap size can be anything you want unless you want hibernation, when it needs 1.5x or 2x main memory size.

Will
Back to top
View user's profile Send private message
Beetle B.
Guru
Guru


Joined: 01 Mar 2003
Posts: 524

PostPosted: Tue May 11, 2010 3:01 pm    Post subject: Reply with quote

Quote:
And I'm not sure why you are separating /usr from /


Because I want /usr to be on LVM, but not /.

When things go wrong, it's good to have stuff like /etc not on LVM.

And of course /home will be its own (logical LVM) partition. Didn't mention it as I wasn't asking about its size.

Quote:
Swap size can be anything you want unless you want hibernation, when it needs 1.5x or 2x main memory size.


I don't need hibernation. In the old days, there used to be a rule for determining swap size, but no one follows it any more. I'm just wondering if over 1GB is needed. In all my last 7 years, I don't think I used swap even once. :wink: In fact, for many years it was disabled, and I didn't even know it.
_________________
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Back to top
View user's profile Send private message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 446

PostPosted: Fri Jul 02, 2010 4:11 pm    Post subject: Reply with quote

I have a new laptop coming with windows installed on it. I plan on keeping that as is, and keeping anything large (media files mostly) where both OS's can see them.

My thoughts about a partition scheme was as follows: I have 4GB ram and 250GB hard drive.
  1. windows 40G
  2. /boot 128M ext2
  3. / 25G ext3
  4. (extended)
  5. /var 15G reiserfs
  6. swap 4G
  7. 20G /home ext3
  8. Remainder /mnt/data FAT32

I'll put /usr/portage, and /tmp onto the /var partition.
Is there anything seriously ill-advised about this?
Back to top
View user's profile Send private message
Catanduva
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2008
Posts: 77
Location: Brazil

PostPosted: Wed Feb 16, 2011 12:09 pm    Post subject: Reply with quote

I'm planning on reinstalling gentoo and windows on my pc because my partitions are a mess and i have a lot of space that i don't need in some partitions. I only use windows to record, play and practice guitar (i don't have an amp), so i don't need a lot of space for it.
My current situation:
Code:

/dev/sda1 - / - Ext3 - 7.13Gb/15.10Gb
/dev/sda2 - /home - Ext3 - 154Gb/219Gb
/dev/sda3 - swap - 1Gb
/dev/sda4 - windows - ntfs - 59Gb/62Gb


They are all primary partitions. I never used a partition for /boot, but i see that a lot of folks here use it. I didn't understand exactly why it's better, can anyone explain?
My config is Amd 64 X2 5200+
1gb DDR2
300Gb Sata2 HD

If it's good to create a separated /boot partition, how will be a good partition scheme for me? I want to use partitions for boot, home, /, swap and windows. Wich ones i put on extended and primary?
And for a normal desktop, wich filesystems are being used now? Ext3 or Ext4 is better and more stable?
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Mon Mar 14, 2011 1:35 pm    Post subject: Reply with quote

Finally, I've got my new dell n3010 with i5, 4gb ram and 320gb harddisk. Now I'm about to create partitions. In my old system, all I did was creating /boot, /, and swap partitions. And it still works great after 4 years with reiserfs, but probably tere is a bit slowdown regards to fragmentation. Now I want more advanced layout for partitions. Here is my partition scheme. What do you think:
Code:

/boot         150mb   ext2
swap         6gb      swap
/         8gb      ext4,JFS
/home      60gb      ext4,JFS
/usr         60gb      ext4,JFS
/opt         4gb      ext4,JFS
/tmp         3gb      ext2
/var         16gb      ext4,JFS
/var/portage   4gb      ext4,JFS
/var/tmp      10gb      ext2
/var/tmp/portage   10gb      ext2
/usr/portage/distfiles   20      ext4,JFS
/var/src         4gb      ext4,JFS
and
/haiku   10gb      BeFS      (For haiku os)
win7      100gb   ntfs (for gaming and surfing incompatible sites with linux)


And the make.conf part:
Code:

DISTDIR="/media/xs-2/usr/portage/distfiles"
PORTDIR="/var/portage/"
PORT_LOGDIR="/var/log/portage"
PKGDIR="/var/portage/packages"

1 - I want to use /var/src instead of /usr/src for kernel sources. if it is possible. I could not find something related to it like this: SRCDIR="/var/src/" for make.conf file.
2 - The size of / is 8gb. Since /usr, /var, /home have their own partitions, do you think 8gb is ok or too much?
3 - Did I make things unnecessarily complicated with to many partitions? If so what would you change?
4 - Using of ext4 or JFS?
5 - I am bothered by the /var/** partitions. Way to complicated?
6 - Since my old machine was core2 and the new one i5, I think just copying old harddisk to new one will work. Does it worth to dismantle the laptops meaning the new hard disk to old one and copy? Or is there a better way to migrate?
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
avkhatri
n00b
n00b


Joined: 29 Sep 2010
Posts: 18

PostPosted: Tue Mar 29, 2011 10:10 pm    Post subject: Reply with quote

I've never dual booted with Gentoo before, and I just wanted to make sure I was on the right track.

My main Hard Drive is 1Tb with Windows loaded on it. Using the Windows disk manager I unallocated about 150 gigs of free space for Linux. When I get to the "preparing disks" section of the Gentoo install guide, do I just select the unallocated space via fdisk and start making my partitions in there as I normally would if I was using the whole HD? Also, when it comes time to setting up Grub is there anything extra that needs to be done other than adding an entry for my Windows partition and pointing it to the right area?
Back to top
View user's profile Send private message
scott1093
n00b
n00b


Joined: 04 Aug 2011
Posts: 3

PostPosted: Fri Aug 26, 2011 6:41 pm    Post subject: Extended v. Primary Reply with quote

Unfortunately I do not wish to read/Ctrl+F through 29 pages of help so I'm replying.
I'm planning to install Gentoo (which I've done a few times but always on its own) beside Windows 7 on my new laptop. The default partitioning scheme in the gentoo handbook has been and still is sufficient for me but I've got a slight problem. My Windows installation has 2 primary partitions already and for various reasons needs to stay that way. (maximum of 4 primary partitions)

What I want to know is which of the 3 default partitions for Gentoo ( / and /boot and swap ) can safely be set as an extended partition? I'm thinking of making /boot the extended partition with /boot and swap as the last two primary partitions. Quick help would be great. I need to get this install done before I head to college in a week. :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Fri Aug 26, 2011 8:02 pm    Post subject: Reply with quote

scott1093,

Lets sort out some terminolgy, or you will have problems with fdisk when you come to install.

There are three sorts of partitions an MSDOS partition table knows about
1. Primary
You may have at most four primary partitions. The descriptors for this partitions reside in the partition table in the Master Boot Record.
2. Extended
At most one of your primary partitions may be of type extended. An extended partition doesn't really exist and can't be used in the way the other two types can. It serves to reserve disk space so it can't be used by other primary partitions.
3. Logical
Logical partitions are created inside the space reserved by an extended partition.

Linux doesn't care if its partitions are primary or logical. You do not need a /boot partition provided your BIOS can read your entire HDD.
The small /boot partition at the start of the disc is required from time to time in the race between BIOS read ability and hard drive sizes.

Shrink your Windows install if you need to. Donate all the free space to an extended partition, then make logical partitions for your Gentoo install
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Eddi3x3
Guru
Guru


Joined: 25 May 2011
Posts: 328

PostPosted: Wed Sep 14, 2011 3:13 pm    Post subject: Reply with quote

Hey guys, I was hoping that I could get an opinion from you guys about how I should install gentoo in addition to my already running crunchbang linux based off debian
This is my current table
Total 120 GB

/dev/sda1 ext4 / 74GB boot
/dev/sda2 extended 2.79GB
/dev/sda5 linux-swap 2.79GB
unallocated 71.75GB

so Im using Gparted to sort out the unallocated space and grub2 is installed on crunchbang aka sda1;
any suggestions?
Back to top
View user's profile Send private message
nathaniel73
n00b
n00b


Joined: 04 Oct 2011
Posts: 2
Location: Perth, WA, Australia

PostPosted: Tue Oct 04, 2011 1:02 pm    Post subject: Reply with quote

I'm about to install Gentoo on my laptop for the first time and I currently have Linux Mint installed as the primary OS using
Code:

/boot 256mg
/     20G
swap 4G


The drive is 500GB so space isn't a concern.

With Gentoo I'd like to use a /boot, /, /home, /torrents (200G mounted ~/torrents), swap and possibly another for Portage.
Questions. Should I delete the primary swap partition prior to creating the Gentoo parts? How do I create the LVM to house these partitions? As that's something I haven't done before. Can I/Should I share the /boot partition from Mint with Gentoo? What size should / & /portage(mount point?) be?
_________________
Nathaniel
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Tue Oct 04, 2011 5:28 pm    Post subject: Reply with quote

nathaniel73,

For the sake of your sanity your should share /boot with all your linux distros. You can have separate /boot partitions but you may only have a single bootloader started by the BIOS and MBR. If you intend to keep Mint, you may as well use its bootloader and add Gentoo to it.

Leave your swap where it is and share it with all your distros *unless* you want to suspend/resume various distros at various times. That a dangerous thing to want to do as you must not access a mounted filesystem somehow else while its involved in a suspend.

Donate your fourth and last primary partition to a partition that owns the rest of the disk
Put that partition into a LVM physical volume group.
Make lvm volumes in your physical volume and put filesystems on the logical volumes.

As you will have root on LVM, you will need an initrd to boot into Gentoo, since you need to get lvm started before you can mount root. The initrd is fairly simple and need not be updated every kernel update as it does not need to contain kernel modules. This Wiki article covers root on raid and lvm with DM-Crypt and does a good job of explaining the initrd. The three parts are quite separate, so its straightforwad to leave out raid and DM-Crypt.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
nathaniel73
n00b
n00b


Joined: 04 Oct 2011
Posts: 2
Location: Perth, WA, Australia

PostPosted: Wed Oct 05, 2011 2:28 am    Post subject: Reply with quote

Thanks NeddySeagoon for your detailed reply. I've found the Gentoo LVM2 install guide and am working my way through it and the wiki article now.
_________________
Nathaniel
Back to top
View user's profile Send private message
psyhprog
n00b
n00b


Joined: 28 Nov 2011
Posts: 13

PostPosted: Mon Jan 02, 2012 6:38 am    Post subject: Reply with quote

I have been using Linux (very basic and sparse) for some time now, and recently decided that I get serious. Since I didn't have any Linux distro installed, and also wanted the installation to be hands-on so I could peek inside the hood, I tried to install gentoo using the guide. I had some issues, but I'm only going to post the one related to partitioning:

Here's my current scheme:
  • I - 250 GB
  • 100 MB- System Reserved
  • 232,79 GB - Windows (also boot partition etc.)
  • II - 1 TB
  • 341,80 GB - NTFS - Storage
  • 555,53 GB - NTFS - Storage
  • Free space 34,18 GB where Gentoo goes


How should I set up Linux? I was thinking of a swap partition and a boot one. Is this okay?

Also, can someone tell me how should I set up grub? At that point, I was completely lost. How to make the entry for Windows, how to specifiy partitions, after installing grub I gave up at the first attempt, and how to manually reinstall the win bootloader.

Thanks for the help,
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Mon Jan 02, 2012 12:45 pm    Post subject: Reply with quote

psyhprog,

You don't provide enough detail for us to describe a grub.conf for you.

Boot a linux CD and post the output of
Code:
fdisk -l
annotated with what each partition is used for.

You can install Gentoo, using one or more partitions on your hard drive.
You must have a root (/) partition. /boot may either be a partition or a directory on your hard drive. It only matters for systems where the BIOS cannot read the entire HDD. The small /boot at the start of the drive keeps all the files needed to boot in an area the BIOS can read.
<swap> can be a file or a partition. A swap partition is faster than a swap file but both work.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
psyhprog
n00b
n00b


Joined: 28 Nov 2011
Posts: 13

PostPosted: Mon Jan 02, 2012 1:10 pm    Post subject: Reply with quote

Ok, thanks for the reply. I'm going to attempt tomorrow to install it again tomorrow, and when I do that I'm going to post the complete information you need. I think I may also require help with the FSTAB file, but then again that its also tomorrow.
Back to top
View user's profile Send private message
psyhprog
n00b
n00b


Joined: 28 Nov 2011
Posts: 13

PostPosted: Mon Jan 02, 2012 5:57 pm    Post subject: Reply with quote

Is this right so far?

http://imageshack.us/photo/my-images/853/dsc000471v.jpg/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Mon Jan 02, 2012 6:20 pm    Post subject: Reply with quote

psyhprog,

That fine. 5G for swap is huge but if you plan to use hibernation, swap needs to be at least the same size as your RAM.
You have no separate /boot partition but thats fine too.

When you come to setting /etc/fstab you must not have a line for /boot.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
daglamier22
n00b
n00b


Joined: 30 Jan 2012
Posts: 3

PostPosted: Mon Jan 30, 2012 9:31 pm    Post subject: Reply with quote

I am about to do a re-install of my entire system (had originally just chewed out a little space on my HDD to play with gentoo and it turns out i have enjoyed it quite a bit and want to continue learning through it). This time around however I want to do a complete re-install to include my SSD and just a dual boot with win7 (previously it had win 7, ubuntu, and gentoo).

I'm having alot of trouble determining how I should setup my partitions. I have a 90GB SSD and a 1TB HDD. Was considering splitting that SSD between the main OS for win7 and gentoo, and mostly use the HDD for personal data (movies, music, games, and i do some c++ programming as well)

Any good guidelines for this, or possibly personal experiences with a similar setup?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Mon Jan 30, 2012 11:36 pm    Post subject: Reply with quote

daglamier22,

You should use al least 4 partitions.
/boot, /home, / and <swap>
/boot can be anyware the BIOS can read. Its ony used once at boot time, so need not be on the SSD

How much RAM do you have and do you need hibernation ?
That setermines the size of <swap> and if you should put /var/tmp/portage and /tmp into RAM.
If you keep /var/tmp/portage and /tmp in RAM, everything else can be on the SSD.
Its /var/tmp/portage that is hit hard with writes during building, which may shortenl the life of your SSD.

A separate /home in a primary partition make it easy to preserve user data if you every need to reinstall.

If you feel the need to move space around from one partition to another, consider lvm2.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
daglamier22
n00b
n00b


Joined: 30 Jan 2012
Posts: 3

PostPosted: Mon Jan 30, 2012 11:53 pm    Post subject: Reply with quote

Hey, thanks for the quick response.

I have 8 GB RAM. I have yet to ever come close to pushing that entire 8 GB to run into swap, nor do I use hibernation, so i'm assuming swap size shouldn't be too big (although on my previous builds i had gone ahead and used 8GB swap, not sure this is necessary).

I'm guessing /home could be a good size partition on the 1TB HDD(although i need a big chunk of that HDD for dual boot type stuff, like movies and music and such)

Is there a benefit of having /boot on the ssd, does it speed up boot time or anything of the sort?

Look forward to your reply
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3 ... , 28, 29, 30  Next
Page 29 of 30

 
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