Re: Pozdrav!
Postano: 25 lip 2010, 14:03
fixmbr
Kod: Označi sve
GNU GRUB ("GRUB" for short) is a boot loader package from the GNU Project. GRUB is the reference implementation of the Multiboot Specification, which allows a user to have several different operating systems on their computer at once, and to choose which one to run when the computer starts.
You can overwrite MBR with standard dd command.
Using Linux
You can also use dd command from Linux itself (it removes partition table):
# dd if=/dev/null of=/dev/sdX bs=512 count=1
Just remove MBR, without the partition table (see comment below):
# dd if=/dev/null of=/dev/sdX bs=446 count=1
Replace /dev/hdX with your actual device name such as /dev/hda. Use fdisk -l command to find out device name:
# fdisk -lOutput:
Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 30384 243955057+ 83 Linux
/dev/sda3 30385 30515 1052257+ 82 Linux swap
Kod: Označi sve
tagove da mogu bolje oznaciti razliku za slucaj da je ipak znacajna.)
Stavio sam LILO, ali opet izbaci ovo:
(LILO:)
[ brojka] Root-NFS: No NFS server available, giving up.
[ brojka] VFS: Unable to mount root fs via NFS, trying floppy.
[ brojka] VFS: Cannot open root device [u]"814"[/u] or unknown-block[u](8,20)[/u] [b]×[/b]
[ brojka] Please append a correct "root=" boot option: here are the available partitions:
[ brojka] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block[u](8,20)[/u] [b]×[/b]
[ brojka] Pid: 1, comm: swapper Not tainted 2.6.32-gentoo-r7 #2
[ brojka] Call Trace:
[ brojka] [<ffffffff81559679>] panic+0x75/0x123
[ brojka] [<ffffffff818d2122>] mount_block_root+0x1ce/0x1e5
[ brojka] [<ffffffff818d21a4>] mount_root+0x6b/0x8b
[ brojka] [<ffffffff818d2334>] prepare_namespace+0x170/0x19d
[ brojka] [<ffffffff818d16ac>] kernel_init+0x19f/0x1af
[ brojka] [<ffffffff8100ca1a>] child_rip+0xa/0x20
[ brojka] [<ffffffff818d150d>] ? kernel_init+0x0/0x1af
[ brojka] [<ffffffff8100ca10>] ? child_rip+0x0/0x20
_
(GRUB:)
[ brojka] Root-NFS: No NFS server available, giving up.
[ brojka] VFS: Unable to mount root fs via NFS, trying floppy.
[ brojka] VFS: Cannot open root device [u]"sda2"[/u] or unknown-block[u](2,0)[/u] [b]×[/b]
[ brojka] Please append a correct "root=" boot option: here are the available partitions:
[ brojka] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block[u](2,0)[/u] [b]×[/b]
[ brojka] Pid: 1, comm: swapper Not tainted 2.6.32-gentoo-r7 #2
[ brojka] Call Trace:
[ brojka] [<ffffffff81559679>] panic+0x75/0x123
[ brojka] [<ffffffff818d2122>] mount_block_root+0x1ce/0x1e5
[ brojka] [<ffffffff818d21a4>] mount_root+0x6b/0x8b
[ brojka] [<ffffffff818d2334>] prepare_namespace+0x170/0x19d
[ brojka] [<ffffffff818d16ac>] kernel_init+0x19f/0x1af
[ brojka] [<ffffffff8100ca1a>] child_rip+0xa/0x20
[ brojka] [<ffffffff818d150d>] ? kernel_init+0x0/0x1af
[ brojka] [<ffffffff8100ca10>] ? child_rip+0x0/0x20
_