LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   copy the IMG to the USB device and make it bootable (https://www.linuxquestions.org/questions/debian-26/copy-the-img-to-the-usb-device-and-make-it-bootable-860035/)

cccc 02-01-2011 10:43 AM

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?

michaelk 02-01-2011 12:12 PM

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

cccc 02-01-2011 01:11 PM

Thx a lot, using:
Code:

dd if=binary.img of=/dev/sda
works well.


All times are GMT -5. The time now is 03:50 AM.