Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-27-2004, 10:46 PM
|
#1
|
Member
Registered: Nov 2003
Distribution: RH 9.0
Posts: 144
Rep:
|
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.
|
|
|
01-27-2004, 11:15 PM
|
#2
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Rep:
|
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.
|
|
|
01-27-2004, 11:22 PM
|
#3
|
Member
Registered: Nov 2003
Distribution: RH 9.0
Posts: 144
Original Poster
Rep:
|
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?
|
|
|
01-27-2004, 11:35 PM
|
#4
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Rep:
|
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.
|
|
|
01-28-2004, 02:37 AM
|
#5
|
Member
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600
Rep:
|
would it be possible to post your question only once?
|
|
|
01-28-2004, 05:42 AM
|
#6
|
Member
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770
Rep:
|
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
|
|
|
01-28-2004, 07:04 AM
|
#7
|
Member
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600
Rep:
|
As I've said before, you don't need lilo if you already have a bootloader...
|
|
|
01-30-2004, 08:03 PM
|
#8
|
Member
Registered: Nov 2003
Distribution: RH 9.0
Posts: 144
Original Poster
Rep:
|
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.
|
|
|
01-30-2004, 08:10 PM
|
#9
|
Member
Registered: Nov 2003
Distribution: RH 9.0
Posts: 144
Original Poster
Rep:
|
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?
|
|
|
01-31-2004, 02:43 AM
|
#10
|
Member
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600
Rep:
|
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 02:45 AM.
|
|
|
02-05-2004, 11:23 PM
|
#11
|
Member
Registered: Nov 2003
Distribution: RH 9.0
Posts: 144
Original Poster
Rep:
|
Is there a grapghical FDisk I am able to use?
|
|
|
02-06-2004, 12:08 AM
|
#12
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Rep:
|
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.)
|
|
|
02-06-2004, 01:41 AM
|
#13
|
Member
Registered: Dec 2003
Location: Next to Equator
Distribution: GNU/Linux 2.6.14
Posts: 382
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|