I had a bootable USB key witk ubuntustudio with 2 partitions
/dev/sdb1 with Ubuntu and a fat32
/dev/sdb2. Then I realized that Windows only reads partitions if they are the first. So I moved the partitions and now I have ubuntu on /dev/sdb2 and fat32 on /dev/sdb1.
I made this creating an image of old /dev/sdb1 with ubuntu by dd command and then restoring it on the new /dev/sdb2 with dd again.
So obviously now the USB pen fails to reboot and give me the grub rescue prompt I made this, after having verified that the vmlinuz and initrd files are in (hd0,msdos2) partition:
grub rescue> set root=(hd0,msdos2)/boot grub rescue> insmod linux grub rescue> linux (hd0,msdos2)/boot/vmlinuz-3.5.0-17-lowlatency grub rescue> initrd (hd0,msdos2)/boot/initrd.img-3.5.0-17-lowlatency grub rescue> boot
But when I boot I fall into initramfs prompt. I think that is because the /dev/sdb2 is not mounted because after the boot command I get:
mount:can't read 'etc/fstab': No such file or directory Begin: Running /scripts/init-bottom ... mounting /dev on /root/dev failed: No such file or directory
But how can I tell to grub which is the new partition from inside grub rescue prompt ?
Thank you for helping me