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

Notices


Reply
  Search this Thread
Old 05-17-2016, 09:34 AM   #16
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Original Poster
Rep: Reputation: Disabled

For the command dd if=/tmp/slackware64-14.1-install-dvd.iso of=/dev/sdX bs=1M I know that when I put my USB in it is /dev/sbd1 or something like that. So would i change the sdX in that command to /dev/sbd1? Probably a dumb question, but I just want to make sure I have an understanding before I work on it tonight
 
Old 05-17-2016, 09:41 AM   #17
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Gordie View Post
I just don't understand why I would want to partition for the sake of partitioning my Slackware install into smaller hunks
There are a lot of reasons, but it really depends on your usage. You may want /tmp and/or /var on separate partitions, so if you happen to fill either of those, it doesn't harm anything else (a faulty program could create a ton of temp files or massive logs ultimately filling the partition they reside on). Also, you may want to have your htdocs root on a different partition if you're hosting webpages to ensure they remain separate from the OS. /boot needs to be a separate partition if you use lvm/luks. Depending on how you store your music/videos/pictures, you may want them on a separate partition (or even separate drive). If you install a lot of software in /usr/local, you could have that be a separate partition from /usr so you can easily separate your custom programs from your stock programs. Some like to have /home be a separate partition so they can easily hose the installation but still retain all their stuff.

There's a ton of ways to utilize Linux's flexible partitioning. Some, including me, tend to go for a fairly basic setup (I just have swap, /root, and /home, with additional media drives holding my TV Shows and Movies that are served over NFS to my htpc), but there are others who like to have very strict controls over how big certain folders can get and to prevent any one of them from breaking the system if it gets filled.

That's why I saw it is always better for users to start with basic partitions, then once they're more familiar with how they use their system, they can then decide if it is worth it to try an alternative partitioning scheme.
 
Old 05-17-2016, 09:43 AM   #18
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Belikewater View Post
For the command dd if=/tmp/slackware64-14.1-install-dvd.iso of=/dev/sdX bs=1M I know that when I put my USB in it is /dev/sbd1 or something like that. So would i change the sdX in that command to /dev/sbd1? Probably a dumb question, but I just want to make sure I have an understanding before I work on it tonight
You won't specify the partition on the drive (the number at the end of the device), since the dd command replaces the whole filesystem. So in your case, it would be:

Code:
dd if=/location/to/slackware64-14.1-install-dvd.iso of=/dev/sdb bs=1M
 
Old 05-17-2016, 09:53 AM   #19
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Original Poster
Rep: Reputation: Disabled
Awesome thank you Bassmadrigal. Today is D-day I will see how big of a war it will be installing it.
 
Old 05-27-2016, 07:39 AM   #20
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Original Poster
Rep: Reputation: Disabled
So based on what im working with, do you think I could get away with 5gb for swap and whatever I have left over for root?

I still have trouble understanding the numbers.

harddrive: 320GB 5,400rpm
Memory: 3GB, 1,333MHz DDR3
 
Old 05-27-2016, 07:53 AM   #21
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
You indicate you have 3GB of RAM so 2-4GB for swap should be more than enough for a general user.

Quote:
whatever I have left over for root?
Create the root filesystem partition first (not necessary but) since swap is useless if you don't have the filesystem. On current Linux operating systems with full installs, 15-25GB for the root filesystem, 2-4GB for swap and use the rest to store personal data. You can easily create these partitions after the install.
 
Old 05-27-2016, 08:15 AM   #22
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Original Poster
Rep: Reputation: Disabled
Got it. Thanks! So since I have 320gb hard drive is that where the 15-25gb is coming from?
 
Old 05-27-2016, 08:24 AM   #23
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by Belikewater View Post
Got it. Thanks! So since I have 320gb hard drive is that where the 15-25gb is coming from?
Just a general assumption. Slackware full install is a little over 9 GB according to the installer so 15-25 GB would leave you some wiggle space for installing other programs and such.

Personally my 320 GB HDD is set up like this:

/ 30 GB
swap 8 GB
/data 200 GB
/mirror 60 GB

YMMV

I keep /home on my / partition and use /data for all my files (music, documents, etc) that way when I reinstall or something happens I can have a full clean install and not lose anything.
 
Old 05-27-2016, 08:41 AM   #24
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Original Poster
Rep: Reputation: Disabled
Thanks Skaendo. This may be another ignorant question but in order to make data partition do I name it when creating the partition in cfdisk? I did not see data as an option when choosing type.
 
Old 05-27-2016, 08:57 AM   #25
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Personally, I would go larger than 15-25GB for your root partition since it'll give you more wiggle room in case you decide to start installing a lot of software. I use 22GB just in my /usr directory. I would probably go with a minimum of 50GB if you're willing to occasionally clear out your /tmp folder (as that is where all packages from SBo are built and saved) or 100GB if you're lazy (I certainly am). I currently have 37GB in my /tmp (I'm a digital packrat) and have a total of 67GB of my 100GB used on my root partition.

In all actuality, you really only need swap and root partitions. If you intend to hibernate the laptop, add the size of your RAM to whatever swap you plan on using. In your case, 2GB of swap + 3GB for hibernation seems like a decent starting amount. Then you could just leave everything else for you root partition, although, many (including me) like to have /home on a separate partition. /home is basically where all your files will be saved, and having it as a separate partition could be beneficial in some recovery/installation scenarios.

Because you have a 320GB drive and it is likely you won't use nearly all of it, personally, I would probably do:

5GB - swap
100GB - / (root partition)
remaining (~215GB) - /home
 
2 members found this post helpful.
Old 05-27-2016, 09:01 AM   #26
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Belikewater View Post
Thanks Skaendo. This may be another ignorant question but in order to make data partition do I name it when creating the partition in cfdisk? I did not see data as an option when choosing type.
Partitions are handled a little differently in Linux than Windows. In cfdisk, you would just specify the filesystem type (linux or linux swap, depending on what partition you're creating), then, once formatted, any additional partitions (outside of the root and swap) would be linked to certain folders within the root filesystem.

So, if you have a partition you intend to use for /home, when the installer asks you to add additional partitions, you would just write the mountpoint (what folder you want it at) in the installer.
 
Old 05-27-2016, 09:14 AM   #27
Erentigionation
Member
 
Registered: May 2016
Location: Somewhere between order and chaos
Distribution: Ubuntu, Slackware, Arch Linux
Posts: 31

Rep: Reputation: Disabled
I'm using 6 GB for the filesystem and 2 GB for the swap partition (running in VirtualBox because I can't afford another computer), but I'm not installing the GUI in this installation. To install everything, you need at least 8 GB hard drives space, as it says in the installer.
 
Old 05-27-2016, 09:29 AM   #28
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Original Poster
Rep: Reputation: Disabled
Very helpful! Thank you both. Now I get the mounting of /home. I have been re-watching install videos. I never have partitioned before so last time i tried i failed. Last question here hopefully. When I am assigning the space can I use GB or do I have to use KB? seems like in all the videos they have it in KB. Do i convert them or just put for example 50GB for root and be done with it
 
Old 05-27-2016, 09:36 AM   #29
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by Belikewater View Post
Very helpful! Thank you both. Now I get the mounting of /home. I have been re-watching install videos. I never have partitioned before so last time i tried i failed. Last question here hopefully. When I am assigning the space can I use GB or do I have to use KB? seems like in all the videos they have it in KB. Do i convert them or just put for example 50GB for root and be done with it
If you are doing it from the installer, then you can tell it to make your partition size in GB like this:

Code:
+200G
 
1 members found this post helpful.
Old 05-27-2016, 09:46 AM   #30
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Belikewater View Post
Very helpful! Thank you both. Now I get the mounting of /home. I have been re-watching install videos. I never have partitioned before so last time i tried i failed. Last question here hopefully. When I am assigning the space can I use GB or do I have to use KB? seems like in all the videos they have it in KB. Do i convert them or just put for example 50GB for root and be done with it
It's been a while since I've partitioned, but most partitioning tools will allow you to specify your size followed with an M, G, T (for megabyte, gigabyte, and terabyte, respectively).
 
1 members found this post helpful.
  


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
HowTo convert Primary Partition to Logical (ie move it inside the Extended Partition) Tom6 Linux - Software 3 11-29-2010 03:40 PM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

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

All times are GMT -5. The time now is 11:05 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