LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   Partitioning for Slackware. (https://www.linuxquestions.org/questions/slackware-installation-40/partitioning-for-slackware-480889/)

extrasolar 09-06-2006 06:46 AM

Partitioning for Slackware.
 
Hi. I had slackware but it messed up with rsync but now I want to install it again.

It's just a single user system (me) and it will be used for both text editing, spreadsheets (office kind of stuff) and for multimedia.

I have an 80gig drive to install it on.

I was just wondering the best space to allocate to the /, /usr/ and /home partitions or whether I should just have one swap partition and the rest allocated for the system.

Any advice will be appreciated.

Cheers. :)

mikieboy 09-06-2006 07:05 AM

Opinions seem to be divided on the benefit of separate partitions. I had separate /, /temp, /var, /usr /swap and /home when I had Slackware. This was mainly because I had read that separate /var prevented buffer overflows, separate /temp helped prevent fragmentation and separate /usr and /home were just a "good thing". The problem is how much space to devote to each partition. I never was happy with my choices and so with my Debian system I just have /, /swap and /home. I reckon a separate /home makes for an easier re-install if necessary as your data is unaffected.

Hope this helps.

Bruce Hill 09-06-2006 07:31 AM

Shucks, Buck Wheat, I can't resist:
Code:

mingdao@silas:~$ sudo /sbin/fdisk -l

Disk /dev/sda: 74.3 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        1913    15366141    7  HPFS/NTFS
/dev/sda2            1914        4345    19535040    c  W95 FAT32 (LBA)
/dev/sda3            4346        8296    31736407+  5  Extended
/dev/sda4            8297        9039    5968147+  c  W95 FAT32 (LBA)
/dev/sda5            4346        4406      489951  82  Linux swap
/dev/sda6            4407        5135    5855661  83  Linux
/dev/sda7            5136        5864    5855661  83  Linux
/dev/sda8            5865        8296    19535008+  83  Linux

mingdao@silas:~$ cat /etc/fstab
/dev/sda5        swap            swap        defaults        0  0
/dev/sda6        /                reiserfs    defaults        1  1
/dev/sda7        /usr            reiserfs    defaults        1  2
/dev/sda8        /home            reiserfs    defaults        1  2
#/dev/sda1        /WinXP          ntfs        ro              1  0
/dev/sda1        /WinXP          ntfs        users,umask=1000,ro,auto  1  0
/dev/sda2        /Shared          vfat        user,umask=1000,rw,auto  1  0
/dev/cdrom      /mnt/cdrom      auto        noauto,users,ro  0  0
/dev/hda        /dvd1            auto        noauto,users,ro  0  0
/dev/hdc        /dvd2            auto        noauto,users,ro  0  0
/dev/sdb1        /usb1            vfat        noauto,users,rw,umask=1000  0  0
/dev/sdc1        /usb2            vfat        noauto,users,rw,umask=1000  0  0
/dev/fd0        /mnt/floppy      auto        noauto,users    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
# Mount point for NFS #
192.168.1.11:/home /serverhome nfs auto,rsize=8192,wsize=8192,hard,intr 0 0
192.168.1.11:/backup /server1 nfs auto,rsize=8192,wsize=8192,hard,intr 0 0
192.168.1.11:/backup2 /server2 nfs auto,rsize=8192,wsize=8192,hard,intr 0 0
# Next line added for kqemu - it will not harm your system
none                    /dev/shm                tmpfs  size=1040M        0 0
# For viewing NTFS drives in USB enclosure #
/dev/sdb1        /mnt/hd          ntfs        noauto,users,ro  0  0

mingdao@silas:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda6            5.6G  2.0G  3.7G  35% /
/dev/sda7            5.6G  2.4G  3.3G  42% /usr
/dev/sda8              19G  15G  3.8G  80% /home
/dev/sda1              15G  7.5G  7.3G  51% /WinXP
/dev/sda2              19G  11G  8.2G  57% /Shared
none                  1.1G    0  1.1G  0% /dev/shm
192.168.1.11:/home    28G  8.5G  20G  31% /serverhome
192.168.1.11:/backup  233G  220G  14G  95% /server1
192.168.1.11:/backup2
                      233G  226G  7.2G  97% /server2


vls 09-06-2006 08:18 AM

I used to bother with separate partitions but now it's just / and swap.
I backup $HOME and /usr/local and plan on a clean re-install if/when something bombs.

Bruce Hill 09-06-2006 08:22 AM

Excuse my ignorance, but why backup /usr/local/ ?

There's basically nothing in there but man pages.

:scratch:

extrasolar 09-06-2006 12:31 PM

I think I'm just gonna have swap and / partitions. I do have another disk that I can use as backup to store importants information on.

Cheers for your input. :)

extrasolar 09-06-2006 12:36 PM

Cheers for you input guys. :)

I'm just gonna have swap and / partitions. I have a seperate disk for backup purposes and to store important data on.

Bruce Hill 09-06-2006 05:31 PM

If you think there's a possibility that you might ever
hose your system again, and you store data on that drive
that you don't want to lose; or if you might someday want
to upgrade or change your OS, you really should make a
separate /home partition. If you do, then you can install
and mount the old /home without formatting it.

As for sizes, unless you're going to install a whole lot
of new apps, 5GB for / is probably more than enough. The
rest is up to you. I usually leave some free space on the
drive for 'just in case' situations.

mikieboy 09-07-2006 02:29 AM

Posted by Bruce Hill:
Quote:

......you really should make a separate /home partition.
100% agreement

Quote:

I usually leave some free space on the drive for 'just in case' situations.
Me too. I've never come even close to filling a hard drive. I also used to have a 4Gb Fat32 partition that I used for files I wanted to access in both Windoze and Linux. It was quite handy back when I still used Windoze fairly often.

Woodsman 09-07-2006 01:19 PM

I like separate partitions for the simple safety net. Partitioning will not save me from a hard drive failure, but is helpful in avoiding software problems. Partitioning is helpful when reinstalling software because certain files and data need not be recreated from scratch. This is most noticeable with user files in the /home partition.

I was partitioning my hard drive almost two decades ago with MS-DOS, dividing the hard drive into a C: (system), D: (applications), and E: (data). I still use that basic approach today with Windows (a couple of registry tweaks are necessary). As Windows became more prone to viruses and Trojan horses, my approach relieved some worry because those kinds of programs almost always attack system files and not application or data files. In any such related emergency I would need only reinstall system files and not the entire hard drive. GNU/Linux systems, with their file system approach toward everything on the system, allows for easy file and data segregation, not to mention that file permissions and rights play a significant role too.

On my second box with a 40GB hard drive, I created an 8 GB /home partition. Because I am not into videos or mp3 files, I likely will never fill this space. However, because of the large partition size, I installed Slackware CDs 1 and 2 to that partition in a directory called public. I need not grab CDs or mount ISO images to reinstall software. I also use that partition as user space for compiling software. I created a user group called compilers and created a special directory called builds. I need not "infect" any area of my hard drive with compiling tasks.

I also enjoy using separate /opt and /usr/local partitions because when I tinker or perform a reinstallation, I need not reinstall those files.

A shared FAT32 partition is handy for people who need to work in a dual Windows-GNU/Linux environment and do not have networking to share files.

For people who are into videos or mp3 files, creating a separate partition to house those files, and through fstab mounting those partitions as user directories in the /home file system, would seem like a smart strategy. Those partitions need not get walloped upon any system reinstallation and for backup purposes makes things a lot easier too. With the size of today's hard drives being so large and relatively inexpensive, creating a large partition to store those files should be straightforward.

Partitioning is part personal opinion and part risk vs. benefit. Users must decide what will work best for them and usually the advice of others is limited. Some personal experimentation usually is necessary before deciding upon any partitioning scheme.

Perhaps the following might help:

Hard Drive Partitioning

Quote:

Excuse my ignorance, but why backup /usr/local/?
There's basically nothing in there but man pages.
Not so on my boxes. :) I use /usr/local for storing all of my system wav and ogg files (/usr/local/share/sounds), and True Type fonts (/usr/local/share/fonts). I also store all of my administrative scripts that I have written or downloaded in /usr/local/sbin and user scripts that I have written or downloaded in /usr/local/bin. If I was inclined to write man pages for these scripts I would store them there as well. I seldom tinker with other distros these days, but I still perform an occasional reinstall. Having these files in a separate partition saves me a lot of work and time.


All times are GMT -5. The time now is 04:11 PM.