Formatting USB stick

Status
Not open for further replies.

carpetburger

Cadet
Joined
Apr 8, 2014
Messages
3
How do I format my USB drive to get

sudo xzcat FreeNAS-9.2.2-RELEASE-x64.img.xz | dd of=/dev/da0 bs=64k

to work under Ubuntu? Current message is
dd: opening `/dev/sdb1': Permission denied
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
You are only running xzcat as root, but not dd. Try
Code:
xzcat FreeNAS-9.2.2-RELEASE-x64.img.xz | sudo dd of=/dev/da0 bs=64k 
 

carpetburger

Cadet
Joined
Apr 8, 2014
Messages
3
Thanks, one step forward. Successfully generated dd output to USB stick. Booting from the USB stick results in pages of # on my screen. Gave up after an hour. What do I expect? Documentation says I get the screen with 11 options (as I do with 8.3 memory stick). Partition on USB stick has been destroyed by dd(?). Any ideas?
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
Yes, dd'ing the image destroys the original partitions. You have to use /dev/sdb (the whole device) and not /dev/sdb1 (the first partition) when using this method.

Alternatively, install FreeNAS from CD :)
 
Status
Not open for further replies.
Top