Fórum Ubuntu CZ/SK
Ostatní => Archiv => Téma založeno: Lukáš 06 Května 2007, 14:39:45
-
Zdravim, vim ze se to tu uz mockrat resilo ,ale porad se mi nedari obnovit grub. Zkousel jsem to pomoci navodu na Wiki ale bez uspechu metoda 1 Vypise Error 22: No such partition a metoda 2 Not found or not a block device. Se SGD to taky nejde a kdyz zkusim postup o kterem se pise zde na foru stane se toto:
ubuntu@ubuntu:~$ sudo mkdir /mnt/ubuntu
ubuntu@ubuntu:~$ sudo mount -t ext3 /dev/hda6 /mnt/ubuntu
ubuntu@ubuntu:~$ sudo mount -t proc none /mnt/ubuntu/proc
ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/ubuntu/dev
ubuntu@ubuntu:~$ sudo chroot /mnt/ubuntu /bin/bash
root@ubuntu:/# sudo cp /proc/mounts /etc/mtab
root@ubuntu:/# grub-install --recheck --no-floppy /dev/hda
Probing devices to guess BIOS drives. This may take a long time.
The file /boot/grub/stage1 not read correctly.Jsem si naprosto jist ye je ubuntu nainstalovan na hda6. Nevite nekdo co s tim? :( Diky
-
Zaměřil bych se na tento (http://wiki.ubuntu.cz/Obnova_boot_mana%C5%BEeru_Grub_po_reinstalaci_Windows#head-3c8d4fe76bb0e75b256a374c01fe77b990aad456) návod na wiki - je nejjednodušší.
Projeďte ho ještě jednou a pošlete přesný(!) postup včetně výpisů příkazů, které jste zadával a úplného(!) výpisu chyb (budou-li).
-
Tak tady to je:
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> find /boot/grub/stage1
(hd0,6)
grub> root (hd0,6)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,6)/boot/grub/stage2
/boot/grub/menu.lst"... failed
Error 22: No such partition
grub>
-
dejte sem výpis
sudo fdisk -l
-
A druha metoda:
ubuntu@ubuntu:~$ mkdir /mnt/disk
mkdir: cannot create directory `/mnt/disk': Permission denied
ubuntu@ubuntu:~$ sudo mkdir /mnt/disk
ubuntu@ubuntu:~$ sudo mount /dev/hda6 /mnt/disk
ubuntu@ubuntu:~$ sudo chroot /mnt/disk
root@ubuntu:/# grub-install /dev/hda6
/dev/hda6: Not found or not a block device.A pres SGD mi to take nejde. :( Ale na hda6 se normalne dostanu a ve woknech muzu taky tento linuxacky oddil prohlizet.
-
Zde je vypis:
ubuntu@ubuntu:~$ sudo fdisk -l
omitting empty partition (5)
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/hda2 2551 9728 57657285 f W95 Ext'd (LBA)
/dev/hda3 3826 9728 47415816 7 HPFS/NTFS
/dev/hda5 2551 2639 714829+ 82 Linux swap / Solaris
/dev/hda6 * 2640 3825 9526513+ 83 Linux
ubuntu@ubuntu:~$
-
Ehm...
Tak vyřešeno...
Grub čísluje partition od nuly, je to tedy
hd0,5
(všimněte si, že GRUB čísla oddílů jsou vždy o jedna menší než Linuxová čísla)
To je z wiki...
-
Bohuzel nevyreseno :( (anebo jsem uplne blbej):
grub> root (hd0,5)
grub> setup (hd0)
Error 17: Cannot mount selected partitiona kdyz tam hodim find /boot/grub/stage1 tak mi odpovi ze je to (hd0,6) a potom:
grub> root (hd0,6)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,6)/boot/grub/stage2
/boot/grub/menu.lst"... failed
Error 22: No such partition
-
Co dělám špatně?
-
Pomuze nekdo prosim?
-
To vypada ze oddil s Ubuntu je nejaky vadny. Jde z nej normalne cist a zapisovat na nej z prostredi LiveCD? Jaky je na nem filesystem?
-
Filesystem ext3 zapisovat jde. vážně se mi ale nechce celé to reinstallnout