|
|
|
|
|
|
| Author |
Message |
Curt Howland *nix forums Guru Wannabe
Joined: 20 Feb 2005
Posts: 111
|
Posted: Fri Feb 04, 2005 12:30 am Post subject:
"Recovery disk" question
|
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Ok, I intend to use Knoppix as a recovery disk. I know it has tools
like fsck and such, but I have a procedural question:
How do I run "lilo" (if I need to, Cromm forbid) so that the MBR and
boot files on the hard drive are effected, not the CD?
I've never tried to boot from one disk and run "lilo" on the other, I
don't know how to change the perspective of "lilo" to know to look
at /dev/hda1 instead of whatever disk it booted from.
Thanks,
Curt-
- --
September 11th, 2001
The proudest day for gun control and central
planning advocates in American history
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iQEVAwUBQgLLcS9Y35yItIgBAQEidwf/RqgjzgwToY+DNDL86oSKeFNBHfzo/UrG
gP66oBrkGaeD2lRjCSBsq0nQ6bJPX1aqTSpwlM3R0WZx84ewyCCS8x64PTNOTVGQ
KujUdthqL6jbztPrmQrbAUCDt2A3OZp7I5+vwWul318SHv9UdS+KFgw5+nMJ6HDV
91WxnxmjlV9uWoENwQdHoZe8exUNuTg4+eWQ1fMYnqbiUlmh3gbvNdvgGv08fScg
/2nWVsD3ugx3Eem0FY9kZGly2be24Dfl1ZWQXuZBbt3leflrMHODInb0II6RTucW
OE0GD4UUklp70w5yHM9GVEjGptzL7oIFrGGCQ2K8qeJjBp9UfxZP9Q==
=zpPh
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Rich Rudnick *nix forums beginner
Joined: 26 Feb 2005
Posts: 39
|
Posted: Fri Feb 04, 2005 3:00 am Post subject:
Re: "Recovery disk" question
|
|
|
On Thu, 2005-02-03 at 20:09 -0500, Curt Howland wrote:
| Quote: | -----BEGIN PGP SIGNED MESSAGE-----
Ok, I intend to use Knoppix as a recovery disk. I know it has tools
like fsck and such, but I have a procedural question:
How do I run "lilo" (if I need to, Cromm forbid) so that the MBR and
boot files on the hard drive are effected, not the CD?
I've never tried to boot from one disk and run "lilo" on the other, I
don't know how to change the perspective of "lilo" to know to look
at /dev/hda1 instead of whatever disk it booted from.
|
My Seven Steps to Lilo Heaven
(Assuming sarge or later for nano)
1. Boot up knoppix (or any recovery disk) and open a shell.
2. Create a mount point ( `mkdir /repair` )
3. Mount your root partition ( `mount -text3 /dev/hdd2 /repair` for me )
* If /boot and/or /etc are separate partitions, mount them also
( /repair/[ boot|etc ] )
4. Switch to the hard disk installation ( `chroot /repair` )
5. Check for the correct boot files ( `ls /boot` )
6. Check the lilo configuration ( `nano /etc/lilo.conf` )
7. Write the MBR ( `lilo` )
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Jack Nguy *nix forums beginner
Joined: 05 Feb 2005
Posts: 3
|
Posted: Sat Feb 05, 2005 1:40 am Post subject:
Re: "Recovery disk" question
|
|
|
after you rescue root=/dev/hda[xx], I think you can usually run lilo
and have it write to the harddrives MBR. Seems easier that the other
stuff.
Jack Nguy
On Thu, 03 Feb 2005 19:50:50 -0800, Rich Rudnick <nickrud@verizon.net> wrote:
| Quote: | On Thu, 2005-02-03 at 20:09 -0500, Curt Howland wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Ok, I intend to use Knoppix as a recovery disk. I know it has tools
like fsck and such, but I have a procedural question:
How do I run "lilo" (if I need to, Cromm forbid) so that the MBR and
boot files on the hard drive are effected, not the CD?
I've never tried to boot from one disk and run "lilo" on the other, I
don't know how to change the perspective of "lilo" to know to look
at /dev/hda1 instead of whatever disk it booted from.
My Seven Steps to Lilo Heaven
(Assuming sarge or later for nano)
1. Boot up knoppix (or any recovery disk) and open a shell.
2. Create a mount point ( `mkdir /repair` )
3. Mount your root partition ( `mount -text3 /dev/hdd2 /repair` for me )
* If /boot and/or /etc are separate partitions, mount them also
( /repair/[ boot|etc ] )
4. Switch to the hard disk installation ( `chroot /repair` )
5. Check for the correct boot files ( `ls /boot` )
6. Check the lilo configuration ( `nano /etc/lilo.conf` )
7. Write the MBR ( `lilo` )
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
|
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Joe *nix forums Guru Wannabe
Joined: 04 Mar 2005
Posts: 214
|
Posted: Sat Feb 05, 2005 12:10 pm Post subject:
Re: "Recovery disk" question
|
|
|
In message <3uo1G-3wb-11@gated-at.bofh.it>, Jack Nguy
<jack.nguy@gmail.com> writes
| Quote: | On Thu, 03 Feb 2005 19:50:50 -0800, Rich Rudnick <nickrud@verizon.net> wrote:
On Thu, 2005-02-03 at 20:09 -0500, Curt Howland wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Ok, I intend to use Knoppix as a recovery disk. I know it has tools
like fsck and such, but I have a procedural question:
How do I run "lilo" (if I need to, Cromm forbid) so that the MBR and
boot files on the hard drive are effected, not the CD?
I've never tried to boot from one disk and run "lilo" on the other, I
don't know how to change the perspective of "lilo" to know to look
at /dev/hda1 instead of whatever disk it booted from.
My Seven Steps to Lilo Heaven
(Assuming sarge or later for nano)
1. Boot up knoppix (or any recovery disk) and open a shell.
2. Create a mount point ( `mkdir /repair` )
3. Mount your root partition ( `mount -text3 /dev/hdd2 /repair` for me )
* If /boot and/or /etc are separate partitions, mount them also
( /repair/[ boot|etc ] )
4. Switch to the hard disk installation ( `chroot /repair` )
5. Check for the correct boot files ( `ls /boot` )
6. Check the lilo configuration ( `nano /etc/lilo.conf` )
7. Write the MBR ( `lilo` )
after you rescue root=/dev/hda[xx], I think you can usually run lilo
and have it write to the harddrives MBR. Seems easier that the other
stuff.
But that has to be done from the working system. The OP asked how to do |
it from another Linux running on the machine. Lilo can do the chroot
itself (one less man lookup, unless you use chroot often).
From 'man lilo':
-r root-directory
Before doing anything else, do a chroot to the
indicated directory. Used for repairing a setup
from a boot floppy.
Carry out steps 1, 2 and 3 and issue the command (using the example
given):
lilo -r /dev/hdd2/repair
If there is any question of the integrity of the existing boot files or
lilo.conf, Rich's method is slightly easier, but usually you know
they're OK and just need to repair the MBR.
--
Joe
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Rich Rudnick *nix forums beginner
Joined: 26 Feb 2005
Posts: 39
|
Posted: Sat Feb 05, 2005 2:10 pm Post subject:
Re: "Recovery disk" question
|
|
|
On Fri, 2005-02-04 at 21:32 -0500, Jack Nguy wrote:
| Quote: | after you rescue root=/dev/hda[xx], I think you can usually run lilo
and have it write to the harddrives MBR. Seems easier that the other
stuff.
|
I'm assuming you mean booting from a sarge disk for a sarge install, and
I'm sure you're right, but the question was about using knoppix as the
recovery tool. My answer is a procedure that works for knoppix or any
other bootable recovery disk for any installation that's using lilo to
write the MBR.
| Quote: | On Thu, 03 Feb 2005 19:50:50 -0800, Rich Rudnick <nickrud@verizon.net> wrote:
On Thu, 2005-02-03 at 20:09 -0500, Curt Howland wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Ok, I intend to use Knoppix as a recovery disk. I know it has tools
like fsck and such, but I have a procedural question:
How do I run "lilo" (if I need to, Cromm forbid) so that the MBR and
boot files on the hard drive are effected, not the CD?
My Seven Steps to Lilo Heaven
(Assuming sarge or later for nano)
1. Boot up knoppix (or any recovery disk) and open a shell.
|
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Jan 09, 2009 12:49 pm | All times are GMT
|
|
Telecom Expense Management | Mortgage Calculator | 0 Credit Cards | Xbox Mod Chip | Free Advertising
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|