Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: Dub 17 Listopadu 2011, 09:35:04
-
Zdravim,
s linuxem uz mam celkem zkusenosti, ale tohle me celkem zaskocilo. Koupil jsem si ntb Samsung RV520, kde nativne win7, po automaticke instalaci ubuntu "along win7" (soucasny partition manager se mi zdal neprehledny - nemohl jsem v nem vycist, na ktere partitione je win7, ktery chci zachovat, tak protoze to neni podstatne, jsem zvolil auto) a pri startu systemu mi nenajede grub, ale rovnou win7, jako by se nechumelilo. Napadlo me opravit grub pres live cd, ale melo by to smysl, kdyz grub vubec nenabehne? asi ne...
Nejake napady? Snazil jsem se najit podobny dotaz tady na foru, ale nic jsem nenasel, tak se omlouvam, jestli je duplicitni, snahu jsem mel:-)
Btw zpetne jsem koukal na rozcestnik (pro jistotu, hledal jsem nejaky muj fail), ale postupoval jsem evidentne spravne:-)
-
Napadlo me opravit grub pres live cd, ale melo by to smysl, kdyz grub vubec nenabehne? asi ne...
Poznáš, návod je na wiki.
-
A co si pomuzu editaci grubu, kdyz se vubec nespusti? V grubu mam win7 + recovery a timeout defaultne na 10 sec - vsiml bych si, kdyby se pustil pri bootu.
-
Dej tu prosím výstup z boot_info_script (http://wiki.ubuntu.cz/boot_info_script).
-
Boot Info Script 0.60 from 17 May 2011
============================= Boot Info Summary: ===============================
=> Windows is installed in the MBR of /dev/sda.
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: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 2048.
Operating System:
Boot files:
sda6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda7: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda4: __________________________________________________________________________
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
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sda2 206,848 482,551,807 482,344,960 7 NTFS / exFAT / HPFS
/dev/sda3 482,553,854 1,204,058,111 721,504,258 f W95 Extended (LBA)
/dev/sda5 482,553,856 843,305,983 360,752,128 7 NTFS / exFAT / HPFS
/dev/sda6 843,307,008 1,187,323,903 344,016,896 83 Linux
/dev/sda7 1,187,325,952 1,204,058,111 16,732,160 82 Linux swap / Solaris
/dev/sda4 1,204,058,112 1,250,252,799 46,194,688 27 Hidden NTFS (Recovery Environment)
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 20DA2583DA255676 ntfs SYSTEM
/dev/sda2 423411BC3411B43F ntfs
/dev/sda4 3EB42D47B42D034F ntfs SAMSUNG_REC
/dev/sda5 3E76A06976A0239D ntfs
/dev/sda6 cf5fb45a-d50c-426d-8663-5c8f3e6f4302 ext4
/dev/sda7 74470846-1ccd-4d0a-ab53-29871fa1e138 swap
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sda1 /media/SYSTEM fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda2 /media/423411BC3411B43F fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda5 /media/3E76A06976A0239D fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda6 /media/cf5fb45a-d50c-426d-8663-5c8f3e6f4302 ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sda6 /mnt ext4 (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
=============================== StdErr Messages: ===============================
boot_info_script.sh: line 2457: cd: /media/cf5fb45a-d50c-426d-8663-5c8f3e6f4302
/mnt/: No such file or directory
-
A tady je jeste grub.cfg ( zatim bez linuxu, ten tam pridam, az budu vedet, ze to funguje - chci limitovat vytvoreni dalsich chyb pripadnou editaci grubu )
#
# 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 efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root cf5fb45a-d50c-426d-8663-5c8f3e6f4302
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root cf5fb45a-d50c-426d-8663-5c8f3e6f4302
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
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 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root cf5fb45a-d50c-426d-8663-5c8f3e6f4302
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=cf5fb45a-d50c-426d-8663-5c8f3e6f4302 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root cf5fb45a-d50c-426d-8663-5c8f3e6f4302
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=cf5fb45a-d50c-426d-8663-5c8f3e6f4302 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-12-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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root cf5fb45a-d50c-426d-8663-5c8f3e6f4302
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root cf5fb45a-d50c-426d-8663-5c8f3e6f4302
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='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 20DA2583DA255676
chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda4)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos4)'
search --no-floppy --fs-uuid --set=root 3EB42D47B42D034F
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 ###
-
Grub tam nemáš vůbec nainstalovaný.
Nainstaluj ho podle návodu na wiki:
http://wiki.ubuntu.cz/GRUB2#Obnoven.2BAO0_GRUB2_pomoc.2BAO0_LiveCD
Příkazy v tvém případě budousudo mount /dev/sda6 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda
Pozor, sda6 v tvém výpise je připojeno na dvou místech/dev/sda6 /media/cf5fb45a-d50c-426d-8663-5c8f3e6f4302
/dev/sda6 /mnt
to by mohlo dělat neplechu.
-
Diky, problem vyresen. Jen by me zajimalo, jak si s takovouhle instalaci poradi bezni uzivatele, pro ktere je tohle distro urcene... Odklikat auto install zvladne kazdy, ale nainstalovat grub, to nevim :-)
-
Diky, problem vyresen. Jen by me zajimalo, jak si s takovouhle instalaci poradi bezni uzivatele, pro ktere je tohle distro urcene... Odklikat auto install zvladne kazdy, ale nainstalovat grub, to nevim :-)
Buď udělal chybu instalátor, nebo ty. To se ale nestává tak často.
-
Nerikam, ze jsem neomylny, ale hned po tom, co se mi neporadilo nabootovat, jsem mrknul na rozcestnik a projel si instalaci, jestli jsem tam neco nedokonil a evidentne jsem jel presne podle nej :-) Tak diky za pomoc, i kdyz to mozna vypada, ze byla zbytecna v konecnem dusledku, protoze to unity je priserne a po vygoogleni informace, ze se jej nezbavim dvojklikem, jsem se docela zhrozil :-) Chtel jsem fungujici distro a neresit veci typu: v empathy nemam menu, takze jsem na pridani accountu musel vygooglit klav. zkratku F4; pri presunu nainstalovane aplikace z dashe do launcheru se mi nezobrazuje jeji ikona a dalsi veci, ktere by proste standartne fungovat mely.... Kdybych chtel distro na hrani, nainstaluju si debian :-)