Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: gogo21 15 Listopadu 2010, 12:05:01
-
Pri preinštalovaní WIN, zničilo mi zavádzač Grub2. Opravu som realizoval podľa návodu vo fóre. Výsledok je tento:
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000001
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1346995 58594281 7 HPFS/NTFS
/dev/sda2 1346996 7185514 253975553 5 Extended
/dev/sda5 1346996 2132722 34179072 83 Linux
/dev/sda6 2132745 7140670 217844736 83 Linux
/dev/sda7 7140694 7185514 1949696 82 Linux swap / Solaris
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt/ /dev/sda
/usr/sbin/grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged..
/usr/sbin/grub-setup: error: if you really want blocklists, use --force.
ubuntu@ubuntu:~$
Čo to znamená? Ako postupovať ďalej?
-
navod na wiki si neskusal?
http://wiki.ubuntu.cz/GRUB2#Obnoven.2BAO0_GRUB2_pomoc.2BAO0_LiveCD
-
Skúšal som, výsledok je zatiaľ tento:
ubuntu@ubuntu:~$ sudo mkdir /mnt/dev
mkdir: cannot create directory `/mnt/dev': File exists
ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/dev
ubuntu@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/#
Ako ďalej?
-
Zadal som: nano /etc/default/grub
vypísalo:
GNU nano 2.2.2 Súbor: /etc/default/grub Modifikovaný
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=consoleGNU nano 2.2.2 Súbor: /etc/default/grub $
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GNU nano 2.2.2 Súbor: /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
Tento súbor podľa návodu sa má nastaviť podľa môjho systému, ale neviem ako.
-
tvoj grub konfigurak by mal byt v poriadku, takze by malo stacit instalovat grub do mbr >
grub-install /dev/sda
-
Skúsil som, ale vypisuje toto:
ubuntu@ubuntu:~$ grub-install /dev/sda
cp: cannot create regular file `/boot/grub/915resolution.mod': Permission denied
ubuntu@ubuntu:~$
-
sudo grub-install /dev/sda
-
Ďakujem za opravu, napísalo toto:
ubuntu@ubuntu:~$ sudo grub-install /dev/sda
/usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
No path or device is specified.
Try `/usr/sbin/grub-probe --help' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
ubuntu@ubuntu:~$
Pričom pri pripájaní vypíše toto:
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
mount: /dev/sda5 already mounted or /mnt busy
mount: according to mtab, /dev/sda5 is already mounted on /mnt
-
Dodejte výstup z: http://wiki.ubuntu.cz/DiskDebug