Slackware - Installation This forum is for the discussion of installation issues with Slackware. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-21-2015, 01:31 AM
|
#1
|
Member
Registered: Jul 2015
Location: India
Distribution: slackware
Posts: 42
Rep: 
|
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?
|
|
|
07-21-2015, 04:23 AM
|
#2
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,373
Rep: 
|
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.
|
07-21-2015, 09:16 AM
|
#3
|
Member
Registered: Jul 2015
Location: India
Distribution: slackware
Posts: 42
Original Poster
Rep: 
|
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....
|
|
|
07-21-2015, 09:33 AM
|
#4
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,373
Rep: 
|
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.
|
07-21-2015, 09:58 PM
|
#5
|
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
|
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.
|
07-21-2015, 10:14 PM
|
#6
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
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.
|
07-21-2015, 11:01 PM
|
#7
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
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.
|
07-22-2015, 12:01 AM
|
#8
|
Member
Registered: Jul 2015
Location: India
Distribution: slackware
Posts: 42
Original Poster
Rep: 
|
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?
|
|
|
07-23-2015, 12:06 AM
|
#9
|
Member
Registered: Feb 2013
Location: Land of Hopenchange
Distribution: Slackware
Posts: 45
Rep: 
|
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.
|
07-23-2015, 09:07 AM
|
#10
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,373
Rep: 
|
Quote:
Originally Posted by aditya.mukundan
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.
|
|
|
07-23-2015, 09:18 AM
|
#11
|
Member
Registered: Jul 2015
Location: India
Distribution: slackware
Posts: 42
Original Poster
Rep: 
|
Quote:
Originally Posted by Didier Spaier
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?
|
|
|
07-23-2015, 09:26 AM
|
#12
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,373
Rep: 
|
Quote:
Originally Posted by aditya.mukundan
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.
|
|
|
07-23-2015, 09:31 AM
|
#13
|
Member
Registered: Jul 2015
Location: India
Distribution: slackware
Posts: 42
Original Poster
Rep: 
|
Quote:
Originally Posted by Didier Spaier
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 ?
|
|
|
07-23-2015, 09:53 AM
|
#14
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,373
Rep: 
|
Quote:
Originally Posted by aditya.mukundan
after freeing space using shrink how about using cfdsik before using setup ?
|
Why not? That's a good tool for what it can do.
|
|
|
07-23-2015, 10:19 AM
|
#15
|
LQ Guru
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792
|
Quote:
Originally Posted by aditya.mukundan
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.
|
|
|
All times are GMT -5. The time now is 02:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|