LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 02-01-2011, 11:43 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,618

Rep: Reputation: 48
copy the IMG to the USB device and make it bootable


hi

I've done an image according to:

http://www.pendrivelinux.com/create-...-distribution/

then I've copied it using:
Code:
 
# fdisk -l

Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1145fa35

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         122      979933+  83  Linux
/dev/hda2             123        7660    60548985    5  Extended
/dev/hda3            7661        8268     4883760   83  Linux
/dev/hda5             123         487     2931831   82  Linux swap / Solaris
/dev/hda6             488        2675    17575078+  83  Linux
/dev/hda7            2676        7538    39062016   83  Linux
/dev/hda8            7539        7660      979933+  83  Linux

Disk /dev/sda: 1058 MB, 1058537472 bytes
255 heads, 63 sectors/track, 128 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00346e1e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         129     1033696+   c  W95 FAT32 (LBA)
Partition 1 has different physical/logical endings:
     phys=(127, 254, 63) logical=(128, 176, 48)

# dd if=binary.img of=/dev/sda1
575488+0 records in
575488+0 records out
294649856 bytes (295 MB) copied, 42.2472 s, 7.0 MB/s
but cannot boot from this USB stick.
"First boot device" in BIOS is USB.
What's wrong?
 
Old 02-01-2011, 01:12 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,152

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Not sure if what you posted is a typo but you need to copy the image to the device and not the partition. i.e.
dd if=binary.img of=/dev/sda
 
1 members found this post helpful.
Old 02-01-2011, 02:11 PM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,618

Original Poster
Rep: Reputation: 48
Thx a lot, using:
Code:
dd if=binary.img of=/dev/sda
works well.
 
  


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
How do I use DD to make a usb.img? linus72 Linux - General 11 01-16-2010 11:11 AM
Can't get bootable USB to work on Asus Eee 1000H (.img works, but not .iso) Zarniwoop79 Linux - Laptop and Netbook 1 09-30-2009 06:02 PM
How to copy OS disk of 76 GB to 146GB and make it bootable grens Linux - General 1 09-18-2008 12:25 PM
How do i make a .img file into a bootable usb in windows xp so i can install fedora7 cwere4 Linux - Newbie 4 06-25-2007 12:49 PM
how to copy linux cd and make it bootable matt_w_lambert Linux - Software 1 03-30-2003 10:01 PM


All times are GMT -5. The time now is 10:21 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration