Difference between revisions of "Build a Live USB disk"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
On a single drive system the usb drive is likely on /dev/sdb (but be very sure of your drive. You will '''loose all data''' on what ever drive is specified as 'of=') | On a single drive system the usb drive is likely on /dev/sdb (but be very sure of your drive. You will '''loose all data''' on what ever drive is specified as 'of=') | ||
<pre>sudo dd if=disk.raw of=/dev/sdb bs=4k</pre> | <pre>sudo dd if=disk.raw of=/dev/sdb bs=4k</pre> | ||
+ | |||
+ | if = input file | ||
+ | of = output file | ||
+ | bs = block size | ||
this will take time, ~20 minutes | this will take time, ~20 minutes | ||
+ | |||
+ | ==rebuild partition table== | ||
+ | Some USB keys will require rebuilding of partition table (e.g. if initial dd write fails). Use GParted to rebuild partition table (default = MSDOS) |
Revision as of 18:30, 1 April 2010
find out the location of your USB drive
you can use the mount command to do this:
mount
On a single drive system the usb drive is likely on /dev/sdb (but be very sure of your drive. You will loose all data on what ever drive is specified as 'of=')
sudo dd if=disk.raw of=/dev/sdb bs=4k
if = input file of = output file bs = block size
this will take time, ~20 minutes
rebuild partition table
Some USB keys will require rebuilding of partition table (e.g. if initial dd write fails). Use GParted to rebuild partition table (default = MSDOS)