Kod: Zaznacz cały
GRUB GRUB GRUB GRUB ...
Kod: Zaznacz cały
GRUB GRUB GRUB GRUB ...
Kod: Zaznacz cały
sudo update-grub
Kod: Zaznacz cały
/boot/grub/grub.cfg
Kod: Zaznacz cały
sudo fdisk -l
Kod: Zaznacz cały
#
# 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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 3562b410-ea0a-4749-903b-dd358717ce82
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 3562b410-ea0a-4749-903b-dd358717ce82
set locale_dir=($root)/boot/grub/locale
set lang=pl_PL
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 ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 3562b410-ea0a-4749-903b-dd358717ce82
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
set color_normal=light-gray/black
set color_highlight=white/black
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
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, za pomocą systemu Linux 3.0.0-20-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 3562b410-ea0a-4749-903b-dd358717ce82
linux /boot/vmlinuz-3.0.0-20-generic root=UUID=3562b410-ea0a-4749-903b-dd358717ce82 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-20-generic
}
menuentry 'Ubuntu, za pomocą systemu Linux 3.0.0-20-generic (tryb ratunkowy)' --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 3562b410-ea0a-4749-903b-dd358717ce82
echo 'Wczytywanie systemu Linux 3.0.0-20-generic...'
linux /boot/vmlinuz-3.0.0-20-generic root=UUID=3562b410-ea0a-4749-903b-dd358717ce82 ro recovery nomodeset
echo 'Wczytywanie początkowego dysku RAM...'
initrd /boot/initrd.img-3.0.0-20-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, za pomocą systemu Linux 2.6.38-8-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 3562b410-ea0a-4749-903b-dd358717ce82
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=3562b410-ea0a-4749-903b-dd358717ce82 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, za pomocą systemu Linux 2.6.38-8-generic (tryb ratunkowy)' --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 3562b410-ea0a-4749-903b-dd358717ce82
echo 'Wczytywanie systemu Linux 2.6.38-8-generic...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=3562b410-ea0a-4749-903b-dd358717ce82 ro recovery nomodeset
echo 'Wczytywanie początkowego dysku RAM...'
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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 3562b410-ea0a-4749-903b-dd358717ce82
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 3562b410-ea0a-4749-903b-dd358717ce82
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/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root FC50E7F850E7B812
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
Kod: Zaznacz cały
Disk /dev/sda: 80.0 GB, 80026361856 bytes
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 9729, w sumie sektorów: 156301488
Jednostka = sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512
Identyfikator dysku: 0xf048b127
Urządzenie Rozruch Początek Koniec Bloków ID System
/dev/sda1 * 63 40965749 20482843+ 7 HPFS/NTFS/exFAT
/dev/sda2 40965811 156301311 57667750+ f W95 Rozsz. (LBA)
/dev/sda5 40965813 122881184 40957686 7 HPFS/NTFS/exFAT
/dev/sda6 122882048 154347519 15732736 83 Linux
/dev/sda7 154349568 156301311 975872 82 Linux swap / Solaris
Kod: Zaznacz cały
ls -al /dev/disk/by-uuid/*
Kod: Zaznacz cały
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.0.0-20-generic
Found kernel: /boot/vmlinuz-2.6.38-8-generic
Found GRUB 2: /boot/grub/core.img
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
Kod: Zaznacz cały
#
# 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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 3562b410-ea0a-4749-903b-dd358717ce82
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 3562b410-ea0a-4749-903b-dd358717ce82
set locale_dir=($root)/boot/grub/locale
set lang=pl_PL
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 ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 3562b410-ea0a-4749-903b-dd358717ce82
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
set color_normal=light-gray/black
set color_highlight=white/black
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
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, za pomocą systemu Linux 3.0.0-20-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 3562b410-ea0a-4749-903b-dd358717ce82
linux /boot/vmlinuz-3.0.0-20-generic root=UUID=3562b410-ea0a-4749-903b-dd358717ce82 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-20-generic
}
menuentry 'Ubuntu, za pomocą systemu Linux 3.0.0-20-generic (tryb ratunkowy)' --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 3562b410-ea0a-4749-903b-dd358717ce82
echo 'Wczytywanie systemu Linux 3.0.0-20-generic...'
linux /boot/vmlinuz-3.0.0-20-generic root=UUID=3562b410-ea0a-4749-903b-dd358717ce82 ro recovery nomodeset
echo 'Wczytywanie początkowego dysku RAM...'
initrd /boot/initrd.img-3.0.0-20-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, za pomocą systemu Linux 2.6.38-8-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 3562b410-ea0a-4749-903b-dd358717ce82
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=3562b410-ea0a-4749-903b-dd358717ce82 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, za pomocą systemu Linux 2.6.38-8-generic (tryb ratunkowy)' --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 3562b410-ea0a-4749-903b-dd358717ce82
echo 'Wczytywanie systemu Linux 2.6.38-8-generic...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=3562b410-ea0a-4749-903b-dd358717ce82 ro recovery nomodeset
echo 'Wczytywanie początkowego dysku RAM...'
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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 3562b410-ea0a-4749-903b-dd358717ce82
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 3562b410-ea0a-4749-903b-dd358717ce82
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/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root FC50E7F850E7B812
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 ###
Kod: Zaznacz cały
lrwxrwxrwx 1 root root 10 2012-06-03 20:44 /dev/disk/by-uuid/0c0bd377-a1e5-4e39-b626-775cb29d0132 -> ../../sda7
lrwxrwxrwx 1 root root 10 2012-06-03 20:44 /dev/disk/by-uuid/3562b410-ea0a-4749-903b-dd358717ce82 -> ../../sda6
lrwxrwxrwx 1 root root 10 2012-06-03 20:44 /dev/disk/by-uuid/E05C97625C973270 -> ../../sda5
lrwxrwxrwx 1 root root 10 2012-06-03 20:44 /dev/disk/by-uuid/FC50E7F850E7B812 -> ../../sda1
Kod: Zaznacz cały
sudo os-prober
Kod: Zaznacz cały
sudo update-grub
Kod: Zaznacz cały
mint@mint ~ $ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf048b127
Device Boot Start End Blocks Id System
/dev/sda1 * 63 40965749 20482843+ 7 HPFS/NTFS/exFAT
/dev/sda2 40965811 156301311 57667750+ f W95 Ext'd (LBA)
/dev/sda5 40965813 122881184 40957686 7 HPFS/NTFS/exFAT
/dev/sda6 122882048 154347519 15732736 83 Linux
/dev/sda7 154349568 156301311 975872 82 Linux swap / Solaris
mint@mint ~ $ sudo mkdir /mnt/temp
mkdir: cannot create directory `/mnt/temp': File exists
mint@mint ~ $ sudo mount -t ext4 /dev/6 /mnt/temp
mount: special device /dev/6 does not exist
mint@mint ~ $ sudo mount -o bind /dev /mnt/temp/dev
mount: mount point /mnt/temp/dev does not exist
mint@mint ~ $ sudo mount proc /mnt/temp/proc -t proc
mount: mount point /mnt/temp/proc does not exist
mint@mint ~ $ sudo mount sysfs /mnt/temp/sys -t sysfs
mount: mount point /mnt/temp/sys does not exist
mint@mint ~ $ sudo chroot /mnt/temp
chroot: failed to run command `/bin/bash': No such file or directory
mint@mint ~ $
Kod: Zaznacz cały
mint@mint ~ $ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf048b127
Device Boot Start End Blocks Id System
/dev/sda1 * 63 40965749 20482843+ 7 HPFS/NTFS/exFAT
/dev/sda2 40965811 156301311 57667750+ f W95 Ext'd (LBA)
/dev/sda5 40965813 122881184 40957686 7 HPFS/NTFS/exFAT
/dev/sda6 122882048 154347519 15732736 83 Linux
/dev/sda7 154349568 156301311 975872 82 Linux swap / Solaris
mint@mint ~ $ sudo mkdir /mnt/temp
mkdir: cannot create directory `/mnt/temp': File exists
mint@mint ~ $ sudo mount -t ext4 /dev/sda6 /mnt/temp
mint@mint ~ $ sudo mount -o bind /dev /mnt/temp/dev
mint@mint ~ $ sudo mount proc /mnt/temp/proc -t proc
mint@mint ~ $ sudo mount sysfs /mnt/temp/sys -t sysfs
mint@mint ~ $ sudo chroot /mnt/temp
root@mint:/#
root@mint:/# sudo grub-install /dev/sda
sudo: unable to resolve host mint
Installation finished. No error reported.
root@mint:/# sudo update-grub2
sudo: unable to resolve host mint
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.2.0-24-generic
Found initrd image: /boot/initrd.img-3.2.0-24-generic
Found linux image: /boot/vmlinuz-3.0.0-20-generic
Found initrd image: /boot/initrd.img-3.0.0-20-generic
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
done
root@mint:/#
-- 16 cze 2012, o 20:24 --lubuntu@lubuntu:~$ sudo fdisk -l
Disk /dev/sda: 80.1 GB, 80059342336 bytes
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 9733, w sumie sektorów: 156365903
Jednostka = sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512
Identyfikator dysku: 0x0be50be4
Urządzenie Rozruch Początek Koniec Bloków ID System
/dev/sda1 * 63 78172289 39086113+ 7 HPFS/NTFS/exFAT
/dev/sda2 78172290 156344579 39086145 f W95 Rozsz. (LBA)
/dev/sda5 78172353 156344579 39086113+ 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 41.0 GB, 40982151168 bytes
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 4982, w sumie sektorów: 80043264
Jednostka = sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512
Identyfikator dysku: 0x0db80db7
Urządzenie Rozruch Początek Koniec Bloków ID System
/dev/sdb1 * 2048 76136447 38067200 83 Linux
/dev/sdb2 76138494 80041983 1951745 5 Rozszerzona
/dev/sdb5 76138496 80041983 1951744 82 Linux swap / Solaris
lubuntu@lubuntu:~$ sudo mkdir /mnt/temp
lubuntu@lubuntu:~$ sudo mount -t ext4 /dev/sdb1 /mnt/temp
lubuntu@lubuntu:~$ sudo mount -o bind /dev /mnt/temp/dev
lubuntu@lubuntu:~$ sudo mount proc /mnt/temp/proc -t proc
lubuntu@lubuntu:~$ sudo mount sysfs /mnt/temp/sys -t sysfs
lubuntu@lubuntu:~$ sudo chroot /mnt/temp
root@lubuntu:/# sudo grub-install /dev/sda
sudo: nie udało się rozwiązać nazwy hosta lubuntu
Installation finished. No error reported.
root@lubuntu:/# sudo update-grub2
sudo: nie udało się rozwiązać nazwy hosta lubuntu
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-23-generic
Found initrd image: /boot/initrd.img-3.2.0-23-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
done
root@lubuntu:/#
Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 102 gości