Fórum Ubuntu CZ/SK
Ostatní => Archiv => Téma založeno: okob 03 Června 2007, 12:04:30
-
Mel jsem nainstalovane XP,rozdelen na 3 casti, 1cast je original se zachranou VIST,2 je moje boot a 3 je odkladaci prostor. Z 2 jsem odelil 15G pro Ubuntu.Nainstaloval Ubuntu a prestali mi chodit XP,startovali ale pak se pc automaticky restartoval.Takze jsem to vzdal.Pocitac mi normalne chodil (Ubuntu) a nainstaloval jsem XP.Snaha obnovit Grub ja marna.Mam sice vyberovou tabulku se systemy ale Ubuntu po spusteni hned nahlasi chybu.Xp jdou jak opet obnovit Ubuntu??? Ubuntu je na sda3,xp sda2 - boot v partitionu je nastaven na sda3(Ubuntu).Nefunguje nemohly byt nejake soubory na sda2 (Xp)???Ja ho zformatoval nez jsem dal Xp znovu.
v partitionu je
/dev/sda2 ntfs /media/disk
/dev/sda3 ext3 /media/disk-1 boot
snaha obnovy
grub> find /boot/grub/stage1
(hd0,2)
grub> root (hd0,2)
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)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,2)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
grub>
Tabulka
+-------------------------------------------------------------------------+
| Ubuntu, kernel 2.6.20-16-generic |
| Ubuntu, kernel 2.6.20-16-generic (recovery mode) |
| Ubuntu, kernel 2.6.20-15-generic |
| Ubuntu, kernel 2.6.20-15-generic (recovery mode) |
| Ubuntu, memtest86+ |
| Other operating systems: |
| Windows NT/2000/XP |
| Microsoft Windows XP Professional |
| |
| |
| |
| |
+-------------------------------------------------------------------------+
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, 'e' to edit the
commands before booting, or 'c' for a command-line.
Chyba po odentrovani - Ubuntu, kernel 2.6.20-16-generic :
Error 17: Cannot mount selected partition
Press any key to continue...
a je to porad dokola.Proste nejde
Jak to vyresit aby mi sel opet MUJ UBUNTU "Help me,please
-
1) Upravil jsem název threadu
2) Dejte sem výpisy
sudo fdisk -l
cat /boot/grub/menu.lst
-
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 1020 8193118+ 12 Compaq diagnostics
/dev/sda2 1021 5895 39158437+ 7 HPFS/NTFS
/dev/sda3 * 5896 7807 15358140 83 Linux
/dev/sda4 7808 14593 54508545 7 HPFS/NTFS
cat /boot/grub/menu.lst -- toto nefunguje jedu z CD Ubuntu
-
Ale do svého nainstalovaného ubuntu se dostanete... Protože si ten můžete připojit...
Tak v něm ten soubor najděte...
-
musel jsem ho najit rucne
#
# Sample boot menu configuration file
#
# Boot automatically after 30 secs.
timeout 30
# By default, boot the first entry.
default 0
# Fallback to the second entry.
fallback 1
# For booting GNU (also known as GNU/Hurd)
title GNU (also known as GNU/Hurd)
root (hd0,0)
kernel /boot/gnumach.gz root=device:hd0s1
module /hurd/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T typed ${root} $(task-create) $(task-resume)
module /lib/ld.so.1 /hurd/exec $(exec-task=task-create)
# For booting GNU/Linux
title GNU/Linux
root (hd1,0)
kernel /vmlinuz root=/dev/hdb1
#initrd /initrd.img
# For booting GNU/kFreeBSD
title GNU/kFreeBSD
root (hd0,2,a)
kernel /boot/loader.gz
# For booting GNU/kNetBSD
title GNU/kNetBSD
root (hd0,2,a)
kernel --type=netbsd /boot/knetbsd.gz
# For booting Mach (getting kernel from floppy)
title Utah Mach4 multiboot
root (hd0,2)
pause Insert the diskette now!!
kernel (fd0)/boot/kernel root=hd0s3
module (fd0)/boot/bootstrap
# For booting FreeBSD
title FreeBSD
root (hd0,2,a)
kernel /boot/loader
# For booting NetBSD
title NetBSD
root (hd0,2,a)
kernel --type=netbsd /netbsd
# For booting OpenBSD
title OpenBSD
root (hd0,2,a)
kernel --type=netbsd /bsd
# For booting OS/2
title OS/2
root (hd0,1)
makeactive
# chainload OS/2 bootloader from the first sector
chainloader +1
# This is similar to "chainload", but loads a specific file
#chainloader /boot/chain.os2
# For booting Windows NT or Windows95
title Windows NT / Windows 95 boot menu
rootnoverify (hd0,0)
makeactive
chainloader +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos
# For installing GRUB into the hard disk
title Install GRUB into the hard disk
root (hd0,0)
setup (hd0)
# Change the colors.
title Change the colors
color light-green/brown blink-red/blue
-
To určitě není vše...
Pokud ano, pak je menu.lst na tom velice špatně...
-
To je bohuzel vse,nic jsem s tim nedelal jen nainstaloval XP s tim ze obnovim grub.Pak tam ma grub-menu.lst a dalsi
napr:
menu.lst_addwindowsentrygrubmenu
menu.lst_displaysplashimagegrub
je jich asi 8 co to naslo menu*.lst
-
to je ze souboru :menu.lst_addwindowsentrygrubmenu
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default optons below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda2 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single
## nonaltoption boot targets option
## This option controls options to pass to only the
## primary kernel menu item.
## You can have ONLY one nonaltoptions line
# nonaltoptions=quiet splash
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## ## End Default Options ##
title Ubuntu, kernel 2.6.10-5-386
root (hd0,1)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot
title Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot
title Ubuntu, kernel memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
savedefault
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows
root (hd0,0)
savedefault
makeactive
chainloader +1
-
Nebude lepsi oba disky zformatovat a nahazet to tam znova vse???Co dat jako prvni XP nebo Ubuntu??Treba neco vymyslite ale myslim ze ten format poskodil ubuntu, ale presto dekuji za kazdou pomoc.
-
Napadá mě jeden postup...
Nevím jestli vyjde...
sudo chroot /dev/sda3
sudo update-grubV tuhle chvíli ani nemůžu zaručit, že to bude vůbec aspoň nějak fungovat...
-
ubuntu@ubuntu:~$ sudo chroot /dev/sda3
chroot: cannot change root directory to /dev/sda3: Not a directory
ubuntu@ubuntu:~$ update-grub
Searching for GRUB installation directory ...
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###
ubuntu@ubuntu:~$
to mi napsalo
-
root@ubuntu:/home/ubuntu# sudo grub
Probing devices to guess BIOS drives. This may take a long time.
root@ubuntu:/home/ubuntu# sudo mkdir /mnt/disk
root@ubuntu:/home/ubuntu# sudo mount /dev/sda3 /mnt/disk
root@ubuntu:/home/ubuntu# sudo chroot /mnt/disk
root@ubuntu:/# grub-install /dev/sda3
/dev/sda3: Not found or not a block device.
root@ubuntu:/#
dalsi pokus omyl
-
Pokud chcete mit widle a ubuntu na jednom hdd, tak doporucuju napred nainstalovat XP, pokud nejsou, dale ve windows v manageru disku rozdelit particny, nechat widle na jedne a zbytek hdd rozdelit na xGB pro ubuntu a tak 1GB na swap. Formatovani uz bude potom zalezitost pri instalaci ubuntu, kde se bude instalovat i zavadec Grub, aby jste mohl bootnout i do widli. Ja mam 50GB plus minus od koupe na Viste a na druhe particne jsem akorat odkrojil 2GB na swap. Instalace easy a system slape, stejne jako Vista, ale abych rekl pravdu, zlate XP...:D
-
Jinak na reinstall, pokud na něj dojde toto:
http://wiki.ubuntu.cz/Pr%C5%AFvodce_instalac%C3%AD
-
Uz jsem to vyresil. Format obou disku a nainstalovani obou systemu znova.Dekuji vsem,ted vse bezi OK