-
install MBR with GRUB from Knoppix
Hi All,
Have a test box that I'm trying to recover. RHEL 4 with 4 SCSI drives.
/dev/sda1 is the /boot
/dev/sda2 is swap
/dev/sda3 is part of the software raid
The other drives contain swap and software raid partitions.
Software raid is /dev/md0
In my test I'm failing sda3 with mdadm, as if I have lost the whole drive and then booting in with Knoppix to save the day
Next I rebuild the partitions, format the /dev/sda1 and copy the /boot info back to /dev/sda1 from backup copy I have on CD. Next I want to redo the MBR on /dev/sda, this is where I'm getting stuck on grub syntax.
I need to tell grub about the location of /boot which is /dev/sda1, not sure how this is done from a Knoppix boot.
Any Ideas Welcome!
Joe
-
I need to tell grub about the location of /boot which is /dev/sda1, not sure how this is done from a Knoppix boot.
add the option 'fromhd=/dev/sda1'
see /cdrom/knoppix/cheatcodes.txt for all the codes.
-
Ok, not sure what thats supposed to do. /dev/sda1 is my /boot directory, does this use the info in the /boot?
knoppix fromhd=/dev/sda1 Boot from previously copied CD-Image

Originally Posted by
Zrebel
I need to tell grub about the location of /boot which is /dev/sda1, not sure how this is done from a Knoppix boot.
add the option 'fromhd=/dev/sda1'
see /cdrom/knoppix/cheatcodes.txt for all the codes.
-
Sorry, just use the install scripts that come with the distro, 'knoppix-installer' as root.
-
Administrator
Site Admin-

Originally Posted by
Zrebel
Sorry, just use the install scripts that come with the distro, 'knoppix-installer' as root.
The very last thing I would consider doing if I was trying to recover a system would be run the Knoppix installer.
-
Senior Member
registered user
-
I cannot 'chroot' because the / (root) partition is part of /dev/md0 (raid 5). I can mount the /dev/sda1 which contains /boot .
I'm running this test on RHEL 4 32 bit and I have made a boot disk with mkbootdisk command, using the boot disk you can run grub and get everything back to normal on the new /dev/sda/ disk. But the real server is RHEL 4 64 bit and the mkbootdisk command is not available So trying to recover some other way on the test box without a RHEL 4 boot disk.
When I first started this little test I made a copy of the MBR, I've been trying to re-install the MBR with:
dd if=MBRbackup.bin of=/dev/sda bs=512 count=1
It runs fine, but GRUB does not boot the system. I get the "Error 15"
I don't know, just seems to be little gotchas no matter which way I go.
Thanks,
Joe
-
Yea were not going to do that 

Originally Posted by
Harry Kuhman

Originally Posted by
Zrebel
Sorry, just use the install scripts that come with the distro, 'knoppix-installer' as root.
The very last thing I would consider doing if I was trying to recover a system would be run the Knoppix installer.
Similar Threads
-
By Sprok in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 04-10-2007, 01:31 AM
-
By bloomingeek in forum Hdd Install / Debian / Apt
Replies: 5
Last Post: 12-09-2005, 09:51 AM
-
By cykick in forum General Support
Replies: 2
Last Post: 06-03-2004, 06:20 PM
-
By mike22 in forum Hdd Install / Debian / Apt
Replies: 6
Last Post: 04-10-2004, 10:58 AM
-
By mike22 in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 03-24-2004, 08:22 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

DEC PDP-11/34 Front Panel Complete PDP11 RARE
$450.00

Vintage Intel Mainframe Server MCM CPU Substrate Lot Prototyping PGA Validation
$500.00

HP 13210-60001 Disc Drive Interface PCB HP 7900A 7901A Vintage
$225.61

HP 5060-8359 8K Semiconductor Memory Module 5080-9747 Vintage HP Computer
$224.72

Vtg IBM Mainframe Prototype Chip Module Lot 146 pc 1988-1993 ES/9000 Lab Arcive
$649.00

Rare Vintage Mainframe Burroughs Discrete-Transistor Cordwood Module B2500/B5000
$99.95

Vintage Mainframe Computer Disk Drive Pack Dyson SMD 5 Level Disks
$79.00

Commodore 64 PC with Model 1541 Diskette Drive and Flight Simulator II *READ*
$199.99

Vintage Telex 952003-112 Mechanical Terminal Keyboard IBM 3270 Mainframe DB25
$799.00

IBM 3274-51C Controller 3270 mainframe 8" floppy tested to power on
$500.00