Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Instalace, aktualizace a spouštění => Téma založeno: borivoj 03 Září 2011, 17:34:01
-
Pokusím se popsat, co se mi povedlo provést s mým GRUBEM.
Při vytváření nové partyšny došlo k přepsání čísel všech partyšen.
Stáhnul jsem nějaký grub na CD, přez který do systému nabootuju.
Přeinstaloval jsem GRUB, ale jediná změna je, že teď při bootu nedostanu k chybě ale do C command line.
Navíc jsem při přehození čísel partyšen používal Storage Device Manager na automatické mountování disků, jenže sda5, které jsem jím mountoval je nyní swap, který nemohu mountovat a vyvolává mi to chybu kvůli formátu disku. Jelikož je to nyní swap, nemůžu ani jeho mountování v SDM vypnout.
za každou cenu bych se rád vyhnul reinstalaci systemu.
Můžete mi prosím někdo poradit, jak bych měl postupovat?
Předpokládám, že bych se měl nejdříve zbavit toho bordelu po SDM (možná tam toho bude víc), je tedy možné všechno, co jsem jím nastavil manuálně vypnout?
Díky za radu.
jedná se o 11.4
₊ dual boot WIN 7 (to by ale nemělo v tomto případě hrát roli)
-
dej tady vypis
http://wiki.ubuntu.cz/boot_info_script
-
Boot Info Script 0.60 from 17 May 2011
============================= Boot Info Summary: ===============================
=> Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the
same drive in partition #6 for /boot/grub/stage2 and /boot/grub/menu.lst.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD
sda2: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /Windows/System32/winload.exe
sda3: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: neznámý systém souborů „“
sda6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.04
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda7: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda7 starts
at sector 63.
Operating System:
Boot files:
sda8: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda8 starts
at sector 2048.
Operating System:
Boot files:
sda9: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda4 has
30722047 sectors, but according to the info from
fdisk, it has 30943279 sectors.
Operating System:
Boot files: /bootmgr /boot/bcd
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 500,1 GB, 500,107,862,016 bajtů
hlav: 255, sektorů na stopu: 63, cylindrů: 60,801, celkem 976,773,168 sektorů
Jednotky = sektory po 1 * 512 = 512 bajtech
Velikost sektoru (logického/fyzického): 512 bajtů / 512 bajtů
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 2,048 411,647 409,600 7 NTFS / exFAT / HPFS
/dev/sda2 411,648 270,620,671 270,209,024 7 NTFS / exFAT / HPFS
/dev/sda3 270,622,718 945,829,887 675,207,170 f W95 Extended (LBA)
/dev/sda5 270,622,720 280,385,535 9,762,816 82 Linux swap / Solaris
/dev/sda6 280,387,584 475,697,151 195,309,568 83 Linux
/dev/sda7 475,700,778 864,540,849 388,840,072 7 NTFS / exFAT / HPFS
/dev/sda8 885,022,720 945,829,887 60,807,168 7 NTFS / exFAT / HPFS
/dev/sda9 864,554,103 885,020,849 20,466,747 7 NTFS / exFAT / HPFS
/dev/sda4 945,829,888 976,773,167 30,943,280 12 Compaq diagnostics
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 12E8B393E8B37397 ntfs
/dev/sda2 F6D0B591D0B55917 ntfs WIN7
/dev/sda4 CA28C14D28C138E9 ntfs LENOVO_PART
/dev/sda6 eb9f87df-5962-4022-96a8-b267aa177aaa ext4
/dev/sda7 765893E158939F05 ntfs CROSSYSTEM DATA
/dev/sda8 DC128934128914A4 ntfs LENOVO
/dev/sda9 1834FDD85F2CBA70 ntfs WWW
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda6 / ext4 (rw,commit=0)
/dev/sda7 /media/sda7 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda8 /media/sda8 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
=========================== sda6/boot/grub/grub.cfg: ===========================
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos7)'
search --no-floppy --fs-uuid --set=root eb9f87df-5962-4022-96a8-b267aa177aaa
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos7)'
search --no-floppy --fs-uuid --set=root eb9f87df-5962-4022-96a8-b267aa177aaa
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=10
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-11-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos7)'
search --no-floppy --fs-uuid --set=root eb9f87df-5962-4022-96a8-b267aa177aaa
linux /boot/vmlinuz-2.6.38-11-generic root=UUID=eb9f87df-5962-4022-96a8-b267aa177aaa ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-11-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos7)'
search --no-floppy --fs-uuid --set=root eb9f87df-5962-4022-96a8-b267aa177aaa
echo 'Loading Linux 2.6.38-11-generic ...'
linux /boot/vmlinuz-2.6.38-11-generic root=UUID=eb9f87df-5962-4022-96a8-b267aa177aaa ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-11-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos7)'
search --no-floppy --fs-uuid --set=root eb9f87df-5962-4022-96a8-b267aa177aaa
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=eb9f87df-5962-4022-96a8-b267aa177aaa ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos7)'
search --no-floppy --fs-uuid --set=root eb9f87df-5962-4022-96a8-b267aa177aaa
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=eb9f87df-5962-4022-96a8-b267aa177aaa ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos7)'
search --no-floppy --fs-uuid --set=root eb9f87df-5962-4022-96a8-b267aa177aaa
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos7)'
search --no-floppy --fs-uuid --set=root eb9f87df-5962-4022-96a8-b267aa177aaa
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 12E8B393E8B37397
chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda4)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos4)'
search --no-floppy --fs-uuid --set=root CA28C14D28C138E9
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
=============================== sda6/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda7 during installation
UUID=eb9f87df-5962-4022-96a8-b267aa177aaa / ext4 defaults 0 1
# swap was on /dev/sda6 during installation
#UUID=1f419e6e-e176-4378-b069-c13ca552a806 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
/dev/sda5 /media/sda5 ntfs defaults 0 0
/dev/sda8 /media/sda8 ntfs defaults 0 0
/dev/sda7 /media/sda7 ntfs defaults 0 0
--------------------------------------------------------------------------------
=================== sda6: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
165.843349457 = 178.072940544 boot/grub/core.img 1
193.833251953 = 208.126869504 boot/grub/grub.cfg 1
165.843616486 = 178.073227264 boot/grub/stage2 1
136.527343750 = 146.595119104 boot/initrd.img-2.6.38-11-generic 2
134.128906250 = 144.019816448 boot/initrd.img-2.6.38-8-generic 3
135.277652740 = 145.253273600 boot/vmlinuz-2.6.38-11-generic 1
165.850238800 = 178.080337920 boot/vmlinuz-2.6.38-8-generic 1
136.527343750 = 146.595119104 initrd.img 2
134.128906250 = 144.019816448 initrd.img.old 3
135.277652740 = 145.253273600 vmlinuz 1
165.850238800 = 178.080337920 vmlinuz.old 1
========= Devices which don't seem to have a corresponding hard drive: =========
sdb
-
na disku (v mbr) mas nainstalovany stary grub (grub1, legacy), ale konfiguracni soubory na ubuntu oddile (sda6) jsou ke grubu2 (novemu), takze to nefunguje
doporucuji:
nabootovat do livecd a obnovit grub2 podle navodu
http://forum.ubuntu.cz/index.php?topic=42267.0
oddil sda1 v navodu se zmani na sda6 v tvem pripade
pokud se ti pak podari nabootovat do ubuntu, dej pak jeste v terminalu sudo update-grub
dale ti v /etc/fstab chybi swap
zkus to tam doplnit
viz fstab (http://wiki.ubuntu.cz/P%C5%99ipojen%C3%AD%20disku/fstab)
pokud ti to nepujde, dej tady vystup zsudo blkid -c /dev/null
pokud ti nepujde cokolic jineho, dej tu znovu vystup z boot_info_script (pokud se lisi od puvodniho)
-
Díky pomohlo.
grub jsem z live instaloval už předtím, ale se špatným výsledkem. Asi jsem ho omylem nainstaloval na sda6.
na fstab jsem už narazil předtím, ale neměl jsem na něj odvahu.
Tentokrát jsem z něho nejprve smazal komentáře a hned vypadal normálně a ukázalo se, že je to jednodužší, než si namazat chleba máslem.
Já tenhle systém prostě miluju