LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Is this a good partition set-up? (https://www.linuxquestions.org/questions/linux-general-1/is-this-a-good-partition-set-up-726655/)

Smokey_Mtn Ron 05-19-2009 08:46 PM

Thanks a lot FragInHell!! This is the one I'll use. But all the ones that I've read about always has "/" as primary. Is making it logical not a problem

FragInHell 05-19-2009 10:18 PM

I guess like anything there are pro's and cons to this.
Generally /boot always needs to be a primary since this is where the first part if you like of the kernel gets loaded and there are no volume manager drivers yet at this stage.
Traditionally '/' was also a primary as this makes it easier for recover etc, but these days I dont think it matters any more. If you find yourself really in trouble then nearly ever rescue disk will be able to detect logical volumes.
It gets harder if you using special raid controllers etc etc but I don't think in your case you probably are. RAID controllers require additional kernel drivers and can make recovery alot harder.
Good luck, let us know how you get on.

Smokey_Mtn Ron 05-20-2009 04:53 PM

Thanks a lot to everyone!!!!! Hopefully my new hard drive will be here soon and I can get this done. I'll let you know how it turns out when I get it finished.

Quakeboy02 05-20-2009 06:06 PM

Quote:

Primary /boot 200mb ext2
primary / 15gb ext3
logical /home 40gb ext3
logical /usr 20gb ext3
logical /var 7gb ext3
logical /opt 7gb ext3
logical /tmp 2gb ext3
logical /swap 2gb swap (I have 2gb of RAM)
As at least one other poster has hinted at, this will work, up until it doesn't. It's really an awful lot of mess for a home system, and consumes a lot of empty hard drive space for no real return. It's your system, of course, but if it were me, I'd use 20GB for "/" (which implies /home, /usr, /var, /opt, and /tmp) and the rest of the drive for "/data". In my system, I actually use a complete 80GB drive for "/", and another larger drive for "/data". Almost all of my data is in "/data", so no matter how badly I bork "/home" or whatever, I've got almost all my data.

Good luck, and have fun, regardless of what you do.

lumak 05-20-2009 11:03 PM

Here is the output of my slackware 12.2 machine.

df -h
Code:

Filesystem            Size  Used Avail Use% Mounted on
/dev/root            973M  264M  710M  28% /
/dev/sda1              95M  55M  40M  59% /boot
/dev/sda6            487M  74M  413M  16% /var
/dev/sda7            4.8G  345M  4.5G  8% /tmp
/dev/sda8              39G  12G  27G  30% /usr
/dev/sda9            4.8G  926M  3.9G  19% /home
/dev/sda10            648G  111G  538G  18% /library

I have been using this machine as storage and internet. Openoffice is installed to /opt which is bind mounted to /usr/opt. /opt generally doesn't get much attention. Here are the directory sizes for somethings that go there some times.

# contains only openoffice 3.0 on my machine.
du -hs /opt
379M /opt

# some other things
# this works on slackware
sed -n -e '/UNCOMPRESSED/p' /var/adm/packages/kde*
# Then you can add up the output sizes to find KDE in total is
# 436 MB
# Gnome would probably take up just as much.

du -hs /usr/lib/firefox-3.0.10/
25M /usr/lib/firefox-3.0.10/

du -hs /usr/lib/thunderbird-2.0.0.21/
31M /usr/lib/thunderbird-2.0.0.21/

du -hs /usr/lib/seamonkey-1.1.16/
40M /usr/lib/seamonkey-1.1.16/

So even in a worst case scenario, you are looking at 3 gigs for /opt with plenty of room to spare. Again, check with your distro, but I feel 7gigs on /opt is an extreme waste when it won't even be 50% used.


If you want to run an http or ftp server, just make sure you have things set up so that stored files are on your /home partition unless you don't plan on exceeding the size of /var which you have set at 7gigs. My /tmp is 5 gigs because of potential use and I build packages in /tmp and sometimes forget to delete them until reboot or it fills up.


All times are GMT -5. The time now is 08:07 PM.