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-01-2015, 07:11 PM   #1
tuubaaku
Member
 
Registered: Oct 2004
Distribution: Slackware, Mint
Posts: 122

Rep: Reputation: 16
re-install lilo - 64-bit system and a 32-bit installer?


I have Slackware64 14.1 installed & working fine. Now, I'm thinking about installing Windows on another partition. Then, as I understand it, after installing Windows, I'll need to use an installer to boot Slackware again, chroot into my existing installation, and re-install lilo, right (so I can boot either one)?

My issue, though, is that I have a 32-bit slackware flash drive. I'm wondering if I could boot off the 32-bit installer, chroot into the 64-bit installation, and run lilo... Or do the architectures have to match when re-installing lilo?

Can anyone affirm that it will or won't work?
 
Old 08-01-2015, 10:39 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

I'm not sure if a usb installer will give you the boot prompt to be able to mnt your linux install.
Most people use a Linux CD.

After you install Windows you should edit your /etc/lilo.conf file and tell LILO about your Windows os.
Than rerun LILO.

http://lateblt.tripod.com/proc10.htm
 
Old 08-02-2015, 12:23 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by tuubaaku View Post
I have Slackware64 14.1 installed & working fine. Now, I'm thinking about installing Windows on another partition. Then, as I understand it, after installing Windows, I'll need to use an installer to boot Slackware again, chroot into my existing installation, and re-install lilo, right (so I can boot either one)?
That could work, but only if architectures match and there is a simpler way (see below).

Quote:
My issue, though, is that I have a 32-bit slackware flash drive. I'm wondering if I could boot off the 32-bit installer, chroot into the 64-bit installation, and run lilo... Or do the architectures have to match when re-installing lilo?

Can anyone affirm that it will or won't work?
That won't work because you can't run 64-bit programs with a 32-bit kernel and libraries.

But there is a simpler way, assuming you have an unused USB stick at hand: make it an emergency boot stick. Just run as root:
Code:
/var/log/setup/setup.80.make-bootdisk
and follow the instructions. Especially, only insert your USB stick when told to do so.

Once it's done:
  • Install Windows.
  • Make sure your firmware is set up for USB boot.
  • Insert your emergency boot stick.
  • Reboot.
  • Press [Enter] when you see the first screen.
  • Edit /etc/lilo.conf, run "lilo -t -v" then if/when all goes well "lilo".
That's all there is to it.

Instead of running directly /var/log/setup/setup.80.make-bootdisk you can do it through pkgtool if you prefer to use a menu.

Warning. The script copies to the USB stick the kernel named /boot/vmlinuz but no initrd. Thus, /boot/vmlinuz should be a symbolic link to a huge kernel, else booting the USB stick will fail.

Last edited by Didier Spaier; 08-04-2015 at 02:45 AM. Reason: Warning added.
 
4 members found this post helpful.
Old 08-02-2015, 01:51 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Nice tip Didier!
Just one small point; that is /var/log/setup/setup.80.make-bootdisk on my setup.
 
1 members found this post helpful.
Old 08-02-2015, 02:42 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Here too

That's fixed now, thanks allend.
 
Old 08-02-2015, 03:06 AM   #6
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
  • Boot the 32-bit media
  • Mount the 64-bit partition on e.g. /mnt
  • /sbin/lilo -C /mnt/etc/lilo.conf
 
2 members found this post helpful.
Old 08-02-2015, 08:41 AM   #7
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by tuubaaku View Post
Now, I'm thinking about installing Windows on another partition.
Make sure that windows does not reformat that partition from MBR to GPT
 
Old 08-02-2015, 01:02 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Thanks Didier Spaier for the short how to.

Good information to have on hand for future installations.:-
 
Old 08-02-2015, 07:51 PM   #9
tuubaaku
Member
 
Registered: Oct 2004
Distribution: Slackware, Mint
Posts: 122

Original Poster
Rep: Reputation: 16
Thank you everyone for taking the time to reply.

I didn't realize it was so easy to create the boot usb - that's helpful to find out.
 
Old 08-03-2015, 07:38 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by tuubaaku View Post
Thank you everyone for taking the time to reply.

I didn't realize it was so easy to create the boot usb - that's helpful to find out.
Did you have success with the boot usb stick?
 
Old 08-03-2015, 07:56 PM   #11
tuubaaku
Member
 
Registered: Oct 2004
Distribution: Slackware, Mint
Posts: 122

Original Poster
Rep: Reputation: 16
Actually, no, I just tried it and had an issue. I ran the script, put in the usb stick, and it completed successfully. I went to test it, though, and had an issue: I got the boot screen, and hit Enter to boot my correct root partition (all good so far). Then, it showed "Loading vmlinuz" - slowly, 5 periods showed up one by one, and then I got a kernel panic and back trace (I couldn't see everything that was output, though).

Any thoughts on why the crash happened? I'm using the generic kernel with an initrd.gz. Or, how can I see the full backtrace when it crashes?
 
Old 08-03-2015, 09:00 PM   #12
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Not sure why it crashed.
Look in the logs and see if there are Warnings or Errors that explain kernel panic.
Look in the dmesg log too.

Here's a link for using backtrace.I've never tried it, sorry.

http://wiki.freepascal.org/Creating_...trace_with_GDB
http://linux.die.net/man/3/backtrace

Last edited by Ztcoracat; 08-03-2015 at 09:03 PM.
 
Old 08-03-2015, 11:13 PM   #13
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by tuubaaku View Post
Any thoughts on why the crash happened? I'm using the generic kernel with an initrd.gz.
That's the reason. This script assumes that /boot/vmlinuz is a huge kernel or a symlink to a huge kernel.

The primary usage of this script is to make a boot stick at time of installation (at the CONFIGURE step) and of course a huge kernel is used at that time as that's what have been just installed.

So, make /boot/vmlinuz a symlink to a huge kernel, then run the script and make your emergency boot stick. After that you can restore /boot/vmlinuz to point to a generic kernel if you prefer. Me, I prefer to write absolute paths in /etc/lilo.conf whenever the stanza mentions an initrd.

PS I have edited my previous post in this thread to mention that.

Last edited by Didier Spaier; 08-04-2015 at 11:34 AM. Reason: PS added.
 
Old 08-04-2015, 06:36 AM   #14
tuubaaku
Member
 
Registered: Oct 2004
Distribution: Slackware, Mint
Posts: 122

Original Poster
Rep: Reputation: 16
Thanks, Didier. I'll give that a try.
 
Old 08-04-2015, 07:48 PM   #15
tuubaaku
Member
 
Registered: Oct 2004
Distribution: Slackware, Mint
Posts: 122

Original Poster
Rep: Reputation: 16
Worked great - thanks!
 
  


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
Is it possible to install 32-bit libraries on a 64-bit system? CamTheSaxMan Linux - Newbie 5 01-11-2014 04:48 PM
[SOLVED] LILO confusion when both 64-Bit and 32-Bit Slackware are installed luvr Slackware 5 09-10-2012 11:27 AM
Not able to launch a 32 bit java installer in 64 bit centos 6.2 Seheri Red Hat 6 03-27-2012 06:56 PM
Not able to launch a 32 bit java installer in 64 bit centos 6.2 Seheri Linux - Newbie 9 03-27-2012 06:29 PM
How to install 32-bit software in 64-bit system jshih Linux - Kernel 5 04-14-2007 12:26 PM

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

All times are GMT -5. The time now is 07:38 AM.

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