Dr. SzösziIgen, azt úgy együtt!
Az egészet így csináltam. Ott véletlenül kétszer adtam ki a sudo chroot /mnt parancsot, de ennek szerintem nincs jelentősége. Ugye így jó, az sdb6- on van a Linux! De mi az, hogy "Unable to resolve host Ubuntu"??
ubuntu@ubuntu:~$ df -Th
Filesystem Type Size Used Avail Use% Mounted on
aufs aufs 501M 61M 441M 13% /
none devtmpfs 495M 264K 495M 1% /dev
/dev/sr0 iso9660 694M 694M 0 100% /cdrom
/dev/loop0
squashfs 661M 661M 0 100% /rofs
none tmpfs 501M 176K 501M 1% /dev/shm
tmpfs tmpfs 501M 12K 501M 1% /tmp
none tmpfs 501M 88K 501M 1% /var/run
none tmpfs 501M 4,0K 501M 1% /var/lock
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 40.1 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x05df05de
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4869 39110211 7 HPFS/NTFS
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x30a430a3
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 5099 40957686 7 HPFS/NTFS
/dev/sdb2 5100 19458 115332300 f W95 Ext'd (LBA)
/dev/sdb5 5100 12450 59040254+ 7 HPFS/NTFS
/dev/sdb6 12450 19166 53946368 83 Linux
/dev/sdb7 19166 19458 2343936 82 Linux swap / Solaris
ubuntu@ubuntu:~$ sudo mount /dev/sdb6 /mnt
ubuntu@ubuntu:~$ sudo mount /dev/sdb6 /mnt/boot
ubuntu@ubuntu:~$ sudo mount --bind /dev/ /mnt/dev
ubuntu@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/# sudo chroot /mnt
sudo: unable to resolve host ubuntu
chroot: failed to run command `/bin/bash': No such file or directory
root@ubuntu:/# sudo grub-install /dev/sdb
sudo: unable to resolve host ubuntu
Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to /dev/sdb as (hd1)...
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'.
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
root@ubuntu:/# sudo grub-install --recheck /dev/sdb
sudo: unable to resolve host ubuntu
Probing devices to guess BIOS drives. This may take a long time.
Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to /dev/sdb as (hd1)...
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'.
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
root@ubuntu:/# exit
ubuntu@ubuntu:~$ sudo umount /mnt/dev
ubuntu@ubuntu:~$ sudo umount /mnt/boot
ubuntu@ubuntu:~$ sudo umount /mnt
ubuntu@ubuntu:~$
Mi a hiba?