Read the article
Renewal of the legend: we put the OS on Libretto 50 CTIn which the method ā3 of installation of Linux OS on HDD from the virtual machine is described. And I decided to offer another option, which seems to me more correct than the one described in the article. In any case, the author of the article,
smashrod , I advise you to try. Maybe this option will be working.
To solve the problem we need:
1. running Linux computer
2.installed on this VMware Server OS
3.Removable drive connected to work computer
What should be done:
')
1. Create a virtual machine in VMware with a configuration similar to that in which the real system will work. Screw need to create an IDE, the required size, not rubber, solid.
2. Disassemble virtual hdd into partitions, install the system.
3. Next we will need information about the screw configuration in the virtual system. To do this, run the command in the console: sudo fdisk -ul / dev / sda, where / dev / sda is the name of the screw in the system. It is important to note that the key āuā must be indicated, it translates the unit of measurement of the section boundaries from the cylinders into sectors.
The result of the command will be something like this:
Disk / dev / sda: 74.3 GB, 74355769344 bytes
255 heads, 63 sectors / track, 9039 cylinders, total 145226112 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x23e223e1
Device Zagr Start End Blocks Id System
/ dev / sda1 63 530144 265041 82 Linux swap / Solaris
/ dev / sda2 * 530145 16996769 8233312+ 83 Linux
/ dev / sda3 16996770 145211534 64107382+ 83 Linux
Most of all, we are interested in the third column in the partition table - the offset of the beginning of the partition (in sectors). On its basis, we calculate the offset in bytes. Let's do this for the root partition / dev / sda2: start offset = 530145 sectors, sector size = 512 bytes. We consider:
echo $ ((530145 * 512))
271434240
where: 271434240 - this is the offset of the beginning of the partition / dev / sda2 in bytes
4. Then we shut down the virtual machine correctly, create a new vmroot subdirectory in its directory and mount the virtual screw in it:
mount -t TYPE -o ro, loop, offset = 271434240 hda.img ./vmroot
where: TYPE - file system type; 271434240 - the offset of the beginning of the section (see above)
5.Connect removable hdd to the real system, divide it into sections, the same as on the virtual and in the same order, format it, then mount this hdd into the system.
6. Go to the vmroot subdirectory and copy:
cp -axv ./bin ./home ./sbin ./sys ./usr ./boot ./etc ./lib ./opt ./root ./srv ./var / dev / removable disk
7. Go to the new system:
chroot / mnt / removable disk
8. Rules /etc/lilo.conf and / etc / fstab
9. Next you need to restore the lilo bootloader.
/ sbin / lilo
lilo -r / mnt / hdd
After that, you need to unmount the removable disk, connect it to the target computer and try to boot.
PS For this method you need to thank
snobs-diary