LinuxQuestions.org
Help answer threads with 0 replies.
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 02-24-2014, 10:27 AM   #1
danielxs
Member
 
Registered: Feb 2014
Posts: 44

Rep: Reputation: Disabled
slackware reinstall lilo


Hi there! In my laptop I have windows 7 and slackware installed, and today I crashed my windows boot partition. So I decided to fix it from linux but I also crashed lilo boot manager. Now I managed to repair the windows boot sector with an install dvd, but now I only have windows 7 on boot. Is there a way to reinstall lilo so I can have back both systems at start up?

Last edited by danielxs; 02-24-2014 at 02:15 PM.
 
Old 02-24-2014, 10:34 AM   #2
fatalfrrog
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 57

Rep: Reputation: 31
You can chroot into your Slackware installation and reinstall lilo from there. You can use the Slackware install media to do this, or just about any live system out there.
 
Old 02-24-2014, 10:38 AM   #3
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368
You should be able to boot from the Slackware install disc, chroot in and re-run lilo. That should be enough to reinstall it to the mbr.

//edit: gazumped...

Last edited by cynwulf; 02-24-2014 at 10:39 AM.
 
Old 02-24-2014, 11:58 AM   #4
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 498

Rep: Reputation: 174Reputation: 174
I was actually just reading about this today, the link on slackdocs is here:

http://docs.slackware.com/howtos:sla...oot_from_media
 
Old 02-24-2014, 12:14 PM   #5
danielxs
Member
 
Registered: Feb 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
Thank you rkfb! In fact I was doing chroot procedure for the first time and it's very cool. I followed commands from this link: https://wiki.archlinux.org/index.php/Change_Root I thought archlinux is very symilar with slackware. The point is I couldn't succeed to reconfigure lilo, though I changed /etc/lilo.conf "boot = /dev/sdax" becouse this is what I changed when I crashed lilo. I executed "lilo" command and I had 3 warnings. After reboot, windows started again. I think I will follow the chroot instructions from your link since my system is not arch, but slackware.

Last edited by danielxs; 02-24-2014 at 02:16 PM.
 
Old 02-24-2014, 12:41 PM   #6
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
When on slackware chroot run "pkgtool" and re-run the lilo script, it will reinstall it on the MBR. Then, re-run the lilo commands.
 
Old 02-24-2014, 12:48 PM   #7
danielxs
Member
 
Registered: Feb 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
I have this warnings: "LBA32 addressing assumed"; "Unable to determine video adapter in use in the present system."; Video adapter does not support VESA BIOS extensions needed for display of 256 colors. Boot loader will fall back to TEXT only operation." I had this 3 warnings before, and lilo didn't start. My boot partition is /dev/sda7 ext 4 but windows mbr is in /dev/sfa1 which is ntfs. In lilo.conf I choose /dev/sda7 for boot. What should I do?

Last edited by danielxs; 02-24-2014 at 01:42 PM.
 
Old 02-24-2014, 01:05 PM   #8
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: Slackware64-current
Posts: 167

Rep: Reputation: 39
Quote:
Originally Posted by danielxs View Post
I have this warnings: "LBA32 addressing assumed"; "Unable to determine video adapter in use in the present system."; Video adapter does not support VESA BIOS extensions needed for display of 256 colors. Boot loader will fall back to TEXT only operation." I had this 3 warnings before, and lilo didn't start. My boot partition is /dev/sda7 ext 4 but windows mbr is in /dev/sfa1 which is ntfs. In lilo.conf I choose /dev/sda7 for boot. Do I have to format that partition as boot again? What shoul I do?
I also get those 3 errors every time I install lilo from chroot. Is your Slack boot partition marked active?
 
Old 02-24-2014, 01:08 PM   #9
danielxs
Member
 
Registered: Feb 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
Thanks a lot moisespredo. I had no ideea I could install scripts when chroot with pkgtool. Everything it's back to normal now. Thanks again to everyone who answered me in this thread. Now I learned a few new tricks

Last edited by danielxs; 02-24-2014 at 01:10 PM.
 
Old 02-24-2014, 01:18 PM   #10
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
You are welcome
 
Old 02-24-2014, 01:48 PM   #11
danielxs
Member
 
Registered: Feb 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
@JackHair By the way after repairing lilo from chroot--->pkgtool. I looked at /etc/lilo.conf file and the correct boot path is /dev/sda. I belive if I would have tryed to change it for the first time when I executed "lilo" maybe I would have got the same result... I don't know, but executing the lilo install script from pkgtool, I belive it's the right choice.

Last edited by danielxs; 02-24-2014 at 01:50 PM.
 
Old 02-24-2014, 01:50 PM   #12
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Windows repair thing probably erased lilo off MBR so re-running the script was needed.
 
Old 02-24-2014, 02:06 PM   #13
danielxs
Member
 
Registered: Feb 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by moisespedro View Post
Windows repair thing probably erased lilo off MBR so re-running the script was needed.
I'm sure of that, becouse I had this problem before and I was reading somewhere, that windows interpret every linux boot manager as a virus.
But I think I had to do it that way, in order not to lose windows system. So I tryed to "fix" windows boot loader from linux and that's how I crashed lilo and the only solution for me was to repair windows boot loader with windows install dvd, and after that.... your solution Thanks again.

Last edited by danielxs; 02-24-2014 at 02:08 PM.
 
Old 02-25-2014, 08:19 AM   #14
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: Slackware64-current
Posts: 167

Rep: Reputation: 39
Quote:
Originally Posted by danielxs View Post
@JackHair By the way after repairing lilo from chroot--->pkgtool. I looked at /etc/lilo.conf file and the correct boot path is /dev/sda. I belive if I would have tryed to change it for the first time when I executed "lilo" maybe I would have got the same result... I don't know, but executing the lilo install script from pkgtool, I belive it's the right choice.
I never use pkgtool to install lilo, don't want to install lilo on /dev/sda (my Windows drive). I do it by hand after pkgtool finished it's job. I have lilo installed on the MBR of /dev/sdd.

Quote:
Originally Posted by danielxs View Post
I'm sure of that, becouse I had this problem before and I was reading somewhere, that windows interpret every linux boot manager as a virus.
But I think I had to do it that way, in order not to lose windows system. So I tryed to "fix" windows boot loader from linux and that's how I crashed lilo and the only solution for me was to repair windows boot loader with windows install dvd, and after that.... your solution Thanks again.
This is the reason I do the above.

Last edited by JackHair; 02-25-2014 at 08:20 AM.
 
Old 02-25-2014, 10:39 AM   #15
danielxs
Member
 
Registered: Feb 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
@JackHair I tryed to install lilo without using pkgtool but I failed. I think it requires advanced knowledge or something, but don't be so harsh, after all when a beginner first install slackware will also install lilo in mbr.. /dev/sda by default, and until I crushed windows boot loader with some kind of antyspyware application I had no problem booting in both systems. Even though, with a crushed windows I could have boot slackware. So, if it works and if the team who develop the way to install lilo in slackware in /dev/sda think it's ok, then it's ok for a beginner like me either. I don't know if it counts but my windows boot partition is /dev/sda1 and lilo is installed in partition table /dev/sda. Perhaps there is a difference.

Last edited by danielxs; 02-25-2014 at 12:01 PM.
 
  


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
[SOLVED] How to run lilo from install dvd to reinstall lilo to MBR? timetraveler Slackware - Installation 5 04-28-2010 02:48 PM
Reinstall Slack's LILO after WIndows XP reinstall __spc__ Linux - Newbie 3 02-15-2009 10:04 AM
Slackware 11.0 How to reinstall LILO epicmove Slackware 2 08-20-2007 08:21 AM
how to reinstall lilo with installation cd {slackware 11}? lilili Linux - Newbie 1 02-03-2007 09:25 PM
LILO Reinstall Stephanie Linux - General 2 08-23-2001 11:49 AM

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

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