LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2004, 06:05 AM   #1
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Rep: Reputation: 30
Why could installing LILO to MBR be unsafe?


Why could installing LILO to the MBR be unsafe? I just had to do it to get Slask to boot and was curious.
 
Old 11-25-2004, 08:03 AM   #2
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Because it will overwrite any other operating system's bootup. In some Linux distributions you have to explicitly tell LILO (or grub) about your windows partition for it to be able to boot into, for others it will automatically check to see if you have windows and add that as an option on the bootup menu.
 
Old 11-25-2004, 08:12 AM   #3
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Original Poster
Rep: Reputation: 30
So if the only OS I have installed is Linux then placing LILO onto the MBR isn't really a problem?
 
Old 11-25-2004, 08:19 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well only as much as messing with the MBR ever is. it's just generally a thing not to be taken lightly, that's all.
 
Old 11-25-2004, 08:36 AM   #5
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
it's basically there as a disclaimer
 
Old 11-25-2004, 08:47 AM   #6
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
When you install lilo, it will put a copy of the overwritten sector in " /boot/boot.nnnn.
( look in your /boot-dir, i have a file /boot/boot.0300 wich is 512 bytes long )
you can restore it by using the " -u " option or copy it with "dd"
( see " man lilo " ).

egag
 
Old 11-25-2004, 09:48 AM   #7
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Original Poster
Rep: Reputation: 30
That makes sense as I was having boot problems and found a posting advising the following:

dd if=/dev/zero of=/dev/hda bs=512 count=1

which completely wiped the boot record.
 
Old 11-25-2004, 09:54 AM   #8
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
" dd if=/dev/zero of=/dev/hda bs=512 count=1 "

looks like a bad joke .
but you solved it now eh...

egag
 
Old 11-25-2004, 10:04 AM   #9
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Original Poster
Rep: Reputation: 30
Worked perfectly. It totally wiped the MBR. I had installed RH and was switching back to Slack, but kept getting GRUB stopping the boot. Apparently RH wrote stuff to the MBR and even deleting all partitions with cfdisk wasn't getting rid of the data. Entering the dd command wiped all the partitions from the disk. Going back into cfdisk and there was just one undefined partition.

Guess it could be a bad joke if you had something to loose
 
Old 11-25-2004, 10:52 AM   #10
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
well...i didn't know what you prob. was before you used the command, but if you
really wanted to clean the mbr..... than it's a good adviice

egag
 
  


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
Open bsd messed up my MBR, problem with installing Slackware lilo klemen Slackware 2 04-06-2005 06:37 AM
Installing winXP on other partition wipes my MBR....i want my lilo back!! theMonkeY Slackware 2 09-22-2004 07:30 AM
will I have any problems installing Lilo into the MBR? Duffy Slackware - Installation 1 09-09-2004 06:49 PM
installing lilo to superblock NOT to mbr hasan Debian 2 01-06-2004 10:37 PM
mbr had over write so lilo is gone how to rewrite lilo to mbr mch Linux - Software 4 10-25-2002 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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