I totally agree, I just find it convenient to do it this way sometimes!JRD wrote:This is working (and you don't need to wipe the disk to use this method). But it's not a supported method because the grub menu is not there and you should add any parameters by yourself.
Problem installing Live USB on a USB key
Re: Problem installing Live USB on a USB key
-
- Posts: 4
- Joined: 11. Jun 2011, 19:32
Re: Problem installing Live USB on a USB key
I hit the same problem as phayz.
To fix this I used fdisk (based on some instructions on pendrivelinux.com) on Ubuntu 10.10:
I. Format your USB flash drive to use a single partition:
To fix this I used fdisk (based on some instructions on pendrivelinux.com) on Ubuntu 10.10:
I. Format your USB flash drive to use a single partition:
- Open a terminal and type sudo su
- Type fdisk -l (and note which device is your USB drive)
- Type fdisk /dev/sdx (replacing x with your actual USB device)
- Type c (to switch on DOS-compatible mode)
- Type d (to delete the existing partition)
- Type n (to create a new partition)
- Type p (for primary partition)
- Type 1 (to create the first partition)
- Press Enter (to use the first cylinder)
- Press Enter again (to use the default value as the last cylinder)
- Type a (for active)
- Type 1 (to mark the first partition active "bootable")
- Type w (to write the changes and close fdisk)
- Type umount /dev/sdx1 (to unmount the mounted partition)
- Type mkfs.vfat -F 32 -n Salix /dev/sdx1 (to format the partition as fat32)
Last edited by maninashed on 14. Jun 2011, 20:25, edited 1 time in total.
Re: Problem installing Live USB on a USB key
The step 4 is a really bad idea. Dos compatibility mode is a must have for installing grub2 on usb disk.
Re: Problem installing Live USB on a USB key
It seems like 'c' enables dos compatibility mode. So it should say "to switch on dos compatibility mode"JRD wrote:The step 4 is a really bad idea. Dos compatibility mode is a must have for installing grub2 or usb disk.
Re: Problem installing Live USB on a USB key
Oh ok, so that's ok.
-
- Posts: 4
- Joined: 11. Jun 2011, 19:32
Re: Problem installing Live USB on a USB key
Sorry, my mistake. Thanks for pointing that out. I've updated my earlier post.
To be honest I was a bit confused by the warning from the fdisk command (which appears after step 3):
After I pressed 'c', I got the message: "DOS Compatibility flag is not set". If I then complete the formatting process, then install-on-USB.sh will work successfully.
However, if I do not press 'c' (or press it twice and get "DOS Compatibility flag is set"), then install-on-USB.sh will fail with the same error that started this thread.
Anyhow ... I'm up and running now.
To be honest I was a bit confused by the warning from the fdisk command (which appears after step 3):
Code: Select all
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
However, if I do not press 'c' (or press it twice and get "DOS Compatibility flag is set"), then install-on-USB.sh will fail with the same error that started this thread.
Anyhow ... I'm up and running now.