Re: Debian kfreebsd e linux
- To: Debian Italia Mailing List <debian-italian@lists.debian.org>
- Subject: Re: Debian kfreebsd e linux
- From: Ernesto Cuconato <e.cuconato@gmail.com>
- Date: Thu, 01 Dec 2011 19:04:36 +0100
- Message-id: <[🔎] 1322762676.13771.5.camel@Zeppelin.homenet.telecomitalia.it>
- In-reply-to: <20111130161009.GD1580@ibook99>
- References: <1322572397.9215.4.camel@Zeppelin.homenet.telecomitalia.it> <201111291436.04637.emarvin3678@gmail.com> <CAAyojbeU6HL3wj+M0iyYxSA59doyfWqocas6+1ms=S81--Zzkw@mail.gmail.com> <1322593247.2479.1.camel@Zeppelin.homenet.telecomitalia.it> <CAAyojbc-Sb=e1QTGvq4NoYFfWgL_po1yS4Q2rU7qvqJ71yUKfQ@mail.gmail.com> <1322598718.9996.1.camel@Zeppelin.homenet.telecomitalia.it> <20111129204826.GY1580@ibook99> <1322666296.9127.1.camel@Zeppelin.homenet.telecomitalia.it> <20111130161009.GD1580@ibook99>
Il giorno mer, 30/11/2011 alle 17.10 +0100, NN_il_Confusionario ha scritto:
On Wed, Nov 30, 2011 at 04:18:16PM +0100, Ernesto Cuconato wrote:
> Ecco l'output
>
> /dev/sda: sticky x86 boot sector;
[snippete]
sembra dire che hai un "normale" mbr "DOS" (niente gpt ...) con
partizione estesa l'ultima delle 4 primarie. Niente GRUB nell mbr! dove
lo hai installato?
Il comando che ho dato è stato grub-install /dev/sda, dunque è nell'mbr!
> /dev/sda1: sticky Unix Fast File system [v2]
[snippete]
dunque kFreeBSD e` certamente in sda1, dunque come dicevo grub si
incasina da solo nel riconosimento di tale partizione e questo errore
provoca in catena il resto (in particolare, il tuo rimettere a posto i
files di pre-conf di grub che avevi modificato non puo` correggere
questo errore)
Quindi e` del tutto corretto quello che ti hanno gia` detto sullo slice
s1 invece di s5 per la riga di avvio di kFreeBSD da grub.
> /dev/sda3: sticky Linux rev 1.0 ext4 filesystem data,
[snippete]
sembra la / di linux.
Lo è
> /dev/sda5: sticky Linux/i386 swap file (new style), version 1 (4K
[snippete]
sembra la swap di linux. Che ovviamente se tenti di usare come / per
kFreeBSD non funzionera`.
> /dev/sda6: sticky Linux rev 1.0 ext4 filesystem data,
[snippete]
sembra la /home (o simili) di linux
Partizione dati
> L'unico file che ho copiato da una partizione all'altra è stato grub.cfg
> relativo a Debian KfreeBSD, per il resto non ho modificato niente.
e potrebbe essere proprio questo a incasinare grub?
Se lo hai messo al posto di /boot/grub/grub.cfg che avevi, mi pare
possibile (noto che *NON* hai fatto vedere il tuo /boot/grub/grub.cfg
attuale, e neanche il grub.cfg.new generato con errori, e neanche il
boot/grub/grub.cfg della installazione di kFreeBSD)
Se invece lo hai messo da altra parte e rinominato, mi pare improbabile
(ma non proprio impossibile; non ho analizzato cosa fa update-grub per
riconoscere l'installato; essendo uno scipt di shell potresti
analizzarlo anche tu). Nota: update-grub *cerca* altre installoazioni di
grub e se le trova le rende disponibili (con chaiload o simili) nel
proprio menu. Se ricordo correttamente (improbabile) l'ultima
installazione di kFreeBSD e linux assieme che ho fatto, con la
partizione kFreeBSD montata in linux (che era ext2 nel mio caso, non
ufs2) update-grub si era accorto da solo dell'altro grub. Ma la mia era
una istallazione molto particolare, con partizioni FreeDOS, FreeBSD,
kFreeBSD e linux, due grub installati nei boot sectors delle relative
partizioni, un mbr invece "normale DOS" che lancia FreeDOS con grub4dos
che lancia gli altri due grub ...
SUGGERIMENTO TEMPORANEO: finquando non capisci la causa della
auto-ubriacatura di update-grub (causato da un cattivo
autoriconoscimento di cosa e` installato in sda1), quello che puoi fare
e`: (1) assicurarti di avere un buon sistema di avvio di rescue (distro
live, supergrubdisk, ...); (2) modificare a mano e direttamente
/boot/grub/grub.cfg di linux (proprio la cosa che il file dice di NON
fare in quanto autogenerato, ma al momento non autogenera causa
ubriacatura). In questo modo dal grub di linux puoi avviare tutto
(aggiungendo la sezione per kFreeBSD come ti e` stato suggerito, con la
giusta partizione s1 non s5).
Ecco gli allegati ;-)
La partizione /sda1, inoltre, è inaccessibile dal sistema Linux, poichè mi dà quest'errore:
root@Zeppelin:/home/ernesto# mount /dev/sda1 -t ufs /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
#
# 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="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 load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 3ee4cb91-fa29-488a-ae70-af399fe6c451
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 3ee4cb91-fa29-488a-ae70-af399fe6c451
set locale_dir=($root)/boot/grub/locale
set lang=it_IT
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 3ee4cb91-fa29-488a-ae70-af399fe6c451
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=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, con Linux 3.1.0-1-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 3ee4cb91-fa29-488a-ae70-af399fe6c451
echo 'Caricamento Linux 3.1.0-1-amd64...'
linux /boot/vmlinuz-3.1.0-1-amd64 root=UUID=3ee4cb91-fa29-488a-ae70-af399fe6c451 ro quiet
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-3.1.0-1-amd64
}
menuentry 'Debian GNU/Linux, con Linux 3.1.0-1-amd64 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 3ee4cb91-fa29-488a-ae70-af399fe6c451
echo 'Caricamento Linux 3.1.0-1-amd64...'
linux /boot/vmlinuz-3.1.0-1-amd64 root=UUID=3ee4cb91-fa29-488a-ae70-af399fe6c451 ro single
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-3.1.0-1-amd64
}
### 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 ###
### 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/40_custom.save ###
# 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.
menuentry 'Debian GNU/kFreeBSD, con kFreeBSD 8.2-1-amd64' --class debian --class gnu-kfreebsd --class gnu --class os {
insmod part_msdos
insmod ufs2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set=root 4ed51dc5b73c2be8
echo 'Caricamento kernel per FreeBSD 8.2-1-amd64...'
kfreebsd /boot/kfreebsd-8.2-1-amd64.gz
insmod part_msdos
insmod ufs2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 4ed51dc5b73c2be8
kfreebsd_module_elf /lib/modules/8.2-1-amd64/ufs.ko
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad0s1
set kFreeBSD.vfs.root.mountfrom.options=rw
### END /etc/grub.d/40_custom.save ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
#
# 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="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 load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 3ee4cb91-fa29-488a-ae70-af399fe6c451
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 3ee4cb91-fa29-488a-ae70-af399fe6c451
set locale_dir=($root)/boot/grub/locale
set lang=it_IT
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 3ee4cb91-fa29-488a-ae70-af399fe6c451
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=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, con Linux 3.1.0-1-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 3ee4cb91-fa29-488a-ae70-af399fe6c451
echo 'Caricamento Linux 3.1.0-1-amd64...'
linux /boot/vmlinuz-3.1.0-1-amd64 root=UUID=3ee4cb91-fa29-488a-ae70-af399fe6c451 ro quiet
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-3.1.0-1-amd64
}
menuentry 'Debian GNU/Linux, con Linux 3.1.0-1-amd64 (modalità ripristino)' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 3ee4cb91-fa29-488a-ae70-af399fe6c451
echo 'Caricamento Linux 3.1.0-1-amd64...'
linux /boot/vmlinuz-3.1.0-1-amd64 root=UUID=3ee4cb91-fa29-488a-ae70-af399fe6c451 ro single
echo 'Caricamento ramdisk iniziale...'
initrd /boot/initrd.img-3.1.0-1-amd64
}
### 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 ###
### 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/40_custom.save ###
# 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.
menuentry 'Debian GNU/kFreeBSD, con kFreeBSD 8.2-1-amd64' --class debian --class gnu-kfreebsd --class gnu --class os {
insmod part_msdos
insmod ufs2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set=root 4ed51dc5b73c2be8
echo 'Caricamento kernel per FreeBSD 8.2-1-amd64...'
kfreebsd /boot/kfreebsd-8.2-1-amd64.gz
insmod part_msdos
insmod ufs2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 4ed51dc5b73c2be8
kfreebsd_module_elf /lib/modules/8.2-1-amd64/ufs.ko
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad0s1
set kFreeBSD.vfs.root.mountfrom.options=rw
### END /etc/grub.d/40_custom.save ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
#
# 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="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 load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ufs2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 4ed51dc5b73c2be8
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
insmod part_msdos
insmod ufs2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 4ed51dc5b73c2be8
set locale_dir=($root)/boot/grub/locale
set lang=it_IT
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_kfreebsd ###
menuentry 'Debian GNU/kFreeBSD, con kFreeBSD 8.2-1-amd64' --class debian --class gnu-kfreebsd --class gnu --class os {
insmod part_msdos
insmod ufs2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 4ed51dc5b73c2be8
echo 'Caricamento kernel per FreeBSD 8.2-1-amd64...'
kfreebsd /boot/kfreebsd-8.2-1-amd64.gz
insmod part_msdos
insmod ufs2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 4ed51dc5b73c2be8
kfreebsd_module_elf /lib/modules/8.2-1-amd64/ufs.ko
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad8s1
set kFreeBSD.vfs.root.mountfrom.options=rw
}
menuentry 'Debian GNU/kFreeBSD, con kFreeBSD 8.2-1-amd64 (modalità ripristino)' --class debian --class gnu-kfreebsd --class gnu --class os {
insmod part_msdos
insmod ufs2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 4ed51dc5b73c2be8
echo 'Caricamento kernel per FreeBSD 8.2-1-amd64...'
kfreebsd /boot/kfreebsd-8.2-1-amd64.gz -s
insmod part_msdos
insmod ufs2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 4ed51dc5b73c2be8
kfreebsd_module_elf /lib/modules/8.2-1-amd64/ufs.ko
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad8s1
set kFreeBSD.vfs.root.mountfrom.options=rw
}
### END /etc/grub.d/10_kfreebsd ###
### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###
Reply to: