LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Trying to Create a Live USB of Fedora 13 Using Ubuntu 10.04.1 (http://www.linuxquestions.org/questions/linux-general-1/trying-to-create-a-live-usb-of-fedora-13-using-ubuntu-10-04-1-a-838675/)

9876543210 10-17-2010 04:03 PM

Trying to Create a Live USB of Fedora 13 Using Ubuntu 10.04.1
 
I want to try out Fedora using a live USB. I have tried using Ubuntu's Startup Disk Creator but it won't except the Fedora ISO. Is there another program for Linux that could make a live USB?

rokytnji 10-17-2010 04:06 PM

I use the Linux Version of Unetbootin to make bootable USB in Ubuntu. Make sure mtools and p7zip are installed also in Ubuntu before running Linux Unetbootin.

dv502 10-17-2010 04:45 PM

I found these videos on youtube. Below are a few videos on using unetbootin. There are many more on youtube.

Create a Live System on your Hard Drive with Unetbootin
http://www.youtube.com/watch?v=chGIMlVxYI0

Multiboot USB drive How To - Linux
http://www.youtube.com/watch?v=MH-khdiXqYs

Boot an ISO off your Hard Drive
http://www.youtube.com/watch?v=5hnCXc2ZEys

Note: The Hard drive method will work with USB drives as well.

jefro 10-18-2010 04:40 PM

See pendrivelinux.com for many how-to's also.

linus72 10-18-2010 04:46 PM

it's simple

rename isolinux folder to syslinux
rename isolinux.cfg to syslinux.cfg

then use Gparted to label the usb according to what the syslinux.cfg says CDLABEL=?
or it says something like that...?
just label usb FEDORA and put FEDORA where it says CDLABEL= or whatever it says;

actually your supposed to use the Fedora USB creator so you can also have persistent overlay
https://fedorahosted.org/liveusb-creator/

I also recommend the new Fedora Fusion 14 beta, it's nice
http://linux.softpedia.com/get/Syste...ux-57079.shtml

dv502 10-20-2010 04:03 PM

I don't use unetbootin or those custom scripts. I create a Live USB manually. The steps are more involved, but it works as I've tested it.

I will use tinycore_3.2 in this example.

Plug in your USB stick.

Run this code to see all logical block devices.

Code:

dmesg | egrep hd.\|sd. | grep -i 'logical'
sd 0:0:0:0: [sda] 180941040 512-byte logical blocks: (92.6 GB/86.2 GiB)
sd 0:0:1:0: [sdb] 29886400 512-byte logical blocks: (15.3 GB/14.2 GiB)
sd 4:0:0:0: [sdc] 7837696 512-byte logical blocks: (4.01 GB/3.73 GiB)

Above is the output from my system. Yours will vary. Anyway, you can see sdc is the USB stick by the size (4.01 GB/3.73 GiB).

The next steps must be done as root.

Using fdisk or cfdisk, create a vfat or linux partiton on the USB stick and set the boot flag on in that partition.

Next, format the partition with either mkfs.vfat or mkfs.ext3 depending on partition type you created above.

Next, mount the iso image and the USB drive. I will use /mnt/iso and /mnt/usb in this example.

Code:

mount -o loop tinycore_3.2.iso /mnt/iso/
mount /dev/sdc1 /mnt/usb/

Next, copy all files and directories from /mnt/iso to /mnt/usb.

Code:

rsync -r /mnt/iso/ /mnt/usb/

Installing Grub

Code:

grub-install --no-floppy --root-directory=/mnt/usb/ /dev/sdc
IMPORTANT: Make sure you specific the right drive of your USB stick!

Create or edit /mnt/usb/boot/grub/menu.lst

Add these lines


Quote:

default 0
timeout 5

title tinycore
kernel /boot/bzImage
initrd /boot/tinycore.gz
Note: Some of you may be asking where is the hdx,x part. Well, it is not needed at least in the case. I did add the hdx,x part before, but it didn't work. It worked only when I enter it as above.

Save the file.

That's it. Whew...

Reboot the system and change the BIOS to boot off the USB drive first.

Note: If your BIOS does not support booting off USB drives, use this bootloader
http://www.plop.at/en/bootmanager.html

If you've done everything correctly, you will see tinycore in the grub boot menu.


Like I said, I done this a few days ago and it worked like a charm and I tested it again with crux linux by modifying the menu.lst and it booted fine too.

At first, it looks like alot of work, but it's really not. Here is a recap.

Determine which drive your USB drive is using.
Create the partition with fdisk or cfdisk and toggle boot on.
Format the partition
Mount the iso image and the USB drive
Copy all files and directories from the iso folder to the usb folder
install grub to the root directory of the USB drive and create or edit the menu.lst.
Save file & Reboot

- Cheers


All times are GMT -5. The time now is 09:38 AM.