[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian live on usb.



An off-list commenter pointed out that, to ensure all bytes are safely written from the buffer to the physical device, "sync" should be run after "dd" before removing the device. The command becomes:

dd if=live.iso of=/dev/sdX bs=4M; sync

Kind regards,
Ben.

On 02/09/16 00:52, Ben Caradoc-Davies wrote:
Under Linux I do it by running the following command as root:

dd if=live.iso of=/dev/sdX bs=4M

where X is often "b". I have replaced this with "X" here to prevent
accidents. This command writes the raw bytes of the live iso image to
the raw device. This should work for an isohybrid image and a USB thumb
drive large enough to hold it.

Be very very very careful to use the correct /dev/sdX as the target will
be overwritten ("a" is often your main hard disk). Plug in your USB
device and look at kernel messages with "dmesg". For example, when I
plug in a USB drive, I see:

[sdb] Attached SCSI removable disk

Check every time because USB drives are assigned the first available
letter and you do not want to overwrite the wrong drive.

Kind regards,
Ben.

On 01/09/16 23:30, Yula ajdu wrote:
Hi. I try to install a debian live iso on a usb and I can`t do it so
give me some information how to do it? yulaajdu@yahoo.ca Thank you.


--
Ben Caradoc-Davies <ben@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand


Reply to: