LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-13-2012, 06:00 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Re burning liveCD on USB stick making the latter bootable


Hi all,

How to burn a live CD on USB pendrive making the latter bootable.

I tried;
su -c 'dd if=/path_to/Live_cd.iso of=/dev/sdb1''X'' bs=8M'

/dev/sdb1 is the pendrive.

It burnt the live cd on the pendrive. But latter won't boot.

Pls help. TIA

B.R.
satimis
 
Old 06-13-2012, 06:32 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Try unetbootin:

http://unetbootin.sourceforge.net/

It's probably available from Ubuntu's repositories.
 
Old 06-13-2012, 06:59 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

Pendrivelinux provides simplified information to make it easy for anyone to install, boot, and run their favorite Gnu/Linux Distribution from a portable flash drive! Boot and run Linux from a USB flash memory'.

Live USB_Wiki 'A live USB is a USB flash drive or a USB external hard disk drive containing a full operating system which can be booted. Live USBs are closely related to live CDs, but typically have the ability to save settings and permanently install software packages back onto the USB device.' Links: 'system administration, data recovery method'.
Wiki includes a distribution table reference.

HTH!
 
Old 06-13-2012, 04:43 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
This is your error. "of=/dev/sdb1''X'' bs=8M'"

Use simply the /dev/sdb and be sure sdb is that flash.

This assumes you have a hybrid iso image and that you don't care about the installed size to the drive and a few other yada yada's.


I used to use the www.pendrivelinux tools and many are good. However, every distro made in the last ten or so years can be installed to a usb. I simply use the distro's installer feature and be very careful where the boot loader goes. To be safe I always chicken out and use a virtual machine for this task.
 
Old 06-13-2012, 06:45 PM   #5
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
A normal iso file won't boot when copied via dd to a usb stick. Fedora and a few other distros construct their iso files in such a way as to be bootable from both cd/dvd drives and usb sticks. Not sure what that "X" is doing in your dd command; when copying a Fedora livecd iso file to a usb stick, it looks something like this:
Code:
sudo dd if=<path-to-iso-file> of="/dev/<usb-device>" bs=8M
 
Old 06-13-2012, 09:07 PM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi all,

Lot of thanks for your advice.

Several years back I did many times using live CD to create bootable pendrive. No additional software was needed, only command lines and no need burning the *.iso on CD. Unfortunately I forgot the steps. I spent almost 2 days searching around my database as well as googling Internet without result.

The steps on;
http://www.pendrivelinux.com/install...nux/#more-4080

solved part of my problem. The live USB thus created couldn't boot. I suppose it needs the *.iso image burned on CD.

I played around with ubuntu-12.04-cloud-live-amd64.iso download on;
http://cdimage.ubuntu.com/ubuntu-clo...eleases/12.04/

without burning it on CD. I booted it on VM of VirtualBox without problem. I could play around the live cloud on VM. Then I ran the steps of "pendrivelinux" creating a live USB, also on the same VM. The steps went through without complaint. Unforturnately the live USB created can't boot on physical PC. I must complete this step making sure the live USB can boot a physical PC before going further to make it boot on VM. It is a different approach.

That is the complete story. I'm now stucked.

B.R.
satimis
 
Old 06-13-2012, 09:08 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
"This assumes you have a hybrid iso image"

A hybrid may be stated on the distro site or just attempted.


Otherwise the choice of live installers may work. Not all can work with a live installer.
 
Old 06-14-2012, 02:52 AM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by jefro View Post
"This assumes you have a hybrid iso image"

A hybrid may be stated on the distro site or just attempted.


Otherwise the choice of live installers may work. Not all can work with a live installer.
Is there any possible breakthrough?

satimis
 
Old 06-14-2012, 03:31 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Again see this.

"This is your error. "of=/dev/sdb1''X'' bs=8M'"

Use simply the /dev/sdb and be sure sdb is that flash."

I meant the statement ought to be fully this.


From root or use sudo

dd if=/path_to/Live_cd.iso of=/dev/sdb


I make live usb's all the time in a virtual machine. What you may be mistaking is that you need to remove the VM hard drive and install the system then to the "ATTACHED" usb flash drive. Then follow the install program.

Last edited by jefro; 06-14-2012 at 03:36 PM.
 
Old 06-14-2012, 09:00 PM   #10
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by jefro View Post
Again see this.

"This is your error. "of=/dev/sdb1''X'' bs=8M'"

Use simply the /dev/sdb and be sure sdb is that flash."

I meant the statement ought to be fully this.


From root or use sudo

dd if=/path_to/Live_cd.iso of=/dev/sdb


I make live usb's all the time in a virtual machine. What you may be mistaking is that you need to remove the VM hard drive and install the system then to the "ATTACHED" usb flash drive. Then follow the install program.
Hi jefro,

Tks for your advice.

I already have a live USB pendrive created according to;

How to install Linux Mint via USB
http://community.linuxmint.com/tutorial/view/744

The steps worked seamlessly. Now the USB pendrive can boot physical PC. However it can't boot VM. I created a raw disk to do the job, but still having a minor defect which I'm now trying to correct

B.R.
satimis
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a USB Stick Bootable RHEL5 from iso divyashree Linux - Newbie 6 09-08-2010 12:23 AM
Problem making bootable usb stick for Clonezilla Completely Clueless Linux - General 1 05-06-2010 07:35 AM
Making a USB stick bootable from a bootable cdrom cwwilson721 Slackware 2 10-23-2009 09:18 PM
Making a bootable usb stick nanderh Linux - Newbie 6 02-02-2009 04:37 AM
Making a usb stick bootable TotalLinuxNoob Linux - Software 2 01-05-2008 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:43 AM.

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