Slackware hard disk partition with fdisk

This is a tutorial to partition hard disk for Slackware Linux using fdisk partitioning tool. Before proceeding with hard disk partitioning, you need to plan on how do you want your partition to be. Make a proper plan to assign suitable size for each partition. If you haven't done so, here is a basic idea of dividing a 10 GB hard disk:

  • swap - Two times your RAM size.
  • /home - 2 GB
  • /usr/local - 2 GB
  • / - Take all the rest.

Of course you can replace /home with /var if you want. So /home will be in the / partition and share hard disk space with /. If you are really a Linux beginner, then you really need to know what partition doing what. Again here's a basic guide:

  • swap - Virtual memory. This partition will help a low memory problem.
  • / - This is the root partition. Your Slackware binary files will be installed here.
  • /home - User's home directory. Users keep their files here. FTP home directory is here too.
  • /var - System log files and email spools.
  • /usr/local - Non official software or software packages that you added after the installation.
  • /tmp - Store a temporary files.

There is another tutorial about hard disk partition that explains more about partition size. If you still unsure about what size you should give to each partition, check Setup Linux partitions in the Basic Slackware Linux learning guidelines for beginner tutorial.

Why do we consider all the mount points above to have their own partition? The reason is it'll be easier when you are going to upgrade Slackware. If user's file is in their own /home partition, then you don't have to backup when doing the upgrade. The same goes for logs and softwares because the only partition changed is the / partition.

For more information about hard disk partition and fdisk, you can check previous version of Slackware's tutorial in Linux hard disk partition - preparation, partition size and fdisk tutorial.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.