Linux guest, raw disks: Partition wierdness [SOLVED]
Posted: 20. Jul 2010, 17:31
hey folks,
I'm trying to boot my existing Ubuntu installation on /dev/disk0s3 (80GB on a 230GB drive) as a raw disk device with VirtualBox 3.2.6. But, neither GRUB nor Linux/Ubuntu can see any of my partitions.
I created the vmdk like this: (grub.mbr was pulled from an existing Ubuntu installation), but on startup I get:
in addition, GRUB cannot see any partitions:
and this is confirmed when I go ahead and try to re-install Ubuntu on the raw device: gparted just offers up my entire 230GB disk as 'unallocated', which is not what I expected.
If, on the other hand, I create the vmdk file like this: then I get what I expect (an 80GB hdd with Ubuntu already on it but with a confused GRUB ().
i have no idea how to fix grub to allow Linux to boot in either case, and if i boot up a live CD and try to reinstall grub on the virtual disk's MBR i get a segfault in grub-setup.
Any help appreciated.
I'm trying to boot my existing Ubuntu installation on /dev/disk0s3 (80GB on a 230GB drive) as a raw disk device with VirtualBox 3.2.6. But, neither GRUB nor Linux/Ubuntu can see any of my partitions.
I created the vmdk like this:
Code: Select all
VBoxManage internalcommands createrawvmdk -rawdisk /dev/disk0 -partitions 3 -filename disk0s3_01.vmdk -register -mbr grub.mbr Code: Select all
GRUB loading.
error: no such partitionCode: Select all
grub rescue> ls
(hd0)
grub rescue>If, on the other hand, I create the vmdk file like this:
Code: Select all
VBoxManage internalcommands createrawvmdk -rawdisk /dev/disk0s3 -filename disk0s3_02.vmdk -registerCode: Select all
GRUB Geom Error
FATAL: INT18: BOOT FAILUREi have no idea how to fix grub to allow Linux to boot in either case, and if i boot up a live CD and try to reinstall grub on the virtual disk's MBR i get a segfault in grub-setup.
Any help appreciated.