Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Instalace, aktualizace a spouštění => Téma založeno: Kasr 05 Června 2010, 18:30:11
-
Momentalne mam disk(systemovy) rozdeleny na 3 particie.Na jednej mam windows(cerstvo kompletne preinstalovany,nastaveny a nainstalovane a nastavene vsetky potrebne programy-nechcem to stratit),Na druhej particii mam ubuntu 10(ktory dokazem spustit iba cez live cd gruber-nepomaha z neho ani opravit grub atd,jedine priamo spustit.Na tretom je swap.Ubuntu sa mi zapacil,takze ho chcem pouzivat,ale rozhodol som sa ho preinstalovat(mam aj ine problemy-napr swap mam zbytocne na 10gb).A teraz otazka-je lepsie instalovat na uz vytvorene particie(aby som zase nemal problemy so spustanim ubuntu),alebo particie vratit k pôvodnemu disku(zostane bez particii iba windows) a particie vytvorit pocas instalacie ubuntu?A ked budem instalovat vedla windows(s vytvorenim novych particii rucne pocas instalacie ubuntu) je riziko,ze znicim windows?A ked budem instalovat na uz vytvorene particie pred instalaciou,co mam robit,aby sa mi mbr spravne prepisala?Lebo podla mna som vsetko urobil spravne,comp sa ma po restarte pytal,ci povolit zmenu v root disku-dal som ano,a grub tam nie je,alebo je poskodeny-live cd grub mi hlasi chybu,ked chcem opravit grub.
-
Ja by som spustil livecd a v system-predvolby-editor particii(gparted) by som odstranil particie(okrem win.). Potom by som vytvoril novu pre swap a / (ubuntu). Spustil by som instalaciu a pri rozdelovani disku by som iba oznacil particie (swap, /). Grub by sa mal pocas instalacie sam spravne nainstalovat a rozpoznat win.
-
Tak ma asi trafi slak.Ubuntu som preinstaloval(aspon som zmensil particiu pre swap),a zase mi nabehne iba windows-ubuntu zase iba s live cd grub-spustit linux priamo.Inac nie.V biose som nastavil postupne vsetky disky na bootovanie,po restarte som v biose hned zakazal virus detekcion(alebo tak niejako),aby nezakazal prepisanie mbr,alebo boot sectoru (predtym som mal povolene,ale po restarte sa ma comp pytal,ci môze prepisat mbr,co som samozrejme povolil).A v boot.ini mam zase iba windows.Ani zmienka o ubuntu.
-
Dáš tady výpis z boot_info_script (http://wiki.ubuntu.cz/boot_info_script)?
-
No tak ten script. A este som sa hral s lilo cez to live cd grub,asi som ho nainstaloval(ani neviem,co to je).Asi som to tym aj skomplikoval.
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #6 for /boot/grub.
=> Windows is installed in the MBR of /dev/sdb
=> Lilo is installed in the MBR of /dev/sdc
sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sdb1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sdc1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM
sdc2: _________________________________________________________________________
File system: Extended Partition
Boot sector type: Windows Vista/7
Boot sector info:
sdc5: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sdc5 starts
at sector 1638506. But according to the info from
fdisk, sdc5 starts at sector 116969265.
Operating System:
Boot files/dirs:
sdc6: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdc7: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sda1 * 63 312,576,704 312,576,642 7 HPFS/NTFS
Drive: sdb ___________________ _____________________________________________________
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdb1 63 312,576,704 312,576,642 7 HPFS/NTFS
Drive: sdc ___________________ _____________________________________________________
Disk /dev/sdc: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders, total 156312576 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdc1 * 63 115,330,634 115,330,572 7 HPFS/NTFS
/dev/sdc2 115,330,759 156,296,384 40,965,626 f W95 Ext d (LBA)
/dev/sdc5 116,969,265 135,813,509 18,844,245 7 HPFS/NTFS
/dev/sdc6 135,813,573 156,296,384 20,482,812 83 Linux
/dev/sdc7 115,330,761 116,969,264 1,638,504 82 Linux swap / Solaris
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda: PTTYPE="dos"
/dev/sda1 348849A18849628A ntfs seagate barracuda 160g
/dev/sdb: PTTYPE="dos"
/dev/sdb1 124844544844392D ntfs maxtor 160g
/dev/sdc: PTTYPE="dos"
/dev/sdc1 18B0C8D4B0C8BA10 ntfs
/dev/sdc2: PTTYPE="dos"
/dev/sdc5 0C6497366497218E ntfs
/dev/sdc6 4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ext4
/dev/sdc7 c9187240-f744-451a-8545-c3b736611419 swap
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sdc6 / ext4 (rw,errors=remount-ro)
================================ sdc1/boot.ini: ================================
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
=========================== sdc6/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
set locale_dir=($root)/boot/grub/locale
set lang=sk
insmod gettext
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
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
echo 'Loading Linux 2.6.32-22-generic ...'
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sdc1)" {
insmod ntfs
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 18b0c8d4b0c8ba10
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 ###
=============================== sdc6/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/sdc6 during installation
UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdc7 during installation
UUID=c9187240-f744-451a-8545-c3b736611419 none swap sw 0 0
=================== sdc6: Location of files loaded by Grub: ===================
76.3GB: boot/grub/core.img
76.7GB: boot/grub/grub.cfg
76.9GB: boot/initrd.img-2.6.32-21-generic
76.9GB: boot/initrd.img-2.6.32-22-generic
76.4GB: boot/vmlinuz-2.6.32-21-generic
76.5GB: boot/vmlinuz-2.6.32-22-generic
76.9GB: initrd.img
76.9GB: initrd.img.old
76.5GB: vmlinuz
76.4GB: vmlinuz.old
-
Potřebuješ nahrát zavaděč Grub do MBR disku /dev/sdc a nastavit v BIOSu bootování z něj.
Je to možné udělat z LiveCD nebo přímo z Ubuntu, návod viz odkaz níže.
Před instalací Grubu se ujisti, že jako sdc je označen disk (opět viz ten návod), který obsahuje Ubuntu, ne některý z těch zbylých dvou.
http://forum.ubuntu.cz/index.php?topic=42267.0
-
No nepodarilo sa.Systemovy disk mam na sdc,linux na sdc6,Pouzil som prikazy
sudo mount /dev/sdc6 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sdc
sudo update-grubPosledny az po restarte-terminal mi zahlasil ok.Potom som restartoval pc a nahlasilo mi error file not found grub rescue.Skusit to este raz?
-
Dej tu znovu výpis z toho skriptu.
-
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #6 for /boot/grub.
=> Windows is installed in the MBR of /dev/sdb
=> Grub 2 is installed in the MBR of /dev/sdc and looks on the same drive in
partition #6 for /mnt/boot/grub.
sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sdb1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sdc1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM
sdc2: _________________________________________________________________________
File system: Extended Partition
Boot sector type: Windows Vista/7
Boot sector info:
sdc5: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sdc5 starts
at sector 1638506. But according to the info from
fdisk, sdc5 starts at sector 116969265.
Operating System:
Boot files/dirs:
sdc6: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdc7: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sda1 * 63 312,576,704 312,576,642 7 HPFS/NTFS
Drive: sdb ___________________ _____________________________________________________
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdb1 63 312,576,704 312,576,642 7 HPFS/NTFS
Drive: sdc ___________________ _____________________________________________________
Disk /dev/sdc: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders, total 156312576 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdc1 * 63 115,330,634 115,330,572 7 HPFS/NTFS
/dev/sdc2 115,330,759 156,296,384 40,965,626 f W95 Ext d (LBA)
/dev/sdc5 116,969,265 135,813,509 18,844,245 7 HPFS/NTFS
/dev/sdc6 135,813,573 156,296,384 20,482,812 83 Linux
/dev/sdc7 115,330,761 116,969,264 1,638,504 82 Linux swap / Solaris
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda: PTTYPE="dos"
/dev/sda1 348849A18849628A ntfs seagate barracuda 160g
/dev/sdb: PTTYPE="dos"
/dev/sdb1 124844544844392D ntfs maxtor 160g
/dev/sdc: PTTYPE="dos"
/dev/sdc1 18B0C8D4B0C8BA10 ntfs
/dev/sdc2: PTTYPE="dos"
/dev/sdc5 0C6497366497218E ntfs
/dev/sdc6 4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ext4
/dev/sdc7 c9187240-f744-451a-8545-c3b736611419 swap
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sdc6 / ext4 (rw,errors=remount-ro)
/dev/sr0 /media/CDROM iso9660 (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)
/dev/sdc1 /media/18B0C8D4B0C8BA10 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sdc5 /media/0C6497366497218E fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sdb1 /media/maxtor 160g fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda1 /media/seagate barracuda 160g fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
================================ sdc1/boot.ini: ================================
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
=========================== sdc6/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
set locale_dir=($root)/boot/grub/locale
set lang=sk
insmod gettext
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
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
echo 'Loading Linux 2.6.32-22-generic ...'
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sdc1)" {
insmod ntfs
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 18b0c8d4b0c8ba10
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 ###
=============================== sdc6/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/sdc6 during installation
UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdc7 during installation
UUID=c9187240-f744-451a-8545-c3b736611419 none swap sw 0 0
=================== sdc6: Location of files loaded by Grub: ===================
76.6GB: boot/grub/core.img
79.3GB: boot/grub/grub.cfg
76.9GB: boot/initrd.img-2.6.32-21-generic
76.9GB: boot/initrd.img-2.6.32-22-generic
76.4GB: boot/vmlinuz-2.6.32-21-generic
76.5GB: boot/vmlinuz-2.6.32-22-generic
76.9GB: initrd.img
76.9GB: initrd.img.old
76.5GB: vmlinuz
76.4GB: vmlinuz.old
-
No uz mi to ide.V biose som nastavil iny disk na startovanie(nechapem,ale obidva systemy-ubuntu aj windows) mam na disku inom(vzdy som mal nastaveny disk 2-aj predtum,ked mi vzdy automaticky spustalo windows).A este-vsetky polozky v startovacom menu grubu mam 2 krat-mam dva gruby?Inac velka vdaka za pomoc.
-
Opravdu tam máš 2x lautr to samé?
-
Ano spustit linux 2krat,spustit linux safe mod 2krat,test pamäte 2krat,spustit windows...Ide odobrat niejako ten druhy grub(alebo obidva a znova namontovat linux,nainstalovat grub a po restarte ho updatovat?
-
Neděláš si ze mě srandu?
Nevypadá to náhodou takto?
Ubuntu, with Linux 2.6.32-22-generic
Ubuntu, with Linux 2.6.32-22-generic (recovery mode)
Ubuntu, with Linux 2.6.32-21-generic
Ubuntu, with Linux 2.6.32-21-generic (recovery mode)
Memory test (memtest86+)
Memory test (memtest86+, serial console 115200)
Microsoft Windows XP Professional (on /dev/sdc1)
-
OK,vypada to takto-som lama,ale preco je linux 2 krat-je jedno,co vyberiem?
-
Někdy se může stát, že po povýšení (upgrade) jádra systému - kernel - dojde k nějaké nefunkčnosti, z různých důvodů. Pak je možno na zkoušku nabootovat do staršího kernelu (pozná se podle pořadového čísla).
-
Jednu vec nedokazem pochopit.Teraz som formatoval particiu s mythbuntu,grub mi nenaskocil(zostalo mi ubuntu a windows,format mythbuntu bola nespravna volba bez dalsich zmien v grube,o com viem dobre),ale po oprave a update grubu som teraz musel nastavit v biose ako startovaci disk disk 2,co som mal pôvodne,ked som mal iba windows,po nainstalovani ubuntu som mal zavadzaci sektor(pripadne grub-nechapem tomu presne na disku 0).Snad instalacia grub hadze na disk od brucha?Takze samotny windows-startovaci disk-2,po instalacii ubuntu-disk 0,po instalacii mythbuntu samozrejme zostal 0,po formatovani particie mythbuntu a oprave a update grubu-zase disk 2!Samozrejme vsetky particie mam na jednom hdd.
A este potrebujem radu-chcem uvolnenu particiu po mythbuntu priradit k ubuntu bez niejakych problemov-ako?A este mam swap iba 800MB a po mythbuntu mi zostal swap 1GB-tiez ich chcem spojit.
-
Trochu to upresni disk0, disk2, particie na jednom disku. Ked si upravoval(formatoval?) Neodstranoval si particie a nevytvaral nove? Nemohlo sa stat ze si tomu disku odobral priznak BOOT? Inak by sa malo ubuntu snazit nainstalovat grub na primary HDD na primary radici. Aspon co mi je zname.
Inak, kam nainstalovat grub si mozes zvolit v bode 8 (rekapitulacia nastavenia), v polozke pokrocile... .
http://wiki.ubuntu.cz/Pr%C5%AFvodce%20instalac%C3%AD#Krok_8_-_rekapitulace_nastaven.2BAO0_instalace
-
Disk 2 je fyzicky disk(mam ho rozdeleny na 5 particii-ubuntu,windows,byvale mythbuntu,dvakrat swap),disk 0 je dalsi fyzicky disk(subory) a este jeden na subory.V biose som mal ako startup pôvodne nastaveny(mal som iba widle) disk 2.Po instalacii ubuntu som sa drbal s grubom a nakoniec stacilo v biose nastavit startup disk na disk 0.Po naformatovani a unmountovani a zase namountovani(zbytocne) particie s mythbuntu,oprave grubu uplne stejnymi prikazmi ako predtym po instalacii ubuntu som musel prepnut v biose na disk 2.
-
Zase mam problem-kvôli 3d na starej grafike ATI som nainstaloval na jednu particiu ubuntu 8.04(fungovala),ale mi nevyhovovalo viac veci v 8.04,tak som odstranil a vytvoril novu prazdnu particiu a uz nespusti sa mi grub.Na sdc8 mam funkcne ubuntu 10.04,a na sdc1 windows ktore chcem pouzivat.Vypis zo scriptu-
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #8 for /mnt/boot/grub.
=> Windows is installed in the MBR of /dev/sdb
=> Grub 2 is installed in the MBR of /dev/sdc and looks on the same drive in
partition #9 for /mnt/boot/grub.
sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sdb1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sdc1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM /boot/grub/core.img
sdc2: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdc5: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdc6: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdc7: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
sdc8: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sda1 * 63 312,576,704 312,576,642 7 HPFS/NTFS
Drive: sdb ___________________ _____________________________________________________
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdb1 * 63 312,576,704 312,576,642 7 HPFS/NTFS
Drive: sdc ___________________ _____________________________________________________
Disk /dev/sdc: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders, total 156312576 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdc1 * 63 115,330,634 115,330,572 7 HPFS/NTFS
/dev/sdc2 115,330,635 156,296,384 40,965,750 f W95 Ext d (LBA)
Extended partition linking to another extended partition
/dev/sdc5 115,330,761 116,969,264 1,638,504 82 Linux swap / Solaris
/dev/sdc6 116,969,265 118,922,389 1,953,125 82 Linux swap / Solaris
/dev/sdc7 118,922,453 135,813,509 16,891,057 7 HPFS/NTFS
/dev/sdc8 135,813,573 156,296,384 20,482,812 83 Linux
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda: PTTYPE="dos"
/dev/sda1 348849A18849628A ntfs seagate barracuda 160g
/dev/sdb: PTTYPE="dos"
/dev/sdb1 124844544844392D ntfs maxtor 160g
/dev/sdc: PTTYPE="dos"
/dev/sdc1 18B0C8D4B0C8BA10 ntfs
/dev/sdc2: PTTYPE="dos"
/dev/sdc5 c9187240-f744-451a-8545-c3b736611419 swap
/dev/sdc6 a15a0962-8788-4527-bf95-71e1f4e61303 swap
/dev/sdc7 723db158-f79a-4170-b6d1-c30a036a9938 ext4 New Volume
/dev/sdc8 4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ext4
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sdc8 / ext4 (rw,errors=remount-ro)
/dev/sdb1 /media/maxtor_160g fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda1 /media/seagate_barracuda_160g fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sr0 /media/CDROM iso9660 (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)
/dev/sdc8 /mnt ext4 (rw)
================================ sdc1/boot.ini: ================================
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
=================== sdc1: Location of files loaded by Grub: ===================
??GB: boot/grub/core.img
=========================== sdc8/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
load_env
fi
set default="8"
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
}
insmod ext2
set root='(hd2,9)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd2,9)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
set locale_dir=($root)/boot/grub/locale
set lang=sk
insmod gettext
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
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,9)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux /boot/vmlinuz-2.6.32-23-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro splash quiet splash
initrd /boot/initrd.img-2.6.32-23-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,9)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
echo 'Loading Linux 2.6.32-23-generic ...'
linux /boot/vmlinuz-2.6.32-23-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro single splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-23-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,9)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro splash quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,9)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
echo 'Loading Linux 2.6.32-22-generic ...'
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro single splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,9)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro splash quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,9)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 ro single splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd2,9)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd2,9)'
search --no-floppy --fs-uuid --set 4499a8a7-2856-48a4-bc1d-9b022b38d2a2
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sdc1)" {
insmod ntfs
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 18b0c8d4b0c8ba10
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 ###
=============================== sdc8/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
#Entry for /dev/sdc6 :
UUID=4499a8a7-2856-48a4-bc1d-9b022b38d2a2 / ext4 errors=remount-ro 0 1
#Entry for /dev/sdb1 :
UUID=124844544844392D /media/maxtor_160g ntfs-3g defaults,locale=sk_SK.utf8 0 0
#Entry for /dev/sda1 :
UUID=348849A18849628A /media/seagate_barracuda_160g ntfs-3g defaults,locale=sk_SK.utf8 0 0
#Entry for /dev/sdc7 :
UUID=c9187240-f744-451a-8545-c3b736611419 none swap sw 0 0
=================== sdc8: Location of files loaded by Grub: ===================
76.1GB: boot/grub/core.img
72.3GB: boot/grub/grub.cfg
76.9GB: boot/initrd.img-2.6.32-21-generic
77.2GB: boot/initrd.img-2.6.32-22-generic
77.5GB: boot/initrd.img-2.6.32-23-generic
76.4GB: boot/vmlinuz-2.6.32-21-generic
76.5GB: boot/vmlinuz-2.6.32-22-generic
77.4GB: boot/vmlinuz-2.6.32-23-generic
77.5GB: initrd.img
77.2GB: initrd.img.old
77.4GB: vmlinuz
76.5GB: vmlinuz.oldpostup opravy-sudo mount /dev/sdc8 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sdc
sudo update-grub
A nefunguje.Poradte,aby som uplne neznicil instalaciu ubuntu a windows.
-
1. Z kterého disku bootuješ?
2. Při opravě Grubu přes LiveCD můžou být disky označeny jinak než v tom výpisu. Zdá se, žes' chtěl Grub nainstalovat na sdc, ale nainstalovals' ho na sda. Zkontroluj znovu, jestli instaluješ na správný disk, a v BIOSu, ze kterého disku bootuješ.
-
Skusal som bootovat zo vsetkych diskov,niekedy mi napisalo niejaku chybu,niekedy nic.Grub som opravoval priamo z ubuntu,nie live(spustal som ho cez super grub disk).Na sda som grub instaloval tiez,lebo v boot info scripte som mal oproti staremu vypisu(este funkcneho grubu,pred odobranim 8.04)nieco ine-ciastocny vypis
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Syslinux is installed in the MBR of /dev/sda
=> Windows is installed in the MBR of /dev/sdb
=> Grub 2 is installed in the MBR of /dev/sdc and looks on the same drive in
partition #8 for /mnt/boot/grub.,ten syslinux som nemal.
A co je-sdc2: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info: ?
V g parted mi ukazuje 21GB,ale to nemôze byt pravda,lebo ostatnymi particiami je disk uplne vycerpany.Nie je chyba,ze predtym som mal grub(s funkcnou 8.04),teraz grub 2?A to,ze mam sdc1,2 a potom 5,6,7,8-chyba 3,4(poradie)?A v grube(s funkcnou 8.04) neslo prepnut na grub2.Islo nastavit iba 8.04,alebo windows.10.04 som spustal iba cez super grub disk.
-
No stacilo aktualizovat ubuntu(isla aktualizacia grug 1.98 6 na vyssi a nove jadro) a uz ide.Predtym som skusal vsetko mozne,ale aktualizovat ma nenapadlo(nesiel som cez live cd,ale priamo ubuntu spustene cez super grub disk),kde aktualizacia bola mozna.Este budem musiet urobit poriadok s particiami(extended,2*swap,jedna volna particia,ktoru musim priradit k ubuntu) a uz dufam budem mat pokoj.A este,ako sa da odstranit grub z sda,aby bol iba na sdc(systemovom disku),a ci ma zmysel cez ubuntu tveak odstranit stare jadra?