LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-18-2005, 09:04 PM   #1
thebored
LQ Newbie
 
Registered: Mar 2005
Posts: 23

Rep: Reputation: 15
Problem reinstalling lilo


I recently installed Solaris on my computer, which already had Windoze Xp and Slackware Linux on it. Solaris overwrote the mbr, and it didn't detect and put linux on the menu. Solaris ended up reacting oddly to my video card, and I want to get my old lilo back. I booted from knoppix and attempted to run /mnt/hdb6/sbin/lilo but it complained about /etc/lilo.conf. I remembered it would look for the lilo.conf relative to / not ./ so I chrooted with chroot /mnt/hdb6/. Now when I run lilo it says
"Fatal: open /dev/hda: Permission denied"
I'm not sure how to go on fromm here. Any help?
 
Old 04-18-2005, 09:41 PM   #2
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
are you running as root and/or did you mount the partition where the kernel is (? /boot maybe)
 
Old 04-18-2005, 09:42 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,873

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
"Fatal: open /dev/hda: Permission denied"

knoppix mounts every partition that it finds as read only. You might try umounting /dev/hda before you chroot. Perhaps before you umount you could list the mounted file systems with the mount command to see what you might have to umount before you chroot.

------------------------
Steve Stites
 
Old 04-18-2005, 11:35 PM   #4
thebored
LQ Newbie
 
Registered: Mar 2005
Posts: 23

Original Poster
Rep: Reputation: 15
The partition with the lilo binary/conf is hdb6 and is mounted at /mnt/hdb6 read/write.

hda isn't mounted anywhere, I have 6 partitions on it. hda1 is mounted read/write, but I did try umounting it though. I just got the same error.

After breezing over the man page for lilo, I found out how to specify a lilo.conf. I tried lilo -C /mnt/hdb6/etc/lilo.conf but I got the following:

/dev/mapper/control: open failed: No such device
Is device-mapper driver missing from kernel?
/dev/mapper/control: open failed: No such device
Is device-mapper driver missing from kernel?
Incompatible libdevmapper 1.00.19-ioctl (2004-07-03)(compat) and kernel driver
Fatal: creat /boot/map~: Read-only file system


Is it safe to assume this is because it is looking for everything relevant to /?
 
Old 04-19-2005, 01:30 AM   #5
thebored
LQ Newbie
 
Registered: Mar 2005
Posts: 23

Original Poster
Rep: Reputation: 15
After doing a little more digging, I found out that sometimes lilo won't overwrite the mbr if it found another lilo there. I don't have lilo installed, but this could be a similar problem. The solution I read was to clean the mbr. So my question is how do I do that without losing data like solutions such as "dd if=/dev/zero of=/dev/hda" lol. So that means no lost partition tables and such. Would "lilo -M" do the trick?
 
  


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
Reinstalling LILO? moosegoose Slackware 5 11-11-2005 02:35 PM
reinstalling lilo bootloader free kevin Linux - Newbie 5 08-02-2004 03:14 PM
reinstalling lilo deft Linux - Software 8 04-08-2004 10:03 AM
LILO reinstalling help Andrew Hruska Slackware 3 01-05-2004 08:53 PM
Having some trouble reinstalling lilo cav Linux - General 3 08-27-2003 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration