LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-23-2013, 12:49 AM   #1
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Rep: Reputation: Disabled
Question How to install slackware to two partitions (One for Slackware and one for swap)


Hello today I installed slackware so i could do lfs easier and i installed slack ware but you can have only four primary partitions and those are all taken up by Slackware (Btw i have free space i just cannot use it)
 
Old 11-23-2013, 01:23 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Solution : Delete partition `number 4'.

And create "extended" as a new `number 4'
Then you can create up to eleven "logical partitions" in #4.

Example : Partition #5 can be swap.
Partitions #6... #15 : Linux partitions.

-
 
Old 11-23-2013, 11:59 AM   #3
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Original Poster
Rep: Reputation: Disabled
yes but i also want to put slackware in one partition is that posible
 
Old 11-23-2013, 01:45 PM   #4
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
You can have slackware in different partitions one for root, one for home and one for swap, and you can even create a small one just for boot.

During installation the script usually prompt you to select where you one to mount the partitions you have previously create and even ask you the type of format you want to create. Usually select ext4 is a good idea.

your hard drive will only allow 4 primary partitions but you can sub partition a primary partition on to logical partition.
fdisk is what you type to create partition during Slackware installation.

Good luck to you
 
Old 11-23-2013, 02:56 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 3 .
Quote:
I also want to put slackware in one partition is that possible
Yes, you can do that. A swap partition is not required.
I.e. a swap file inside Slackware will do.


-
 
Old 11-23-2013, 07:55 PM   #6
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Original Poster
Rep: Reputation: Disabled
So instead of outing /home /root and /usr in separate partitions I can put them in one right oh and I think I'll do a swap partition because LFS only needs two primary partitions
 
Old 11-23-2013, 08:25 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
IMHO it's better to allocate as much space as possible in an extended, and install there with all partitions as logicals. Saves getting into the "wasted space" scenario. Linux doesn't require a primary partition at all - not root, not boot, not 'nuthin.
If you have to put up with something that is so brain dead as to require a primary partition for the boot-code, leave some space for that at the front of the disk, and use all the rest as an extended.
KISS.
 
1 members found this post helpful.
Old 11-23-2013, 08:27 PM   #8
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Original Poster
Rep: Reputation: Disabled
Thanks I'll try that
 
Old 11-23-2013, 09:03 PM   #9
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Having a separate /root partition is not necessary but sure it is nice for when you have re install the OS. That way all the config files under your home partition are saved, along with all the data you have been accumulate over the years
 
Old 11-23-2013, 09:15 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,361
Blog Entries: 12

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Linux does not have to be installed on a "Primary" partition. That's a Windows thing, a holdover from DOS.

You can install Linux quite happily on extended partitions. I've done it with Mint and Mageia, though not with Slackware.

Last edited by frankbell; 11-23-2013 at 09:18 PM.
 
Old 11-23-2013, 09:22 PM   #11
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
agree
 
Old 11-24-2013, 10:06 AM   #12
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Original Poster
Rep: Reputation: Disabled
OK I'll just put it on an extended partition
 
Old 11-24-2013, 10:22 AM   #13
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Let us know how it is working out for you.
 
Old 11-24-2013, 10:31 AM   #14
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Original Poster
Rep: Reputation: Disabled
Alright

---------- Post added 11-24-13 at 11:32 AM ----------

Oh and what is the difference of primary and logic
 
  


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
[SOLVED] cfdisk won't let me write the partitions- Slackware V 13 install VGran Slackware - Installation 8 06-20-2011 08:52 PM
[SOLVED] Forgot Swap on lvm install on Slackware 13.1 BoydRice Slackware 4 06-04-2010 08:23 AM
I wanna install Slackware,but do I have to make new partitions to my HDD...? Ongeboren Slackware 12 04-15-2006 02:23 PM
Slackware 9.0 install freezes trying to detect partitions on my 120 GB HDD Nicolae Slackware - Installation 1 02-19-2004 06:18 AM
Slackware 9 Creating new swap partitions after installation without destroying data MegaGeoff Linux - Newbie 1 01-18-2004 09:44 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration