LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-05-2007, 10:04 PM   #1
corteplaneta
Member
 
Registered: Jul 2007
Distribution: archlinux, ubuntu, slackware
Posts: 58

Rep: Reputation: 15
Partition Advice


Hey I'm about to transition my main system (used for mainly browsing the web, mp3's, movies, possibly CS/Steam & other games), and I'm quite confused about how I should split up my partitions. After talking to some people in the ##slackware channel on freenode, I've determined that two partitions, / and /home should suffice for a personal desktop workstation--though the exact size I should make these partitions, I don't know. I've got a 120 gig hard drive, and haven't been able to get a consistent answer on how I should divide the drive if I plan to install a fair amount of software, while still storing a large amount of media. Any advice would be greatly appreciated, thanks.

-corte
 
Old 08-05-2007, 10:37 PM   #2
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I use that simple setup of 2 partitions for Slackware a lot. It isolates the programs from the data. I normally use 8-10GB for / and the rest of the drive for swap & /home.
 
Old 08-05-2007, 10:44 PM   #3
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
With / (root) and /home consider / (root) = size of operating system and programs while /home = size of user files. I am sure you mean to include a swap also.
If you use only a / (root) and swap you have no issues with wasted space due to guessing at partition sizes.
 
Old 08-06-2007, 12:44 AM   #4
pappy_mcfae
Member
 
Registered: Feb 2007
Location: Dallas
Distribution: Gentoo x86 & x86_64
Posts: 190

Rep: Reputation: 31
Post How you partition....

...your drives depends on what you are planning on doing with your system. If you are going to use Slackware specifically, I suggest making one small partition at the beginning (500 megs or so) labeled /boot. Then partition the main partition as label it as /. Don't forget to leave a gig or so for swap.

My experience is lilo has a problem dealing with really big partitions. I had a Barracuda 20 gig SCSI (alas, the circuit board died), and lilo couldn't work with it all as one partition. Considering the size of your drive, you definitely need to make a small partition before you use the rest. I believe the initial partition must no larger than eight gigs.

Since this particular machine I am using is set to dual boot, I have it set up for the first partition to be 1.5 gigs FAT 16. The second partition is 80 gigs NTFS. The third is 20 gigs Reiserfs, and the fourth is swap at 817 megs.

Partition schemes are variable depending on your needs. Considering the size of your drive, I do recommend you break things down so your machine has a chance of booting without lilo throwing fits.

Blessed be!
Pappy
 
Old 08-06-2007, 01:19 AM   #5
corteplaneta
Member
 
Registered: Jul 2007
Distribution: archlinux, ubuntu, slackware
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks for the quick replies fellas. Yeah I forgot to include a 1 gig swap by accident, but that's not very taxing. Really what I'm wondering, though, is how much space is needed to ensure my root partition doesn't fill up if I take the /, /home, and swap approach? Btw, as stated earlier, I'm going to use this system for relatively simple desktop use, (web browsing, music, movies, games).

Last edited by corteplaneta; 08-06-2007 at 01:22 AM.
 
Old 08-06-2007, 08:37 AM   #6
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
You can also read these good HOWTOs:
http://tldp.org/HOWTO/Partition/index.html <- Linux Partition
http://www.tldp.org/HOWTO/Large-Disk-HOWTO.html <- Large Disk
 
Old 08-06-2007, 08:54 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by pappy_mcfae
...your drives depends on what you are planning on doing with your system. If you are going to use Slackware specifically, I suggest making one small partition at the beginning (500 megs or so) labeled /boot. Then partition the main partition as label it as /. Don't forget to leave a gig or so for swap.

My experience is lilo has a problem dealing with really big partitions. I had a Barracuda 20 gig SCSI (alas, the circuit board died), and lilo couldn't work with it all as one partition. Considering the size of your drive, you definitely need to make a small partition before you use the rest. I believe the initial partition must no larger than eight gigs.

Since this particular machine I am using is set to dual boot, I have it set up for the first partition to be 1.5 gigs FAT 16. The second partition is 80 gigs NTFS. The third is 20 gigs Reiserfs, and the fourth is swap at 817 megs.

Partition schemes are variable depending on your needs. Considering the size of your drive, I do recommend you break things down so your machine has a chance of booting without lilo throwing fits.

Blessed be!
Pappy
Hi,

You are painting with an old brush. Your lilo experience doesn't mean that it is still that way. Your system BIOS would cause problems with older versions of lilo.

We did create a '/boot' at one time because of the 1024 cylinder limit but 500 MB is a tad big. Most kernel images are around 1.5 to 2 MB now. No longer fits on a floppy disk BTW. So unless you are compiling a lot and saving everything then the '/boot' would be around 50 MB with a lot of room to spare if you need to have a separate partition.

The initial boot partition limit will depend on the BIOS. Linux will see what the IPL provides. The 1024 cylinder limit is not a problem with modern lilo versions or linux.

The only fits that lilo will throw is if you don't configure properly.

Quit providing your experiences as fact.
 
Old 08-06-2007, 04:04 PM   #8
Enochs
Member
 
Registered: Jun 2007
Location: Georgia
Distribution: Fedora
Posts: 50

Rep: Reputation: 17
Question...

Ok, I don't know jack about Slackware but why is everyone concerned with making these partitions? Every time I have installed any version of Linux, I just created some free space on the drive and told my Linux to use the existing free space....Linux added it's own partitions to this space... I never had to make my own swap partition or any other type of partition. Is this unique to Slackware? I am on this forum trying to deciede if I should try Slackware and this entire string about partitions has me scratching my head.

Jay
 
Old 08-06-2007, 04:24 PM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
I usually only make / and swap partitions, it's worked out OK on all the distros I've tried.
 
Old 08-06-2007, 05:12 PM   #10
Enochs
Member
 
Registered: Jun 2007
Location: Georgia
Distribution: Fedora
Posts: 50

Rep: Reputation: 17
Ok Brian

But what if you didn't make any partions at all? Just shrink your existing partition (normaly Windows) and leave that space as unallocated "free space". Ubuntu, Fedora, and others will see this free space and go to town with no assistance from the user... They will add ALL of the required partitions... the boot (/), swap, and any other needed system partition are added by Linux.

Can Slackware not do this??

Why would you waste time doing it yourself? Is there an advantage?

Jay
 
Old 08-06-2007, 05:20 PM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by Enochs
Ok, I don't know jack about Slackware but why is everyone concerned with making these partitions? Every time I have installed any version of Linux, I just created some free space on the drive and told my Linux to use the existing free space....Linux added it's own partitions to this space... I never had to make my own swap partition or any other type of partition. Is this unique to Slackware? I am on this forum trying to deciede if I should try Slackware and this entire string about partitions has me scratching my head.

Jay
Hi,

Well, you happen to be using fedora or some other turkey, Oh I mean turnkey. You are hand held and at the mercy of the distro. We are talking about a Linux that will out perform any turn key OS.

You could reference 'Slackware-Links' which was compiled from 'Slackware LQ Suggestions Links!' and read a lot of information so to get informed.

Slackware allows you to setup the system as you desire, instead of via a formula.

As for the Slackware partitions, I like to setup my desktops/development systems in a secure but usable fashion;
Code:
willi:~# cat /etc/fstab
/dev/hda2        swap             swap        defaults         0   0
/dev/hda3        /                ext3        defaults         1   1
/dev/hda5        /home            ext3        defaults         1   2
/dev/hda6        /usr             ext3        defaults         1   2
/dev/hda7        /var             ext3        defaults         1   2
/dev/hda8        /tmp             ext3        defaults         1   2
/dev/sda2        /mnt/sda2        ext3        defaults         1   2
/dev/hda1        /mnt/winxp       ntfs        ro               1   0
/dev/hda9        /mnt/winfat32    vfat        defaults         1   0
/dev/sda1        /mnt/winxp_sda1  ntfs        ro               1   0
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0

willi:~# fdisk -l

Disk /dev/hda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2613    20988891    7  HPFS/NTFS
/dev/hda2            2614        2737      996030   82  Linux swap
/dev/hda3            2738        2987     2008125   83  Linux
/dev/hda4            2988        7473    36033795    5  Extended
/dev/hda5            2988        4233    10008463+  83  Linux
/dev/hda6            4234        4981     6008278+  83  Linux
/dev/hda7            4982        5231     2008093+  83  Linux
/dev/hda8            5232        6228     8008371   83  Linux
/dev/hda9            6229        7473    10000431    b  W95 FAT32

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4981    40009851    7  HPFS/NTFS
/dev/sda2            4982        9962    40009882+  83  Linux
My servers are;
Code:
This server is new and still in build/generation cycle.

amos2:~# cat /etc/fstab
/dev/hda2        swap             swap        defaults         0   0
/dev/hda3        /                ext3        defaults         1   1
/dev/hda5        /home            ext3        defaults         1   2
/dev/hda6        /usr             ext3        defaults         1   2
/dev/hda7        /var             ext3        defaults         1   2
/dev/hda8        /tmp             ext3        defaults         1   2
/dev/hda9        /arc1            ext3        defaults         1   2
/dev/hda10       /arc2            ext3        defaults         1   2
/dev/hda11       /arc3            ext3        defaults         1   2
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc 

amos2:~# fdisk -l /dev/hda

Disk /dev/hda: 122.9 GB, 122942324736 bytes
16 heads, 63 sectors/track, 238216 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       19842    10000336+  83  Linux
/dev/hda2           19843       23811     2000376   82  Linux swap
/dev/hda3           23812       25796     1000440   83  Linux
/dev/hda4           25797      238216   107059680    5  Extended
/dev/hda5           25797       29765     2000344+  83  Linux
/dev/hda6           29766       41671     6000592+  83  Linux
/dev/hda7           41672       47671     3023968+  83  Linux
/dev/hda8           47672       55609     4000720+  83  Linux
/dev/hda9           55610       75451    10000336+  83  Linux
/dev/hda10          75452       95293    10000336+  83  Linux
/dev/hda11          95294      115135    10000336+  83  Linux
These are general setups for my systems.
 
Old 08-06-2007, 06:28 PM   #12
Enochs
Member
 
Registered: Jun 2007
Location: Georgia
Distribution: Fedora
Posts: 50

Rep: Reputation: 17
Yes....

I see. But you can also do that with other Linux distro's if you select those options during setup... I'm just not understanding why I would want to do that. If I give my Linux 25GB to live in and it already knows how large it likes the partitions to be then great. Your system does not get any faster if you enlarge the swap drive (if it does then you either made it way too small in the first place or your computer needs more RAM) nor does it become more secure if you alter your boot drive.... if for any reason you NEED to change the size of a partition later then you can do it at that time but I can't imagine what that reason may be. I like customizing things as much as the next guy (you should see my emacs) but not without a reason.

Please be patient with me...I am not a Linux expert. I just noticed that there are a lot of people always on the Slackware board and I was contemplating giving it a try. I just tried Ubuntu but didn't like it as much as Knoppix or Fedora.

Thanks for the links. Your link took me to a .pdf book (Slackware Basics) that stated you must make at least one Linux partition before installation (any size). It recommends a second swap partition of either 256 or 512MB (Pretty standard stuff). There is NO advantage behind doing this yourself vs having a distro that does it for you. That is the answer I was looking for..... Thanks,


MSG E

Last edited by Enochs; 08-06-2007 at 07:01 PM.
 
Old 08-06-2007, 08:27 PM   #13
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by Enochs
nor does it become more secure if you alter your boot drive
If you are running a server (or even a desktop), creating /var and /tmp partitions can be a good idea to INCREASE SECURITY [or at least reliability], contrary to what you just said (I'm definitely not a Linux expert at all, so I may be wrong, but my opinion on the matter is as follows.)

If you somehow get hacked or get a virus (they do exist for Linux, although they may be rare), there is a possibility that partitions will start filling up. For example, if you're running an e-mail server, if you are getting a ton of spam that you haven't yet blocked, it all probably goes in your /var directory. If this directory was on the root partition, your system would crash when it fills up because no more space is available for system tasks. However, if /var is on a separate partition, the partition will get full, but the system will not crash because the root partition is not being filled. Therefore your web site (if you are running one) would still be accessible and only e-mail would be affected.

Again, I'm definitely not an expert [at all], so I may be totally wrong here. Therefore, take what I said with a grain of salt.
 
Old 08-07-2007, 03:33 AM   #14
pappy_mcfae
Member
 
Registered: Feb 2007
Location: Dallas
Distribution: Gentoo x86 & x86_64
Posts: 190

Rep: Reputation: 31
Unhappy

Quote:
Originally Posted by onebuck
Hi,

You are painting with an old brush. Your lilo experience doesn't mean that it is still that way. Your system BIOS would cause problems with older versions of lilo.
Excuse me? I had a 20 gig Barracuda drive...less than five years old at the time. I installed Slack-11 in one big partition, of course, leaving about a gig for swap. The version of lilo that comes with Slack-11 could not see the drive! It come up lil99 99 99 99 99 99...ad infinitum. When I partitioned as I said, guess what, the drive booted and worked flawlessly until it died a sudden death due to a bad circuit board.

This is not theory I am quoting, my friend, this is my experience; this is how I solved an actual problem with an actual machine. If it's not your updated and finely nuanced experience, that doesn't make it wrong.

What reason on earth would I lie or otherwise misrepresent my experience? And what makes you think I am the only one to have that experience? If you are going to say I am "painting with an old brush," offer me a new one! And, if the old brush works, why not use it? Until my seventeen year old car dies, you can pretty much guess I am going to keep driving it. Old isn't always bad!

Quote:
Originally Posted by onebuck
We did create a '/boot' at one time because of the 1024 cylinder limit but 500 MB is a tad big. Most kernel images are around 1.5 to 2 MB now. No longer fits on a floppy disk BTW. So unless you are compiling a lot and saving everything then the '/boot' would be around 50 MB with a lot of room to spare if you need to have a separate partition.
There is no need for the nasty, rude, and condescending tone you are taking here. I know all about the 500 meg limit, and the two gig, and the 8 gig, and all the various BIOS changes that have occurred since I owned my first 286. That knowledge, and five bucks gets a latte at Starbucks...or at least it used to.

Quote:
Originally Posted by onebuck
The initial boot partition limit will depend on the BIOS. Linux will see what the IPL provides. The 1024 cylinder limit is not a problem with modern lilo versions or linux.

The only fits that lilo will throw is if you don't configure properly.

Quit providing your experiences as fact.
First of all, who are you to come here and talk to me like I am either a liar or an idiot? Do you run this site?

Secondly, I was sharing my EXPERIENCE in solving a PROBLEM I personally had! The advise I wrote down came from curing a problem with a Slackware 11, not Slackware 0.9. I wrote it down because I always assume if I have a problem with certain things, so will other people. Perhaps that's an incorrect assumption. If so, you can take anything I say with a grain of salt. If not, then who are you to say I am wrong?

Blessed be!
Pappy

Last edited by pappy_mcfae; 08-17-2007 at 02:56 AM.
 
Old 08-07-2007, 07:17 AM   #15
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

You do have a problem!

I'm not even going to respond to your type of reply. It seems when someone provides you with valid information you feel challenged.

Yours nor my experiences are not fact! Experimental and theory can be put to test but fact is just that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition advice requested bamatmac Linux - Newbie 1 12-30-2005 01:28 PM
Partition advice Chris594 Linux - Newbie 6 10-13-2005 04:49 PM
Partition advice riluve Linux - Newbie 8 01-15-2005 05:36 PM
Partition Advice? drbob001 Linux - General 4 12-19-2004 03:58 PM
Partition Advice clearestchannel Linux - Newbie 5 11-25-2004 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration