Hi,
I’m trying to write USB & disk image of ‘miniSUSE’
(http://susestudio.com/a/3Xsp3A/minisuse) to sda9 partition, add grub
entry and boot sysetm, but I have a problem.
I do it like this:
Code:
#Format partition eg. sda9
mkfs.ext3 -m 0 /dev/sda9
rm -r lost+found/
#Create directiories
mkdir /mnt/loop
mkdir /mnt/miniSUSE
#Mount your raw disk image as a loopback device
losetup /dev/loop0 /home/mruz/miniSUSE/miniSUSE.x86_64-0.4.35.raw
#Add your partitions to /dev/mapper/loop0pX
kpartx -va /dev/loop0
#Mount partition as read-only and sda9
mount -o ro /dev/mapper/loop0p1 /mnt/loop/
mount /dev/sda9 /mnt/miniSUSE
#Copy files from image to mounted partition
cp -R /mnt/loop/* /mnt/miniSUSE/
#Clean up
umount /mnt/loop/
#Remove the mapper devices:
kpartx -d /dev/loop0
#Remove the loopback device:
losetup -d /dev/loop0
#Add entry to grub /etc/grub.d/40_custom
menuentry ‘miniSUSE’ {
set root=(hd0,9)
linux /boot/linux.vmx quiet splash=silent
initrd /boot/initrd.vmx
}
#Rebuild grub2 config
grub2-mkconfig -o /boot/grub2/grub.cfg
In the first boot stage miniSUSE is loading, but when:[color=blue]
Searching for boot device…
[/color]
I receive:[color=blue]
Failed to find boot device!
[/color]
Does anyone have any ideas?
–
mruz
mruz’s Profile: http://forums.opensuse.org/member.php?userid=72166
View this thread: http://forums.opensuse.org/showthread.php?t=489048