View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


Search this Thread
Old 03-11-2014, 07:32 AM   #16
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,076
Blog Entries: 52

Rep: Reputation: Disabled

I've only ever had / and swap. Seems to have worked out OK so far. Touch wood, fingers crossed, etc, etc...
Not very interesting /etc/fstab:
bash-4.2$ cat /etc/fstab
/dev/sda2        swap             swap        defaults         0   0
/dev/sda1        /                ext4        defaults         1   1
#/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

Last edited by brianL; 03-11-2014 at 08:24 AM. Reason: missed an e
Old 03-11-2014, 07:44 AM   #17
Registered: Dec 2007
Posts: 93

Rep: Reputation: 14
Have a shared /home but create a different user account for each distro. So your login name might be something like:


And then use the user home folder for settings only. Create another folder (or even partition) for stuff which would be common to each account, such as documents, pictures, music and videos.
Old 03-11-2014, 07:54 AM   #18
Registered: Apr 2012
Distribution: Debian, Ubuntu, Slackware
Posts: 130

Rep: Reputation: 52
Multiple partitions for /home, /usr, /etc for multiple distros is not a big problem nowadays if you do your distro tryouts in VMs/containers. I use either Docker or libvirt/KVM for this.

The only directory that's somewhat still desirable to segragate though would be /tmp and /var (the former because you tmpfs it anyway, and the latter if you're putting databases onto "optimized" filesystem types.)
Old 03-11-2014, 08:16 AM   #19
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,106

Rep: Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805
As I understand it, y'all refers to up to three individuals; all y'all refers to more than three (up to 100,000 in a football stadium or an auditorium full of country music fans for example). Depends on where you're at, too (varies somewhat by the section of the country).

OK, partitioning.

Easy way, one for root, one for swap and one for /home and you're good to go.

Harder way, one for root, one for swap, one for /home and any number to isolate stuff you don't want to loose on a fresh install; e.g., /usr/local, /opt, /var/lib/mysql, /var/lib/pgsql, /var/lib/virtual and so on (I use /var/lib just because Slackware installs MySQL/MariaDB in that tree and I'm good with that; I mount a partition or second drive to those points).

System software (at least Slackware system software) installs in root -- only root -- /bin, /boot, /dev, /etc, /lib, ... /sys, /tmp, /usr and so on. When I get a new release of Slackware, I do a clean install then add back any additional software that happens to get installed in the root tree (like SlackBuilds that I haven't edited to install in /usr/local which is where I really prefer they be).

It's not a big deal to do that. If you remember, during installation when you're adding partitions you have the option of formatting the partition or not. I format the root partition but I don't format any of the others (I have a lot of stuff on other partitions that I don't want to back up and reinstall if I can help it; big-ass data bases, big geographic data files, big a lot-of-stuff). I have four severs all configured identically (even though a couple of data base server have multiple drives, the mount points are the same on all servers).

I don't do the multiple booting you mention -- if I'm going to fiddle with different distributions, I fiddle with them in VirtualBox and they "live" in /var/lib/virtual (in one case a separate drive, the data base servers don't have VirtualBox installed, but the mount tree is the same). This avoids the complications of booting; VirtualBox (at least on 64-bit systems) is fast and, well, you don't screw anything up with multiple boot problems.

I also keep them "pure;" my data base servers are two Dell Dimension 8400's (oldies but goodies so far) which are 32-bit boxes and the dual-side DVD from Slackware makes that a breeze to do the above-described "clean install." And, that clean install takes about 20 minutes start-to-finish, up and running (I do keep a copy of /etc to get up to speed quickly using standard configuration files; e.g., /etc/passwd, /etc/shadow, and others).

This has worked for me through Slackware releases from, oh, heck, 6? I duuno, long time. And VirtualBox makes it easy to have a Windows virtual guest that I don't have to reinstall (I actually don't do "distro-hopping" because I'm perfectly happy with Slackware and have been for a long, long time; no reason to switch or fiddle around that I can see).

Hope this helps some.

Last edited by tronayne; 03-11-2014 at 08:31 AM.
Old 03-11-2014, 08:20 AM   #20
Registered: Jun 2003
Location: Virginia
Distribution: Slackware 14 is Main OpSys on Main PC, 2ndary are OpenSuSe 13 and SolydK
Posts: 724

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Interesting thread. I used to use separate /swap, /boot, /, /home, and /usr but over time began to assess that for a SOHO system the problems outweighed any advantage at least for me. Now I just use /swap and /. and link major storage directories (ie: /home/foo/Downloads) in my various and changing distros to my main, and some, vice versa. I have read that some people prefer to isolate "/etc" on servers for backups though with rsync incremental I really can't see a major advantage.
Old 03-11-2014, 10:36 AM   #21
Registered: Apr 2004
Location: Hell, Arizona
Distribution: Slackware 14.1
Posts: 359

Rep: Reputation: 32
Ya'll have given some good ideas (I actually grew up in Europe but hung around some kids from 'Bama).

I currently have:

/dev/sda1 on / type ext4 <-- this includes everything except:
/dev/sda5 on /opt type ext4 <-- I keep most additional programs here
/dev/sda6 on /temp type ext4 <-- loads and loads of junk
/dev/sdb1 on /home type ext3 <-- why is this ext3? I thought it was ext4...

I do it this way so I can wipe /dev/sda1 and reinstall if I want, without effecting anything in /home and /opt. Actually, as you can see /home is a different hard drive. I used to keep /usr/local on a different partition, and I may do that again because of all the stuff I have there.

I do not keep /boot on a separate partition. I can't tell you how many Ubuntu boxes I've ran across that won't install updates because there is no room left on /boot. After you get a half dozen or more kernel versions the /boot directory fills up and you have to manually remove old kernels.

The whole idea behind using different partitions for me is so that I can wipe the root partition without my data files or programs being effected. I can install a clean install of Linux and all of my settings, email, documents, etc., are there waiting for me because /home was never touched.
Old 03-17-2014, 01:31 AM   #22
Registered: Aug 2010
Location: Here
Distribution: Slackware 14.0
Posts: 144

Rep: Reputation: Disabled
Originally Posted by Richard Cranium View Post
darkstar:~: cat /etc/fstab
/dev/mdgroup/swaplv     swap                swap        pri=0     0   0
/dev/mdgroup/rootlv     /                   xfs         defaults  1   1
/dev/md0                /boot               ext2        defaults  0   0
/dev/mdgroup/tmplv      /var/tmp            xfs         defaults  1   2
/dev/mdgroup/qemulv     /spare/1            xfs         defaults  1   2
/dev/mdgroup/archstore  /spare/5            ext3        defaults  1   2
/dev/mdgroup/extraslv   /extras             xfs         defaults  1   2
/dev/mdgroup/home       /home               ext3        defaults  1   2
/dev/mdgroup/varlv      /var                xfs         defaults  1   2
/dev/mdgroup/java       /spare/4            xfs         defaults  1   2
/dev/mdgroup/junk       /spare/6            xfs         defaults  1   2
/dev/mdgroup/xconqlv    /var/mcp            xfs         defaults  1   2
/dev/mdgroup/slaptlv    /var/slapt-get      xfs         defaults  1   2
/dev/mdgroup/newhomelv  /newhome            xfs         defaults  1   2
/dev/mdgroup/newroot    /newroot            xfs         defaults  1   2
/dev/mdgroup/opt        /opt                xfs         defaults  1   2
/dev/mdgroup/newmusiclv /opt/music          xfs         defaults  1   2
/dev/mdgroup/sourcelv   /source             xfs         defaults  1   2
/dev/mdgroup/usr        /usr                xfs         defaults  1   2
/dev/mdgroup/usrlocal   /usr/local          xfs         defaults  1   2
/dev/mdgroup/winimage   /usr/local/winimage ext4        defaults  1   2
/dev/mdgroup/libvirtlv  /var/lib/libvirt    xfs         defaults  1   2
/dev/mdgroup/pgsqllv    /var/lib/pgsql      xfs         defaults  1   2
/dev/mdgroup/mongostore /var/lib/mongodb    xfs         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            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
tmpfs            /tmp             tmpfs       defaults         0   0
That's the system that I use every day. I used to have several reiserfs partitions, but they were starting to lock up the system at shutdown.

Some of those partitions were left-overs from when I used physical partitions (the /spare/XX crud) that I haven't bothered to align to any type of standard. The /newhome and /newroot crud was from upgrades back in the single-digit Slackware days.

dh2k wrote an excellent set of reasons. I'll add that with logical volumes, you can decide how much room that you want to give anything. (And it's really easy to make those volumes come and go.) That /var/lib/pgsql partition is currently set to 2G. If one of my databases starts to grow beyond the size that I thought it should be, it will not be able to effect the rest of my system. Ditto for the mongoDB that I've got running. Ditto for my virtual machines whose disk images live in /var/lib/libvirt.

My day job is software development and I use this machine for some of that. I find it useful and (frankly) really neat to be able to do this. If you don't have a use for it and find it to be a real PITA, then don't do it.
You know - you could just use quotas to achieve the same goal. Instead of having one partition for every file you have.
Old 03-19-2014, 08:43 PM   #23
Registered: Nov 2009
Location: Salina,Kansas
Distribution: Slackware64-current
Posts: 207

Rep: Reputation: 33
Originally Posted by ReaperX7 View Post
You really don't need to do segregated file systems anymore. If anything all you need is 3 at least:


Or even just 2:

Years ago,I followed the latter partition scheme, and found it didn't work for me; on occasion, I might need to reinstall Slackware. In these cases, I personally think it's better to leave /home untouched, because then the install will leave my personal settings for KDE, vlc, .asoundrc (for ALSA), etc. alone. Also, separating my home partition from the root allows me to use LVM to aggregate two or more hard drives into one large logical partition, allowing room for future growth. This particular arrangement has suited me well since I first adopted it, and I see no reason to change now.

For reference's sake, my /etc/fstab:

/dev/sda1        swap             swap        defaults         0   0
/dev/sda2        /                ext4        defaults         1   1
/dev/sda3        /tmp             ext4        defaults         1   2
/dev/slack/slack /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


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
This may be of interest to UK drivers baldy3105 General 2 01-27-2006 04:44 AM
Out of interest... gwejones Linux - General 1 09-13-2005 04:45 AM
A little story, probably of no interest... Looking_Lost General 21 06-25-2005 04:57 AM
Need to keep interest in linux mikeymorgan Linux - Newbie 18 03-27-2005 08:38 PM
Some Questions that are of Interest? richhoward Linux - General 1 06-10-2003 11:19 PM

All times are GMT -5. The time now is 02:24 PM.

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