iPoster
02-03-2007, 13:12
Salve ragazzi!
Oggi stavo provando a clonare la mia / di debian su un altro hd. Il mio scopo e` quello di passare da un hd ide ad un hd sata tutto il sistema in modo da fare il boot da quello sata. Allora, per cominciare, ho partizionato il disco sata come quello ide, i risultati sono:Disk /dev/sda: 163.9 GB, 163927522816 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2433 19543041 83 Linux
/dev/sda2 2434 19929 140536620 5 Extended
/dev/sda5 2434 2556 987966 82 Linux swap / Solaris
/dev/sda6 2557 7420 39070048+ 83 Linux
/dev/sda7 7421 19929 100478511 83 Linux
Disk /dev/hde: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hde1 * 1 2571 20651526 83 Linux
/dev/hde2 2572 14946 99402187+ 5 Extended
/dev/hde5 2572 2702 1052226 82 Linux swap / Solaris
/dev/hde6 2703 8781 48829536 83 Linux
/dev/hde7 8782 14946 49520331 83 Linux
Dove hde e` il disco dove vi e` la attuale root (hde1), e sda e` il nuovo disco sata.
Ho copiato da una live l'intera root in hde1 su sda1, poi dal sistema debian, ho fatto una chroot in questo modo:
# mount /dev/sda1 /mnt/sda1
# mount --bind /dev /mnt/dev
# mount -t proc /proc /mnt/sda1/proc
# chroot /mnt/sda1 su -Poi ho reinstallato grub cosi`:
# grub-install /dev/sda
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/hde
(hd1) /dev/sdaPoi ho dato:# update-grub
Your /etc/kernel-img.conf needs upgrade. Read grub's NEWS.Debian[1]
file and follow its instructions.
1. /usr/share/doc/grub/NEWS.Debian
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.20
Found kernel: /boot/vmlinuz-2.6.19-rc3-1-486
Found kernel: /boot/vmlinuz-2.6.18-4-686-bigmem
Found kernel: /boot/vmlinuz-2.6.18-3-486
Updating /boot/grub/menu.lst ... doneMa al momento in cui vado a fare il boot dal disco sata, GRUB mi da error 15.
Cosa mi consigliate di fare? Il file che mi consiglia di leggere quando do update-grub non esiste, e non so come comportarmi a riguardo...
Oggi stavo provando a clonare la mia / di debian su un altro hd. Il mio scopo e` quello di passare da un hd ide ad un hd sata tutto il sistema in modo da fare il boot da quello sata. Allora, per cominciare, ho partizionato il disco sata come quello ide, i risultati sono:Disk /dev/sda: 163.9 GB, 163927522816 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2433 19543041 83 Linux
/dev/sda2 2434 19929 140536620 5 Extended
/dev/sda5 2434 2556 987966 82 Linux swap / Solaris
/dev/sda6 2557 7420 39070048+ 83 Linux
/dev/sda7 7421 19929 100478511 83 Linux
Disk /dev/hde: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hde1 * 1 2571 20651526 83 Linux
/dev/hde2 2572 14946 99402187+ 5 Extended
/dev/hde5 2572 2702 1052226 82 Linux swap / Solaris
/dev/hde6 2703 8781 48829536 83 Linux
/dev/hde7 8782 14946 49520331 83 Linux
Dove hde e` il disco dove vi e` la attuale root (hde1), e sda e` il nuovo disco sata.
Ho copiato da una live l'intera root in hde1 su sda1, poi dal sistema debian, ho fatto una chroot in questo modo:
# mount /dev/sda1 /mnt/sda1
# mount --bind /dev /mnt/dev
# mount -t proc /proc /mnt/sda1/proc
# chroot /mnt/sda1 su -Poi ho reinstallato grub cosi`:
# grub-install /dev/sda
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/hde
(hd1) /dev/sdaPoi ho dato:# update-grub
Your /etc/kernel-img.conf needs upgrade. Read grub's NEWS.Debian[1]
file and follow its instructions.
1. /usr/share/doc/grub/NEWS.Debian
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.20
Found kernel: /boot/vmlinuz-2.6.19-rc3-1-486
Found kernel: /boot/vmlinuz-2.6.18-4-686-bigmem
Found kernel: /boot/vmlinuz-2.6.18-3-486
Updating /boot/grub/menu.lst ... doneMa al momento in cui vado a fare il boot dal disco sata, GRUB mi da error 15.
Cosa mi consigliate di fare? Il file che mi consiglia di leggere quando do update-grub non esiste, e non so come comportarmi a riguardo...