| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 102565 | 2009-08-24 08:44:00 | Grub | rumpty (2863) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 803820 | 2009-08-24 08:44:00 | I'm at the point of rearranging the hard drives, doing away with one at least, in my Linux/Windows multi-boot computer. Assuming booting back into Ubuntu is achieved, what command can I give to make Grub look around at the rearrangement, so that it will rewrite the menu.lst file? Thanks. |
rumpty (2863) | ||
| 803821 | 2009-08-24 08:50:00 | It is a text file so you can just edit it. Not knowing the HD and OS arrangement it is hard to truly help. | mikebartnz (21) | ||
| 803822 | 2009-08-24 09:06:00 | I have indeed edited it in the past. Just thought that the manual procedure could be replaced by telling Ubuntu to repeat whatever Grub does "by itself" during the original OS installation. | rumpty (2863) | ||
| 803823 | 2009-08-24 10:38:00 | What it does 'by itself' is 'grub-install <boot drive device node>', but if you're moving drives around simply running it again could break things, as it'll use the old drive mapping file - you really need to tell us what you're doing with them before we can be of any help. | Erayd (23) | ||
| 803824 | 2009-08-24 10:42:00 | If Im correct grub is the boot loader for Ubuntu. To modify menu.1st you need to be in Ubuntu (chicken egg situation I think) If you get caught like this then you'll have to use grubs limited editing facility which is ( like )editing a text file. I hope you know your HDAs from SDAs etc |
beama (111) | ||
| 803825 | 2009-08-24 12:00:00 | If Im correct grub is the boot loader for Ubuntu. To modify menu.1st you need to be in Ubuntu (chicken egg situation I think) If you get caught like this then you'll have to use grubs limited editing facility which is ( like )editing a text file. I hope you know your HDAs from SDAs etc Grub is a boot loader and most Linux distributions use it. I wish Grub would make a backup of the MBR like Lilo. You can boot from any Linux live cd and edit menu.1st. PCLinuxOS live cd has a way for redoing grub. Grubs limited editing facility is more like using Edlin from the old MSDOS days. |
mikebartnz (21) | ||
| 803826 | 2009-08-24 12:59:00 | You can easily back up the boot sector yourself using something like the following (run as root): dd bs=512 count=1 if=/dev/sda of=bootsectorbackup.imgThis assumes that your boot drive is /dev/sda. WARNING: BE *VERY* CAREFUL WITH DD!!! Used incorrectly, it can completely hose your system. |
Erayd (23) | ||
| 803827 | 2009-08-24 13:18:00 | You can easily back up the boot sector yourself using something like the following (run as root): dd bs=512 count=1 if=/dev/sda of=bootsectorbackup.imgThis assumes that your boot drive is /dev/sda. WARNING: BE *VERY* CAREFUL WITH DD!!! Used incorrectly, it can completely hose your system. Thanks Erayd PCLinuxOS still uses hda while Fedora uses sda. Do you know why they changed to sda from hda. |
mikebartnz (21) | ||
| 803828 | 2009-08-24 13:30:00 | Thanks Erayd PCLinuxOS still uses hda while Fedora uses sda. Do you know why they changed to sda from hda. It's due to a change in the way the kernel manages them - both ATA and SCSI devices are now managed under a new, unified driver stack. Whether or not you enable this is an option at compile-time. If you don't compile your own kernels, you don't need to worry about it - they both work :). [Edit: And for the purposes of this post, SATA drives are considered to be SCSI ones.] |
Erayd (23) | ||
| 803829 | 2009-08-24 14:11:00 | [Edit: And for the purposes of this post, SATA drives are considered to be SCSI ones.] However for the purposes of plugging 'em in, they ain't. ;) |
R2x1 (4628) | ||
| 1 2 | |||||