A
A
Andrey Korytov2016-11-17 08:29:14
linux
Andrey Korytov, 2016-11-17 08:29:14

Booting Debian from disk without partitions in vmware?

Good time of the day. The essence of the problem is that after migrating a virtual machine from xenserver to vmware, a hard disk in vmdk format without partitions, i.e. fdisk -l outputs the following:
da22aae1954c48a089e0fd82e6b64eb4.png
How can I make the system boot from it?
Attempts to install and configure grub did not lead to anything - operation system not found.
I carry out all actions from LiveCD in chroot mode.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
oia, 2016-11-17
@oia

вы бы 'экспорт в ovf машинки провели , а потом импорт

Руслан Федосеев, 2016-11-17
@martin74ua Куратор тега Linux

а создать разделы не пробовали?
fdisk /dev/xvda и вперед

Андрей Корытов, 2016-11-18
@AKorytov Автор вопроса

Maybe someone will have the same problem, I solved it in the following way:
Boot from LiveCD
mount /dev/sda /mnt
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
mount --bind / proc /mnt/proc
chroot /mnt
cd /boot/grub
touch device.map
echo "(hd0) /dev/sda" > device.map
apt-get install grub2
exit
reboot
Naturally, don't forget about sudo. True, when installing GRUB, he swore that it was not good to put it on a disk without a partition.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question