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 01-27-2004, 11:46 PM   #1
AceTech747
Member
 
Registered: Nov 2003
Distribution: RH 9.0
Posts: 144

Rep: Reputation: 15
Partitioning for Slackware


I just bougt a new HD for Slack. How should I partition it to be able to set-up slack and RH9 at the same time. I would like to have RH9 to be the main distro until slack is fine tuned. Also, I think it would be cool to have the second partition unmounted while not being in use. Please let me know how to create the partition for the slack install. I would like to get this setup during the weekend. I plan on tweaking slackware with ultimate security. I am hoping the slack distro will be non-tamperable while not in use and under constuction for securty tweaking.....is this possible. Thanks for your help. You guys here on LQ have me pretty excited about jumping into slack.
 
Old 01-28-2004, 12:15 AM   #2
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Re: Partitioning for Slackware

Quote:
Originally posted by AceTech747
I plan on tweaking slackware with ultimate security. I am hoping the slack distro will be non-tamperable while not in use and under constuction for securty tweaking.....is this possible. Thanks for your help. You guys here on LQ have me pretty excited about jumping into slack.
Non-temperable? Plug-out that hard disk and keep it in a safe box. When we are dealing with dual boot, we are opening a big security hole. Let me give you and example.

Let say we have a Win2k and Slackware in the same system. And we do not have a valid user account in Win2k. But we are the superuser of Slackware. We can easily mount the win2k partition and access everything.

As in how to partition your harddrive? I assume that you are going to dedicate the whole new drive for Slackware. A reminder, partitioning is very subjective to personal preferences and usage.

Here is the basic partitioning which I will go for:

/dev/hdX1 /swap
/dev/hdX2 /
/dev/hdX3 /opt
/dev/hdX4 /home

I separate /opt and /home from / is because, if I have to do a reinstall on my system or even an upgrade to a new version of Slackware, my data will be safe in home and your users data would be safe there. As for /opt, there is where I install certain type of application such as staroffice, acrobat reader, netbean, etc. those program which contain itself in their folder. In this way, I can avoid reinstalling them when I wipe out my system.

Note that you can use the same /swap partition for Red Hat and Slackware. You can even use the same /home partition. But you must separate the / (root) partition.
 
Old 01-28-2004, 12:22 AM   #3
AceTech747
Member
 
Registered: Nov 2003
Distribution: RH 9.0
Posts: 144

Original Poster
Rep: Reputation: 15
Is there a program to create the partitions. Also if I were to unlpug the second partition when it is not being used...which will be slackware for a short period of time will this be an issue? If I am shareing the swap space I would need to have the second drive dependent on the master. After slackware is set-up and fine tuned the exact way I want it I would like to make it my primary distribution and possibly my only distribution. Will it be difficult for me to do this when that time comes? I realize that I have to create the partitions but what should I do to do this. Should I use command line or is there a GUI for this?
 
Old 01-28-2004, 12:35 AM   #4
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Ok first thing first.
Pls provide me with how many harddisk you have
What are the sizes?
How does your current partition table look like? --> You can do this by df -h at the command line in Red hat.

The swap space can be anywhere in the system, and I mean anywhere as long as it is on a harddrive. Actually you may not even need swap sapce if you have large RAM. But as I experience in Slackware 9.0, the installation will hang half way if you did not set up swap. To be on the safe side, just put it in.

There is no problem for Slackware to be main distribution or Red Hat or to wipe out either one when you are ready.

RedHat uses Grub to boot. Slackware uses Lilo. Both can boot either distribution. When you are ready to wipe out Red Hat, just mke3fs /dev/hdXY (your RedHat root partition) and that will wipe out the distribution and you will have extra space.

Use fdisk /dev/hdX (new drive) in command line to partition your new hard disk. It is fairly easy to use fdisk. there is help inside the program.
 
Old 01-28-2004, 03:37 AM   #5
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
would it be possible to post your question only once?
 
Old 01-28-2004, 06:42 AM   #6
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
I have found
/dev/hdX1 / -7.8GB
/dev/hdX2 /swap -512MB
/dev/hdX3 /var the rest
is a good simple setup on large modern disks.
I know lilo now works beyond 1024 cylinders these days but I still get uncomfortable allowing /boot to be poentially beyond the 8GB point.
For some reason Slackware 9.1 is awkward to setup for
/dev/hdX1 /boot
/dev/hdX2 /swap
/dev/hdX3 /
/dev/hdX4/....
partitioning, I always end up needing the rescue floppy as lilo messes up
 
Old 01-28-2004, 08:04 AM   #7
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
As I've said before, you don't need lilo if you already have a bootloader...
 
Old 01-30-2004, 09:03 PM   #8
AceTech747
Member
 
Registered: Nov 2003
Distribution: RH 9.0
Posts: 144

Original Poster
Rep: Reputation: 15
I see what you mean for the partitions spaces. I have two HD's on my computer right now. I have the second drive physically installed. I am not sure which commands to type to create the partitions. I have a 500mb swap and the main drive on the first drive and the second drive is brand new sitting in the computer.
 
Old 01-30-2004, 09:10 PM   #9
AceTech747
Member
 
Registered: Nov 2003
Distribution: RH 9.0
Posts: 144

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by elluva
would it be possible to post your question only once?
Sorry for asking twice I did not realieze you have already answered this for me in another thread. Which sizes should I make the boot and root partitions?
 
Old 01-31-2004, 03:43 AM   #10
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
If you already have a swap partition, you don't need to make another. Commands for fdisk:

$> fdisk /dev/hdb

Command > m

(this is for getting some help...)

[Edit:]Better use cfdisk, it is a easierer to work with...

Last edited by elluva; 01-31-2004 at 03:45 AM.
 
Old 02-06-2004, 12:23 AM   #11
AceTech747
Member
 
Registered: Nov 2003
Distribution: RH 9.0
Posts: 144

Original Poster
Rep: Reputation: 15
Is there a grapghical FDisk I am able to use?
 
Old 02-06-2004, 01:08 AM   #12
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
google for it then.
Maybe you can use the Red Hat GUI partition prog ( I don't know what package they use at the backend.)
 
Old 02-06-2004, 02:41 AM   #13
newinlinux
Member
 
Registered: Dec 2003
Location: Next to Equator
Distribution: GNU/Linux 2.6.14
Posts: 382

Rep: Reputation: 30
Quote:
Originally posted by AceTech747
Is there a grapghical FDisk I am able to use?
try cfdisk, not gui, but present itself on a table form, much more intuitive than fdisk IMO.
 
  


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
Slackware 10 partitioning Yoshimura Slackware 4 09-04-2004 06:38 PM
slackware partitioning paul62 Slackware 1 07-16-2004 01:11 PM
Slackware disk partitioning 46&2 Linux - Newbie 2 03-15-2004 12:59 PM
Slackware partitioning [GOD]Anck Slackware 1 12-31-2003 09:59 AM
Slackware Partitioning. liguorir Linux - Software 1 05-28-2003 08:26 AM


All times are GMT -5. The time now is 01: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration