LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 07-21-2015, 01:31 AM   #1
aditya.mukundan
Member
 
Registered: Jul 2015
Location: India
Distribution: slackware
Posts: 42

Rep: Reputation: Disabled
Slackware partition help.


i am trying to install slackware 14.1
i want to know how much to allocate partitions..i'll installing lots of software and storing music files.
how much to allocate to /root /home etc .
also i want to know where will the user installed software be.does it consume space of /root or /home?
 
Old 07-21-2015, 04:23 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,373

Rep: Reputation: Disabled
Make just one partition for / (root). No need to make separate partitions for /root, /home etc. This way you won't loose space and don't have to worry about sharing the space between partitions.

If you use Slackware packages to install stuff (shipped in Slackware as third party software packaged the Slackware way) almost nothing will go into $HOME, but hidden files and partitions. Anyway if you have only one partition for everything that doesn't matter at all.

Of course there _can_ be a need for more partitions, e.g. using several disks, box used as a server, sharing /home between distributions, etc. But I assume that's not the case. Else please tell us more about your specific use case and needs.

PS /root will stay almost empty unless you perform regular (non administrative) tasks as root. Which is highly discouraged as unsafe and insecure.

Last edited by Didier Spaier; 07-21-2015 at 08:03 AM. Reason: PS added.
 
1 members found this post helpful.
Old 07-21-2015, 09:16 AM   #3
aditya.mukundan
Member
 
Registered: Jul 2015
Location: India
Distribution: slackware
Posts: 42

Original Poster
Rep: Reputation: Disabled
i plan to use for developing .... and i tend to download and compile and install(configure make and make install).and maybe storing songs .you know just a desktop no admin and things like that....
 
Old 07-21-2015, 09:33 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,373

Rep: Reputation: Disabled
Then just one partition (plus a swap partition if you need it) is enough.

Also, if you compile programs, I highly recommend that you make Slackware packages to avoid messing your system. To learn how to do that I suggest that you read this and all linked to documents plus this one and that one.
 
1 members found this post helpful.
Old 07-21-2015, 09:58 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,930
Blog Entries: 28

Rep: Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353Reputation: 6353
For years I used just / and /swap and everything worked just fine.

Recently, I've taken to having a separate /home. It's a nice luxury if, for some reason, you need to reinstall, but it's not a necessity by any means. Having separate /var, /usr, etc. partitions is a legacy from the early days of computers, when hard drives were much smaller (think in terms of MBs, not GBs) and there was a real danger that a drive might fill up (the log files on /var were the biggest culprits), so different directories were put on separate physical drives. With the huge drives available today, there is no compelling reason to do that.

If you do want a separate /home, I'd allow at least 25GB for /. For swap, my rule of thumb is this (assuming that you do not want to hibernate the machine--something I generally have no interest in doing): 3GB RAM or less, swap = RAM; 4GB RAM or more, swap = 1/2 RAM.

That is just a rule of thumb. On this here computer, I have 4 GB RAM and 4 GB swap (I know, violated my own rule; that's what rules are for), and I'm barely touching swap.

Last edited by frankbell; 07-21-2015 at 10:01 PM.
 
1 members found this post helpful.
Old 07-21-2015, 10:14 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Same here-
I created a journaling fs Ext 4 / partition and a 1 GB partition for swap.
Code:
/dev/sda1              63     4000184     2000061   82  Linux swap
/dev/sda2   *     4000185   976773167   486386491+  83  Linux
My HDD is a 500 GB Western Digital so I allocated 498 GB for the root/ and the rest to swap.
Slackware runs great for me with these 2 partitions.

Good Luck with your installation.
 
1 members found this post helpful.
Old 07-21-2015, 11:01 PM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121Reputation: 2121
Using a single Ext4 or JFS /(root) partition with a swap is the easiest method to use.

I personally use this because I use GPT partitioning:

Code:
/dev/sda1 - ext2  - 100MB - /boot
/dev/sda2 - ef02  - 2MB   - BIOS Boot Partition
/dev/sda3 - swap  - 8GB   - Swap Partition
/dev/sda4 - btrfs - (all) - /(root)
My setup required a patched Grub-2.02~beta2 (which is available from my repo), but it's fast and nice.
 
1 members found this post helpful.
Old 07-22-2015, 12:01 AM   #8
aditya.mukundan
Member
 
Registered: Jul 2015
Location: India
Distribution: slackware
Posts: 42

Original Poster
Rep: Reputation: Disabled
okay then i'll do it with just one partition,i have one more query if i free space from any other drive ex from f or e other than c will i be able to install on that partition ie if i shrink any other volume than c can i install linux in that space?
 
Old 07-23-2015, 12:06 AM   #9
Ranamon
Member
 
Registered: Feb 2013
Location: Land of Hopenchange
Distribution: Slackware
Posts: 45

Rep: Reputation: Disabled
Here's the fstab I use here:
Code:
/dev/sda2        swap             swap        defaults         0   0
/dev/sda5        /                ext4        defaults         1   1
# /dev/sda1        /boot            ext2        defaults         1   2
/dev/sda6        /home            ext4        defaults         1   2
# /dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 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
tmpfs            /dev/shm         tmpfs       defaults         0   0
I have a /boot part that's not auto-mounted, a /home part, and a / and /swap. Not letting the /boot part mount helps preventing ruining it. If I need to change something, I can always mount it temporarily and run lilo on it. A separate /home part is helpful when doing reinstalls/upgrading. That way, you won't lose anything. (Of course, backing it up is still a very good idea.)

I don't let CDs automount, as I prefer to do this manually. I don't need /mnt/floppy as I don't have a floppy drive anyway.
 
1 members found this post helpful.
Old 07-23-2015, 09:07 AM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,373

Rep: Reputation: Disabled
Quote:
Originally Posted by aditya.mukundan View Post
if i free space from any other drive ex from f or e other than c will i be able to install on that partition ie if i shrink any other volume than c can i install linux in that space?
Yes, as long as you reformat this partition and it's large enough.

How you can partition this space depends on your disk's layout. If a partition like E for instance is on a separate disk you will have to make it a separate partition on Linux (you could also use LVM but I am not acquainted with that, others could give you advice on how to do that).

Ideally if there is no gap between D: and E: for instance, you could merge them after backup, even also with C if you don't need it any more, as a big empty space of which you could make only one big partition (plus swap if need be). You can use the tools in the Slackware installer for that, or use gparted. Just take your time and carefully plan before proceeding.
 
Old 07-23-2015, 09:18 AM   #11
aditya.mukundan
Member
 
Registered: Jul 2015
Location: India
Distribution: slackware
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Yes, as long as you reformat this partition and it's large enough.

How you can partition this space depends on your disk's layout.
.
this is done during installation right?
 
Old 07-23-2015, 09:26 AM   #12
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,373

Rep: Reputation: Disabled
Quote:
Originally Posted by aditya.mukundan View Post
this is done during installation right?
You can do that during installation (before running setup), but it's easier to do that ahead of installation., using a GParted Live CD/USB. Even before that, from Windows use defrag. Also IIRC on recent Windows systems you can shrink and possibly merge partitions. Then you could do that before using GParted, but after having made your backup(s).

Last edited by Didier Spaier; 07-23-2015 at 09:30 AM.
 
Old 07-23-2015, 09:31 AM   #13
aditya.mukundan
Member
 
Registered: Jul 2015
Location: India
Distribution: slackware
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
You can do that during installation (before running setup), but it's easier to do that ahead of installation., using a GParted Live CD/USB. Even before that, from Windows use defrag. Also IIRC on recent Windows system you can shrink and possibly merge partitions. Then you could do that before using GParted, but after having made your backup(s).
after freeing space using shrink how about using cfdsik before using setup ?
 
Old 07-23-2015, 09:53 AM   #14
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,373

Rep: Reputation: Disabled
Quote:
Originally Posted by aditya.mukundan View Post
after freeing space using shrink how about using cfdsik before using setup ?
Why not? That's a good tool for what it can do.
 
Old 07-23-2015, 10:19 AM   #15
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665
Quote:
Originally Posted by aditya.mukundan View Post
after freeing space using shrink how about using cfdsik before using setup ?
You can use any partitioning tool you'd like if it supports linux partitions. There's some Windows utilities that will work too. I usually just use fdisk, but with GPT disks, I've had to branch out my tools.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 trouble: Gparted errors and Slackware says partition overlap Kallaste Linux - Newbie 9 06-28-2012 07:05 AM
Slackware 12.1, Cant Partition Old Slackware 12.0 System -{Jester}- Slackware - Installation 5 05-20-2008 07:50 PM
How do I install slackware on a partition made by partition magic in windows bling bling Slackware 4 06-28-2003 11:16 PM

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

All times are GMT -5. The time now is 02:37 AM.

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