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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-25-2004, 06:05 AM
|
#1
|
Member
Registered: Jun 2004
Distribution: Slack
Posts: 214
Rep:
|
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.
|
|
|
11-25-2004, 08:03 AM
|
#2
|
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024
Rep:
|
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.
|
|
|
11-25-2004, 08:12 AM
|
#3
|
Member
Registered: Jun 2004
Distribution: Slack
Posts: 214
Original Poster
Rep:
|
So if the only OS I have installed is Linux then placing LILO onto the MBR isn't really a problem?
|
|
|
11-25-2004, 08:19 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
11-25-2004, 08:36 AM
|
#5
|
Member
Registered: May 2004
Distribution: Ubuntu
Posts: 583
Rep:
|
it's basically there as a disclaimer
|
|
|
11-25-2004, 08:47 AM
|
#6
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
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
|
|
|
11-25-2004, 09:48 AM
|
#7
|
Member
Registered: Jun 2004
Distribution: Slack
Posts: 214
Original Poster
Rep:
|
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.
|
|
|
11-25-2004, 09:54 AM
|
#8
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
" dd if=/dev/zero of=/dev/hda bs=512 count=1 "
looks like a bad joke .
but you solved it now eh...
egag
|
|
|
11-25-2004, 10:04 AM
|
#9
|
Member
Registered: Jun 2004
Distribution: Slack
Posts: 214
Original Poster
Rep:
|
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
|
|
|
11-25-2004, 10:52 AM
|
#10
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|