Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: Roman777 27 Října 2010, 20:11:11
-
zformatil jsem disk, nainstalil ubuntu 10.10. a dnes jsem na prazdny oddil nainstalil win7 - myslel jsem, ze mi to udela takovou tu obrazovku kde si muzu vybrat system, ale ten hajzlik to prepsal a win 7 se automaticky spousti po startu
dotaz zni - jak se da udelat spousteci vyber naisntalovanych ubuntu a win7? - rad bych mel defaultne ubuntu (napriklad kdyz do 5ti sekund nestisknu nejakou klavesu)
Dik
-
pravdepodobne mate prepsany zavadec - zkuste obnoveni GRUB2 z http://wiki.ubuntu.cz/GRUB2
(http://wiki.ubuntu.cz/GRUB2)
-
Tohle jste zkoušel? http://wiki.ubuntu.cz/GRUB/Obnova
-
Pozor grub(grub1) je uz neplatny. Plati navod od jmp.(grub2)
-
Rovnou Grub2 nainstalujte po kroku "chroot", v návodu nainstalit "grub-install /dev/sda".
-
ja se v tech navodech moc nevyznam - prosim zkouknete to - vyhazelo mi to nejake chyby....
ubuntu@ubuntu:~$ sudo grub
Probing devices to guess BIOS drives. This may take a long time.
[ 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
find /boot/grub/stage1
Error 15: File not found
grub> ^C
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x79a079a0
Device Boot Start End Blocks Id System
/dev/sda1 1 15802 126923777 5 Extended
/dev/sda2 15802 28550 102400000 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 * 28550 35089 52524032 7 HPFS/NTFS
/dev/sda4 35089 38914 30720000 7 HPFS/NTFS
Partition 4 does not end on cylinder boundary.
/dev/sda5 1 14590 117186560 83 Linux
/dev/sda6 14590 15802 9736192 82 Linux swap / Solaris
ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt
mount: you must specify the filesystem type
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
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:/# nano /etc/default/grub
tady jsem nevedel co zmenit, tak jsem v tom souboru nic nemenil----
root@ubuntu:/# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
grep: /proc/mounts: No such file or directory
Cannot find list of partitions!
done
root@ubuntu:/# grub-install /dev/sda5
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea..
/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 their use is discouraged..
/usr/sbin/grub-setup: error: if you really want blocklists, use --force.
root@ubuntu:/# grub-install --recheck /dev/sda5
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea..
/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 their use is discouraged..
/usr/sbin/grub-setup: error: if you really want blocklists, use --force.
root@ubuntu:/#
po restartu nabehl zase windows....
-
pokud by nahodou chtel nekdo pomoct, tak jsem porad tady ;)
Diky
-
Kdybych byl úplně zmatený a nevěděl si jinak rady, tak bych docela klidně to Ubuntu nainstaloval znovu :) . Koneckonců funkční Win7 na disku už je a Ubuntu na rozdíl od Win7 nabídne při instalaci možnost manuálně pracovat s oddíly na disku, tak ty staré jednoduše zruším a na jejich místě vytvořím nové. Bude to asi rychlejší než tápat v něčem neznámém. Jen je třeba dát si pozor, kde se má umístit zavaděč. Vim, tahle rada je příliš jednoduchá ale je fakt účinná.
Prostě, když si nejsem jistý , tak nejprve vždy nainstaluji Win a teprve pak Ubuntu .
-
ja bych to taky tak udelal, ale mam tam nekolikadenni praci (nastavovani prostredi, nastaveni emailu atp...) - nerad bych to nastavoval znovu - radsi zda neni neco jak ten spoustec "opravit"
-
patrne to bude chtit
sudo grub-install /dev/sda a ne sudo grub-install /dev/sda5 (tedy zapsat zavadec do MBR
-
super, diky funguje ;)