LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-23-2011, 09:40 AM   #1
mgallatin
LQ Newbie
 
Registered: Jun 2009
Location: Texas
Posts: 11

Rep: Reputation: 1
If I dd copy a bootable usb drive to an iso will the iso be bootable?


So, heres my question...

If I dd copy a bootable usb drive to an iso will the iso be bootable?

I haven't tried it yet, but i'm going to. Heres the situation and tell me if I'm crazy.

I have several bootable CDs I use at work to do different things, so I went ahead and made a multi-boot usb stick with the isos on them and everything is golden. When i need something else, I am able to slap the ISO on the usb stick, edit the menu.lst and I'm good to go.

The problem is, for some of our equipment I have a bootable USB stick that I have to use. I tried copying the files on the bootable USB to my multi-boot usb and setup grub to boot it (which admittedly I'm no expert at), but have had no luck.

So now I'm thinking, I'll use dd to copy the bootable USB stick to an iso (using bs=2048) and then do my normal setup with an ISO and maybe it will work.

Please let me know if I'm crazy, I'm gonna try it this afternoon I think, so I will let you know what I find. Or, if anyone has tried this, are there any pitfalls I should know about?

Thanks for your insight.
 
Old 03-23-2011, 09:57 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
My question is: Do you have a HOWTO available for what you did? That sounds like a great idea. Being able to have one bootable drive with Fedora, Ubuntu, Centos, RHEL, Suse, Kubuntu, et al would be wicked.

What is your process?
 
Old 03-23-2011, 10:07 AM   #3
mgallatin
LQ Newbie
 
Registered: Jun 2009
Location: Texas
Posts: 11

Original Poster
Rep: Reputation: 1
I used this guide... didn't use all of it, mostly the stuff about making the USB bootable, and putting the Ultimate Boot ISO on it (although I dont use that ISO, the same process seems to work for other bootable ISOs) Yeah, I think its either OSX or Windows Slanted, but I use windows for my desktop at work.

http://florian.freundt.org/blog/?p=161
 
1 members found this post helpful.
Old 03-23-2011, 10:13 AM   #4
anon121
LQ Newbie
 
Registered: Mar 2011
Location: Italy
Distribution: Archlinux
Posts: 11

Rep: Reputation: 0
if you dd a disk to an image, and the disk is bootable, then the image will be bootable (obviously, if you dd a cdrom do not try to burn the image onto a hard drive..)

EDIT: same thing with USB sticks, the image is bootable if the stick is bootable, maybe your grub commands are wrong.

Last edited by anon121; 03-23-2011 at 10:16 AM.
 
Old 03-23-2011, 03:42 PM   #5
mgallatin
LQ Newbie
 
Registered: Jun 2009
Location: Texas
Posts: 11

Original Poster
Rep: Reputation: 1
Okay so, just making a bootable ISO didn't exactly work in my case, but I did finally get it to work. Also I found that the instructions at http://florian.freundt.org/blog/?p=161 work great for some ISOs, not so great for others. For my bootable USB image to work on my multi-boot usb, I had to have both a plain copy of the bootable USB files, and the whole ISO. I also used the memdisk file from syslinux and my grub entry looked like this:

Code:
title BootableUSB
kernel /memdisk
initrd /BootableUSB.iso
boot
Yeah, it seems very hacky to have 2 copies of the bootable USB stick on the multi-boot USB stick, but its a funny USB stick to begin with so it doesn't surprise me. Its like it uses the image to boot, then reads the regular files off the USB stick. It does take a long time to load (i think its the time it takes to copy the 500MB iso to memory). This may not help anybody, but I thought I'd tell ya'll how I finally got it to work, cause I hate it when someone replies with "I got it working" and no details.

I tried to boot an Xubuntu Live CD iso the same way other isos are booted in the freundt.org instructions, but it didn't work (i got into a busybox shell). If you're interested in putting a "liveCD" version of Ubuntu (or Xubuntu or Kubuntu or etc...) on a USB stick, I found the section titled "Create Bootable USB Manually" at this link: https://help.ubuntu.com/community/In...n/FromUSBStick had all the info I needed to create a bootable Xubuntu part of my multiboot stick. (Amazingly fast boot times btw, I was shocked how quick it loaded the first time).

Anyways, I'm gonna mark this thread as solved, if anyone has any more insight into a better way of doing this, let me know.
 
Old 03-23-2011, 04:46 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
http://www.pendrivelinux.com/yumi-mu...t-usb-creator/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 5 iso usb bootable. sunnybmv Linux - Newbie 11 02-24-2014 12:07 PM
Creating linux persistent bootable USB drive from iso gusblake Linux - General 8 12-12-2010 08:14 AM
Convert bootable USB into ISO m1_davidson Linux - General 13 03-06-2010 01:10 PM
[SOLVED] ISO to bootable flash drive Steve W Linux - Software 4 03-08-2009 05:42 AM
Create Bootable Simply Mepis USB drive from CD ISO duryodhan MEPIS 0 11-16-2006 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration