Ma perchè mai ora dovrebbe avviarsi?conoscenza ha scritto:Ora si avvia?
Ho già rifatto la prova più volte. Il grub.cfg è sempre quello e non si avvia.
Ma perchè mai ora dovrebbe avviarsi?conoscenza ha scritto:Ora si avvia?
Codice: Seleziona tutto
#
# 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
load_env
fi
set default="${saved_entry}"
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 load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos9)'
search --no-floppy --fs-uuid --set=root cf256b0c-9779-4386-b499-9dfd55400ed9
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 14610283-7603-47e4-bc75-1d43830d1077
set locale_dir=($root)/grub/locale
set lang=it_IT
insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 14610283-7603-47e4-bc75-1d43830d1077
insmod jpeg
background_image -m stretch /grub/salix.jpg
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Salix 13.37.0 GNU/Linux, con Linux 3.3.6' --class salix --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 14610283-7603-47e4-bc75-1d43830d1077
echo 'Caricamento Linux 3.3.6...'
linux /vmlinuz-huge-recent-3.3.6 root=/dev/sda9 ro vt.default_utf8=1 resume=/dev/sda4 quiet vga=791
}
menuentry 'Salix 13.37.0 GNU/Linux, con Linux 3.3.6 (modalità ripristino)' --class salix --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 14610283-7603-47e4-bc75-1d43830d1077
echo 'Caricamento Linux 3.3.6...'
linux /vmlinuz-huge-recent-3.3.6 root=/dev/sda9 ro single vt.default_utf8=1 resume=/dev/sda4
}
menuentry 'Salix 13.37.0 GNU/Linux, con Linux 2.6.37.6' --class salix --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 14610283-7603-47e4-bc75-1d43830d1077
echo 'Caricamento Linux 2.6.37.6...'
linux /vmlinuz-huge-2.6.37.6 root=/dev/sda9 ro vt.default_utf8=1 resume=/dev/sda4 quiet vga=791
}
menuentry 'Salix 13.37.0 GNU/Linux, con Linux 2.6.37.6 (modalità ripristino)' --class salix --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root 14610283-7603-47e4-bc75-1d43830d1077
echo 'Caricamento Linux 2.6.37.6...'
linux /vmlinuz-huge-2.6.37.6 root=/dev/sda9 ro single vt.default_utf8=1 resume=/dev/sda4
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 9AEC72D6EC72AC5F
chainloader +1
}
menuentry "Windows Vista (loader) (on /dev/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 04B262BDB262B33A
chainloader +1
}
menuentry "Gentoo Linux 3.2.12 (on /dev/sda6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 99d78743-8b92-4db6-81cf-acb6239ceb71
linux /boot/kernel-3.2.12-gentoo root=/dev/sda6
}
### 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 ###
Codice: Seleziona tutto
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.
default 0
timeout 1
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 3.2.12
root (hd0,5)
kernel /boot/kernel-3.2.12-gentoo root=/dev/sda6
Codice: Seleziona tutto
root[unknow]# fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 testine, 63 settori/tracce, 30401 cilindri, totale 488397168 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x6e16197f
Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 63 204802047 102400992+ 7 HPFS/NTFS/exFAT
/dev/sda2 204802048 222210047 8704000 7 HPFS/NTFS/exFAT
/dev/sda3 222210048 478156799 127973376 5 Esteso
/dev/sda4 478156800 488396799 5120000 82 Linux swap
/dev/sda5 222212096 224260095 1024000 83 Linux
/dev/sda6 224262144 306182143 40960000 83 Linux
/dev/sda7 306184192 429064191 61440000 83 Linux
/dev/sda8 429066240 431114239 1024000 83 Linux
/dev/sda9 431116288 478156799 23520256 83 Linux
root[unknow]# blkid
/dev/sda1: UUID="9AEC72D6EC72AC5F" TYPE="ntfs"
/dev/sda2: LABEL="HP_RECOVERY" UUID="04B262BDB262B33A" TYPE="ntfs"
/dev/sda5: LABEL="boot" UUID="3f6da8d8-d003-4eb8-b429-cffeff309ba7" TYPE="ext2"
/dev/sda6: LABEL="Gentoo" UUID="99d78743-8b92-4db6-81cf-acb6239ceb71" TYPE="ext4"
/dev/sda7: LABEL="home" UUID="2f25d262-dffe-4a6a-b5bb-48340afadfb2" TYPE="ext4"
/dev/sda4: UUID="ac14f7c7-0570-464f-b75d-4f5dd5a31602" TYPE="swap"
/dev/sda8: LABEL="boot Salice" UUID="14610283-7603-47e4-bc75-1d43830d1077" TYPE="ext2"
/dev/sda9: LABEL="Salice X" UUID="cf256b0c-9779-4386-b499-9dfd55400ed9" TYPE="ext4"
root[unknow]#
con:menuentry "Gentoo Linux 3.2.12 (on /dev/sda6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 99d78743-8b92-4db6-81cf-acb6239ceb71
linux /boot/kernel-3.2.12-gentoo root=/dev/sda6
}
In realtà l'unica sostituizione sarebbe lo uuid del disco (grassettato).menuentry "Gentoo Linux 3.2.12 (on /dev/sda6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 3f6da8d8-d003-4eb8-b429-cffeff309ba7
linux /boot/kernel-3.2.12-gentoo root=/dev/sda6
}
ho messo:menuentry "Gentoo Linux 3.2.12 (on /dev/sda6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 3f6da8d8-d003-4eb8-b429-cffeff309ba7
linux /boot/kernel-3.2.12-gentoo root=/dev/sda6
}
Codice: Seleziona tutto
darkstar / # ls -R /var/log/
/var/log/:
ConsoleKit cups emerge-fetch.log emerge.log firebird portage sandbox
/var/log/ConsoleKit:
/var/log/cups:
/var/log/firebird:
/var/log/portage:
elog
/var/log/portage/elog:
summary.log
/var/log/sandbox:
Codice: Seleziona tutto
darkstar / # eselect kernel list
Available kernel symlink targets:
[1] linux-3.2.12-gentoo *
[2] linux-3.3.8-gentoo
darkstar / # ls -lR /boot/
/boot/:
totale 4760
lrwxrwxrwx 1 root root 1 26 mar 21.08 boot -> .
drwxr-xr-x 2 root root 4096 4 apr 00.55 grub
-rw-r--r-- 1 root root 4841392 1 apr 22.55 kernel-3.2.12-gentoo
drwx------ 2 root root 16384 21 feb 23.24 lost+found
/boot/grub:
totale 472
-rw-r--r-- 1 root root 197 3 apr 23.35 default
-rw-r--r-- 1 root root 45 26 mar 21.08 device.map
-rw-r--r-- 1 root root 8620 3 apr 23.35 e2fs_stage1_5
-rw-r--r-- 1 root root 7908 3 apr 23.35 fat_stage1_5
-rw-r--r-- 1 root root 7168 3 apr 23.35 ffs_stage1_5
-rw-r--r-- 1 root root 512 8 apr 13.02 grub.conf
-rw-r--r-- 1 root root 7184 3 apr 23.35 iso9660_stage1_5
-rw-r--r-- 1 root root 8620 3 apr 23.35 jfs_stage1_5
lrwxrwxrwx 1 root root 9 26 mar 21.08 menu.lst -> grub.conf
-rw-r--r-- 1 root root 7336 3 apr 23.35 minix_stage1_5
-rw-r--r-- 1 root root 9568 3 apr 23.35 reiserfs_stage1_5
-rw-r--r-- 1 root root 33856 27 mar 21.39 splash.xpm.gz
-rw-r--r-- 1 root root 512 3 apr 23.35 stage1
-rw-r--r-- 1 root root 104624 3 apr 23.36 stage2
-rw-r--r-- 1 root root 104624 27 mar 10.56 stage2.old
-rw-r--r-- 1 root root 104624 27 mar 21.39 stage2_eltorito
-rw-r--r-- 1 root root 7436 3 apr 23.35 ufs2_stage1_5
-rw-r--r-- 1 root root 6800 3 apr 23.35 vstafs_stage1_5
-rw-r--r-- 1 root root 9268 3 apr 23.35 xfs_stage1_5
/boot/lost+found:
totale 0
Gisuto?menuentry "Gentoo Linux 3.2.12 (on /dev/sda6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 3f6da8d8-d003-4eb8-b429-cffeff309ba7
linux /boot/kernel-3.2.12-gentoo root=/dev/sda6
linux /boot/kernel-3.2.12-gentoo root=/dev/sda6 ro