LinuxQuestions.org
Help answer threads with 0 replies.
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 08-20-2009, 07:25 AM   #1
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Rep: Reputation: 33
Installing Slackware 64 and adding it to Grub.


Hello!

My home computer (desktop) has winxp and Debian Lenny installed on a sata HD. Grub is the bootloader and resides in MBR.

Now, I would like to install Slackware 64 on my second sata HD to give it a try (I've already used Slackware 12.1 but 32 bits version).

What should I do to install Slackware 64 on the second hard disk and then add it to my Grub bootloader keeping my system working properly and being able to choose to boot into winxp; debian and slackware 64? What would you recommend?

Thanks in advance,
Glore2002.-

Last edited by glore2002; 08-20-2009 at 07:26 AM.
 
Old 08-20-2009, 07:43 AM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Whatever you do do not install Slackware64 with an ext4 filesystem as your installation with grub will be unable to boot it. When you get to the bit to install lilo, ignore it. Then just edit your /boot/grub/menu.lst to add a stanza. Mine is like this
Code:
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'.  Sat Feb 14 23:27:54 2009
#
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.4045'.  You can restore it like this.
# dd if=mbr.sda.4045 of=/dev/sda bs=512 count=1
#
# Start GRUB global section
timeout 5
#color light-gray/blue black/light-gray
# End GRUB global section
# Linux bootable partition config begins
  title Slackware
  root (hd0,0)
  kernel /boot/vmlinuz root=/dev/sda1 ro vga=normal
  initrd /boot/initrd.gz
# Linux bootable partition config ends
# Linux bootable initrd config begins
  title Slackware64-Current
  root (hd0,2)
  kernel /boot/vmlinuz root=/dev/sda3 ro vga=normal
  initrd /boot/initrd.gz
# Linux bootable initrd config ends
title --- For help press 'c', type: 'help'
root (hd0)
title --- For usage examples, type: 'cat /boot/grub/grub.txt'
root (hd0)
Hope this helps.

samac
 
Old 08-20-2009, 10:24 AM   #3
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Original Poster
Rep: Reputation: 33
Thanks for your reply samac!

So, I will choose ext3 as the filesystem and will create three partitions on my second HD:

/
/SWAP
/home

Once I did this, I will boot into Debian and modify Grub to add Slackware as a new stanza.

So. What should I do to get the HD info to point at where slackware is installed? fdisk -l?

Thanks again
Glore2002.-
 
Old 08-20-2009, 10:44 AM   #4
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
It will probably be sdb1 and if you only use one system at a time you could share lenny's swap partition.

samac
 
Old 08-20-2009, 03:55 PM   #5
tangyorangesour
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by samac View Post
Whatever you do do not install Slackware64 with an ext4 filesystem as your installation with grub will be unable to boot it. When you get to the bit to install lilo, ignore it. Then just edit your /boot/grub/menu.lst to add a stanza. Mine is like this
Code:
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'.  Sat Feb 14 23:27:54 2009
#
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.4045'.  You can restore it like this.
# dd if=mbr.sda.4045 of=/dev/sda bs=512 count=1
#
# Start GRUB global section
timeout 5
#color light-gray/blue black/light-gray
# End GRUB global section
# Linux bootable partition config begins
  title Slackware
  root (hd0,0)
  kernel /boot/vmlinuz root=/dev/sda1 ro vga=normal
  initrd /boot/initrd.gz
# Linux bootable partition config ends
# Linux bootable initrd config begins
  title Slackware64-Current
  root (hd0,2)
  kernel /boot/vmlinuz root=/dev/sda3 ro vga=normal
  initrd /boot/initrd.gz
# Linux bootable initrd config ends
title --- For help press 'c', type: 'help'
root (hd0)
title --- For usage examples, type: 'cat /boot/grub/grub.txt'
root (hd0)
Hope this helps.

samac
I've a settings for Slackware 12.2 and cannot see the initrd.gz file under /boot. So I end up using the huge kernel image.
Could you please tell me, where and how I can get the initrd.gz file.

I dual boot Fedora 11 and Slackware 12.2 from GRUB.
Thank you.
 
Old 08-20-2009, 04:30 PM   #6
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Quote:
I've a settings for Slackware 12.2 and cannot see the initrd.gz file under /boot. So I end up using the huge kernel image.
Could you please tell me, where and how I can get the initrd.gz file.
You only need an initrd.gz if you are using the generic kernel rather than the huge kernel (it is expected that you change to the generic kernel after installation). You need to read README.initrd in the root directory of your installation cd, the entire process is discussed there.

samac
 
Old 08-20-2009, 04:43 PM   #7
byzkarl
LQ Newbie
 
Registered: Jul 2009
Distribution: Slackware, Ubuntu
Posts: 20

Rep: Reputation: 3
I've found it easier to let Slackware install lilo in the partition I have Slackware installed. Then, I just add a

title Slackware
chainloader(hdx,y)+1

to grub's menu.lst file, where x and y are the hard-drive and partition identifiers. That way, when and if I upgrade the kernel in Slackware, I don't need to re-edit the menu.lst file in Grub.

At least, it works for me. I dual boot Ubuntu and Slackware.
 
Old 08-20-2009, 11:59 PM   #8
tangyorangesour
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by samac View Post
You only need an initrd.gz if you are using the generic kernel rather than the huge kernel (it is expected that you change to the generic kernel after installation). You need to read README.initrd in the root directory of your installation cd, the entire process is discussed there.

samac
Thank you samac, I'll definitely look into it.
 
Old 08-21-2009, 12:28 AM   #9
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
If your root partition is the 1st partition on the 2nd drive then something like this will work.

SATA Drives

title Slackware64 13.0 (/dev/sdb1)
root (hd1,0)
kernel /boot/vmlinuz root=/dev/sda1 ro vga=normal


IDE Drives

title Slackware64 13.0 (/dev/hdb1)
root (hd1,0)
kernel /boot/vmlinuz root=/dev/hda1 ro vga=normal

Here's my menu.lst

# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'. Sat May 16 15:33:42 2009
#
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.7789'. You can restore it like this.
# dd if=mbr.sda.7789 of=/dev/sda bs=512 count=1
#
# Start GRUB global section
timeout 10
default 0
color light-gray/blue black/light-gray
# End GRUB global section

# Linux bootable partition config begins
title Slackware64-Current (/dev/sda5)
root (hd0,4)
kernel /boot/vmlinuz root=/dev/sda5 ro vga=normal
# Linux bootable partition config ends

# Linux bootable partition config begins
title Bluewhite64Current (/dev/sda6)
root (hd0,5)
kernel /boot/vmlinuz root=/dev/sda6 ro vga=normal
# Linux bootable partition config ends

# Linux bootable partition config begins
title Slamd 12.2 (/dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz root=/dev/sda7 ro vga=normal
# Linux bootable partition config ends

# Linux bootable partition config begins
title Bluewhite 12.2 (/dev/sda8)
root (hd0,7)
kernel /boot/vmlinuz root=/dev/sda8 ro vga=normal
# Linux bootable partition config ends

title --- For help press 'c', type: 'help'
root (hd0)
title --- For usage examples, type: 'cat /boot/grub/grub.txt'
root (hd0)



The grub from Slack-Current will boot ext4 partitions.

ftp://slackware.mirrors.tds.net/pub/...nt/extra/grub/


Hope this helps.

Last edited by slackass; 08-21-2009 at 12:30 AM.
 
Old 08-23-2009, 08:30 AM   #10
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by byzkarl View Post
I've found it easier to let Slackware install lilo in the partition I have Slackware installed. Then, I just add a

title Slackware
chainloader(hdx,y)+1

to grub's menu.lst file, where x and y are the hard-drive and partition identifiers. That way, when and if I upgrade the kernel in Slackware, I don't need to re-edit the menu.lst file in Grub.

At least, it works for me. I dual boot Ubuntu and Slackware.
Thanks! I will try this approach first. What filesystem have you chosen for Slackware to be able to chainload from Grub?
 
Old 08-24-2009, 12:57 PM   #11
byzkarl
LQ Newbie
 
Registered: Jul 2009
Distribution: Slackware, Ubuntu
Posts: 20

Rep: Reputation: 3
I use ext3 for my Slackware, but I boot into ext4 for Ubuntu, so it seems modern grubs can do it. I'm afraid I don't know what's involved in putting Slackware into an ext4 partition.

Good luck!
 
  


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
Installing Grub from Slackware DVD djre Linux - Newbie 3 11-01-2007 09:29 PM
Installing GRUB - Slackware 10.2 BlueSpirit Linux - Software 7 07-30-2006 10:00 PM
Installing OS/2 Warp on my system and adding it to GRUB mechanical-nucleus Linux - General 5 06-18-2005 07:38 AM
Adding Slackware 10 to Grub RoaCh Of DisCor Slackware 9 10-25-2004 02:00 PM
Adding Slackware to GRUB jturnbul Slackware 14 09-15-2004 03:48 PM

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

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