Moderator: Moderators
Zeroh wrote:a meno di non sbagliarmi, uno.
con più partizioni, ma uno.
...siccome anche le cose più banali possono esserlo meno di quanto sembri, come devo fare per esserne assolutamente certo?
Zeroh wrote:no aspetta, io non ce l'ho sabayon.
il punto focale del post è che non riesco a farlo partire^^
quindi volevo dire:
come devo fare per esserne assolutamente certo CON WINDOWS7?
fdisk /dev/sda
# attiva il flag boot
a
2
# cambia l'identificatore in 0xEF
t
2
ef
# scrivi i cambiamenti su disco
w
mkdir /mnt/sabayon
# monta l'installazione di Sabayon su /mnt/sabayon
mount /dev/sda1 /mnt/sabayon
# prepara l'ambiente della chroot
cd /mnt/sabayon
mkdir dev sys proc
mount -t proc none /mnt/sabayon/proc
mount --rbind /sys /mnt/sabayon/sys
mount --rbind /dev /mnt/sabayon/dev
# consenti alla chroot di avere accesso ad internet
rm -f /mnt/sabayon/etc/resolv.conf
cp /etc/resolv.conf /mnt/sabayon/etc/resolv.conf
# monta la partizione FAT32 per il benedetto UEFI
mkdir /mnt/sabayon/boot/efi
mount -t vfat /dev/sda2 /mnt/sabayon/boot/efi
# evviva, tutto pronto, possiamo eseguire il chroot
chroot /mnt/sabayon /bin/bash
env-update
. /etc/profile
export PS1="(chroot) ${PS1}"
# installa le dipendenze necessarie con equo
equo update
equo install --relaxed autogen autoconf automake guile help2man Locale-gettext
# ora usa portage per GRUB2
emerge --sync
USE="grub_platforms_efi-32 grub_platforms_efi-64" emerge -1v grub
grub2-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=sabayon_grub --boot-directory=/boot/efi/EFI --recheck --debug
# dato che ci siamo mettiamoci anche le localizzazioni
mkdir -p /boot/grub/locale
cp /usr/share/locale/en/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
cp /usr/share/locale/it/LC_MESSAGES/grub.mo /boot/grub/locale/it.mo
grub2-mkconfig -o /boot/efi/EFI/grub/grub.cfg
exit

chroot /mnt/sabayon /bin/bash
env-update
. /etc/profile
export PS1="(chroot) ${PS1}"chroot /mnt/sabayon /bin/bashenv-update. /etc/profileexport PS1="(chroot) ${PS1}"gdisk /dev/sda
# cambia l'identificatore in EF00 (per GPT)
t
2
ef00
# scrivi i cambiamenti su disco
w

sabayonuser@localhost ~ $ su
localhost sabayonuser # gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.5
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): t
Partition number (1-6): 5
Current type is 'EFI System'
Hex code or GUID (L to show codes, Enter = 8300): ef00
Changed type of partition to 'EFI System'
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sda.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
localhost sabayonuser # mkdir /mnt/sabayon
localhost sabayonuser # mount /dev/sda6 /mnt/sabayon
mount: unknown filesystem type 'LVM2_member'
localhost sabayonuser #
modprobe dm-mod
vgscan
Return to Sabayon Linux Discussioni Generali
Users browsing this forum: No registered users and 5 guests