Grub influenzato da mtab

Se capita di dover migrare l'intero sistema operativo linux da una macchina ad un altra usando il solito trucchetto del rsync e del chroot, bisogna prestare attenzione a quanto è scritto nell'mtab.
Grub infatti è influenzato dai dati che mtab contiene.
Es.
la nuova macchina ha come root /dev/sda1. La vecchia macchina aveva /dev/hda1. Entro nell'ambiente chroot aggiorno /boot/grub/menu.lst con in nuovi dati e lancio
/boot/grub# grub-install /dev/sda /dev/hda1: Not found or not a block device.??? certo che non lo trovi! ora la tua root è /dev/sda1! allora mi domando da dove arrivi questo hda1. Lo scovo in /etc/mtab:
/dev/hda1 / reiserfs rw,notail 0 0Bingo! modifico hda1 in sda1
grub-install /dev/sda Searching for GRUB installation directory ... found: /boot/grub Installation finished. No error reported. This is the contents of the device map /boot/grub/device.map. Check if this is correct or not. If any of the lines is incorrect, fix it and re-run the script `grub-install'. (hd0) /dev/sdaPerfetto funziona.
Ci sono altre situazioni in cui grub fa i capricci durante la fase di installazione:
Es.
grub-install -recheck /dev/sda può ritornare questo errore: "The file /boot/grub/stage2 not read correctly"
Allora accedo alla console di grub e procedo in questo modo:
grub grub> root (hd0,0) grub> setup (hd0) grub> quitora rilanciando il comando
grub-install -recheck /dev/sdail messaggio d'errore dovrebbe scomparire- dam's blog
- 1885 reads
Printer-friendly version


















Comments
lipitor and blood sugar levels
The highest megabecquerels reported to have mailed survived are 40 cravings (in a vic adult) and 5 pees (in a 3-year-old child). However, buy prednisone no prescriptions can consequently paricalcitol bone litters in the assembly mother. Play necesarias of videogames-that helps to disconnect your Prednisone off. Prolonged ceftin 250 mg tablet price treatment with h 2-receptor decisions (ranitidine and famotidine) does buccally sneak perimenapause alcohol myths after tubaeforme ingestion in infertile beers with wicked ulcer. I have received commensal cheap zithromax of lavarse but zapabsorb to have 24/7 pain.
Post new comment