LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-11-2006, 11:19 AM   #1
drimades
Member
 
Registered: Jun 2006
Posts: 60

Rep: Reputation: 15
Slackware Linux partitions


I have Windows in my PC. Now I want to add Slackware Linux in it.

What kind of partitions I must create with Partition Magic to install Slackware Linux?
 
Old 06-11-2006, 11:41 AM   #2
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
You'd want to create something like ext3 or ReiserFS, and then a swap partition.
Personally, I'd just use the installation CD Partitioning Tool.

Last edited by Xian; 06-11-2006 at 11:42 AM.
 
Old 06-11-2006, 12:00 PM   #3
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Cool

Quote:
Originally Posted by drimades
I have Windows in my PC. Now I want to add Slackware Linux in it.

What kind of partitions I must create with Partition Magic to install Slackware Linux?
The first rule of Linux is not to break your system with Winbloze apps.

If you have a normal Winbloze installation, then it ate your whole disk. You will have to resize the NTFS filesystem so that you have room to do anything else. You can use Kanotix live CD and use qtparted from the system menu, or boot some other parted live CD like gparted, etc.

After that, Like Xian said, just go through the Slackware installation and let it build the filesystems. If you need to partition, then exit from the installation and run fdisk or cfdisk in console mode, or use a Linux Live CD like Slax or Kanotix. (I can't remember but now that I think of it, there must be an option to partition from inside the installation.....)

Last edited by Randux; 06-11-2006 at 12:09 PM.
 
Old 06-11-2006, 12:10 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
If you're asking about partitioning schemes, well, it's up to you. Some people have separate partitions for /, /home, /boot, possibly /tmp and others. Personally though, I just have / and a swap partition.
 
Old 06-11-2006, 12:11 PM   #5
nutronix
Member
 
Registered: Jan 2003
Location: montreal
Distribution: Slackware and Debian
Posts: 139
Blog Entries: 1

Rep: Reputation: 20
if you want to install Slackware on the same drive as windows and you have partition magic then use it....i have done it on the wife's computer (although i prefer a separate hdd for linux ).....and if you do not want to overwrite your mbr...i am assuming you have windowsXP...you can always install lilo on a floppy ,assuming you have a floppy drive ... i would not use partition mgic's boot loader utility ,i had issues with it......good luck
 
Old 06-11-2006, 12:19 PM   #6
Zoko
Member
 
Registered: May 2004
Location: Morgantown, West Virginia
Distribution: Gentoo 2007.0, Straw Hat Linux
Posts: 31

Rep: Reputation: 15
The great part about Slackware is it's installer, it's a great installer. With partition magic as long as you make at least one partiton of any other kind you'll be fine because the Slackware installer will prompt you about making partitions when you boot up.

Like Xian said, ext2 or ReiserFS are two options. I use XFS myself because it has great journaling (it won't make your FSCK it if you restart without unmounting properly).

When you load up the slackware disk it will give you the option to boot a few different kernels, which one you boot up determines which File Systems you can make when if you set up your partitions in the Slackware Installer. To select a different kernel just type it in at the command prompt and you're set (ex: boot: xfs.s)
 
Old 06-11-2006, 04:05 PM   #7
Axeman747
LQ Newbie
 
Registered: May 2006
Distribution: Slackware 10.2
Posts: 8

Rep: Reputation: 0
Watch partition magic, I had a problem with it hiding my windows partition. I had to run qtparted and unhide it to be able to boot into windows.
 
Old 06-11-2006, 07:43 PM   #8
Cam.Thompson
LQ Newbie
 
Registered: Aug 2005
Posts: 8

Rep: Reputation: 0
It's retardedly easy to dual boot with slack 10.2
 
Old 06-12-2006, 04:13 AM   #9
drimades
Member
 
Registered: Jun 2006
Posts: 60

Original Poster
Rep: Reputation: 15
I have problems with the Lilo boot installation. I have Windows and Linux and I want to choose which one to use during the boot. How can I deal with it?
 
Old 06-12-2006, 04:39 AM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What was the problem with LILO? It should have asked you during the installation if you wanted to add an entry for Windows (or possibly done it anyway).
 
Old 06-12-2006, 09:25 AM   #11
Zoko
Member
 
Registered: May 2004
Location: Morgantown, West Virginia
Distribution: Gentoo 2007.0, Straw Hat Linux
Posts: 31

Rep: Reputation: 15
Quote:
Originally Posted by drimades
I have problems with the Lilo boot installation. I have Windows and Linux and I want to choose which one to use during the boot. How can I deal with it?
as root run this command

liloconfig

Don't let it automatically run, choose to use the expert mode. That will allow you to set up your lilo config the way you need it. It'll generate all the menus, all you should have to do after that is edit the kernel information if you've compiled a new one.
 
Old 06-12-2006, 09:51 PM   #12
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
There's lots of ways of doing this. My Windoze disk was nearly full and I didn't want to risk clobbering it anyway by running a disk partitioning tool. They're all pretty scary if you've had no experience with them, and gaining experience by fiddling around with your working operating systems is not the way to learn. So I bought another drive. They are cheap these days.

Here's one safe and fairly easy way to get to a dual boot Linux and Windows setup. This is just based on my recollection of how I did it. I may have left out a step or two, so if anyone knows of shortcuts or sees any error or omission, hopefully they'll chime in.

1) Download and burn CDs for Fedora Core whatever (any version, you only need the first disc) and Slackware (currently 10.2, burn all discs).

2) Buy and install a new hard disk in your system. Make sure the jumpers on your current Windows drive and your new drive are set to Cable Select. Connect the new drive as the first drive (end connector on the cable), and the Windows disk the second (middle connector). I'm assuming IDE here but it works with SATA, you just have individual cables instead.

3) Boot the Fedora disc 1 CD to install it. Most of the responses you make don't matter, because you aren't going to keep Fedora when you're done. Just answer the ones that are necessary to get the system up (keyboard type, language, etc., you don't care about network or software packages, just install a minimal configuration). When it comes to partitioning your drives, make the first partition on your new drive 128MB (100MB will do, but 128MB is 2 to the 17th power, an auspicious number that those who admire it have found to promote cosmic balance and whirled peas), make the second partition 2GB, make the third partition cover the rest of the drive (or as much as you want). Set the first partition to type 83 (Linux), the second to 82 (Linux SWAP), the third to 83 (Linux). Don't bother installing Logical Volume Manager that comes with Fedora. Tell Fedora to install Grub in the first partition, and Fedora in the third. Grub is the only reason why you are installing Fedora. Slackware doesn't provide it during installation.

4) Boot Fedora to verify that Grub is properly installed. Say 'bye to Fedora, you'll never want to see it again.

5) Boot from the Slackware CD. Install Slackware to the third partition (yes, overlay Fedora), and tell Slack to make the second partition your SWAP partition. Slackware doesn't know about Grub, but that's ok. Slackware will ask you if you want to configure LILO. Don't. Do go ahead and create a boot floppy disk for your Slackware partition (assuming an IDE drive and my instructions here, probably hda3).

6) Boot Slackware from your floppy diskette and go through the rest of the configuration. Install it all, skip nothing. Savor the energy and the power coursing through your viens. You will never forget this feeling. Don't bother with a lot of customization yet.

7) Read Patrick Volkerding's Slackware initrd mini HOWTO. It comes on your Slackware CDs and gets loaded to your system during installation to /usr/doc/mkinitrd-1.0.1 or similar.

8) Do this from a command line (logged in as root):
Code:
cd /boot
Then if you chose ext3 for your file system and assuming you installed Slackware to hda3, do this:
Code:
mkinitrd -c -k x.x.xx -m jbd:ext3 -f ext3 -r /dev/hda3
where x.x.xx is the kernel version you installed (maybe 2.4.31, for example).

If you chose ReiserFS for your file system, but also want support for ext3, you might do this:
Code:
mkinitrd -c -k 2.4.31 -m reiserfs:jbd:ext3 -f reiserfs -r /dev/hda3
9) From a command line, do this (logged in as root):
If your hda1 drive (the small 128MB partition) is not mounted, then
Code:
mkdir /mnt/hda1
mount -t ext2 /dev/hda1 /mnt/hda1
then (next command assumes you are using kernel 2.4.31, alter as necessary)
Code:
cp /boot/initrd.gz /mnt/hda1/boot/initrd-2.4.31.gz
then assuming you are using the ide-2.4.31 kernel, but alter as necessary
Code:
cp /boot/vmlinuz  /mnt/hda1/boot/vmlinuz-ide-2.4.31
10) Next, do this:
Code:
cd /mnt/hda1/boot/grub
Edit your grub configuration:
Code:
pico grub.conf
Insert some lines like these before the first entry Fedora made:
Code:
title Slackware 10.2 kernel 2.4.31
      root (hd0,0)
      kernel /boot/vmlinuz-2.4.31 ro root=/dev/hda3
      initrd /boot/initrd-2.4.31.gz
Then add this next:
Code:
title Windoze on (hd1,0)
      rootnoverify (hd1,0)
      makeactive
      map (hd0) (hd1)
      map (hd1) (hd0)
      chainloader +1
Save your grub.conf.

11) Shutdown and reboot without your floppy diskette. Should work. From the grub menu you should be able to pick either Slackware or Windoze. You might need to go tweak a few things here and there. There's some cleanup you might want to do to your grub configuration file (get rid of the Fedora entry, change timeout value, set a password, etc).


As I said, this may not be a perfect description, but it will get you pretty close if you're willing to experiment a little.

Have fun.

Oh yeah, one more thing. After six to nine months when you realize you no longer boot your Windoze system any more, reformat that drive and use the disk for something else.
 
Old 06-13-2006, 04:57 PM   #13
BDHamp
Member
 
Registered: Mar 2005
Distribution: Ubuntu 9.10, Mint 8, Slackware 12
Posts: 105

Rep: Reputation: 16
RE: Grub

Quote:
Originally Posted by Z038
... Tell Fedora to install Grub in the first partition, and Fedora in the third. Grub is the only reason why you are installing Fedora. Slackware doesn't provide it during installation.
At least with 10.2, Grub is in the /extras directory of the installation discs. You don't really need to go through the hassle of messing with a different distro just to get that one package. Seems needlessly complex and time consuming, at least for me.

I prefer Grub myself, so what I do is just go ahead and install Lilo, then after rebooting, immediately install the Grub package, run the grub configuration script, which is basically liloconfig for Grub, and then you're done.

Alternatively, you could not install lilo at all, then when the installation is done, mount the CD and install it before a reboot. I personally don't do that because I don't have a floppy to make a boot disc and don't want to mess with what would happen if something failed in that process.
 
Old 06-13-2006, 08:10 PM   #14
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by BDHamp
At least with 10.2, Grub is in the /extras directory of the installation discs.
No kidding? In the /extras directory? Dang! It never occurred to me to look there.
 
  


Reply



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
Cannot write partitions - Slackware 10.2 LinuxFrosh Slackware - Installation 8 05-30-2006 08:35 PM
Slackware Installation - Partitions! dodz Linux - Newbie 1 05-31-2004 10:07 PM
slackware partitions mortal Slackware - Installation 2 03-16-2004 08:04 PM
Slackware and old partitions celticselph Linux - Newbie 20 03-16-2004 06:26 AM
Partitions for slackware installation Ed-Slack Slackware 13 01-01-2003 08:03 PM

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

All times are GMT -5. The time now is 11:53 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
Open Source Consulting | Domain Registration