Bootable GhostBSD USB-flashdrive (using Linux 'dd').

Questions about the installation of FreeBSD
Post Reply
scjet
Posts: 4
Joined: Mon Dec 02, 2013 7:58 am

Bootable GhostBSD USB-flashdrive (using Linux 'dd').

Post by scjet »

According to the GhostBSD faq here:
http://ghostbsd.org -> HELP -> FAQ:
http://wiki.ghostbsd.org/index.php?title=FAQ#On_Linux

Code: Select all

sudo dd if=GhostBSD-3.5-amd64.img of=/dev/sdf bs=1m conv=sync
Except that I got an error:

Code: Select all

dd: invalid number ‘1m’
(-Linux don't like the small "m", for some strange reason it need to be "M" ) ?

Can someone please correct the above (homepage) GhostBSD "FAQ" wiki with one of the below corrections ?

first off, you may have to prepare you're usb flash drive, by removing any existing partitions (aka sdx1, or sdx2,...)
If you have "gparted" installed in your Linux then, from a "terminal", simply run:
sudo gparted -> Select your USB drive, (Example: /dev/sdx), then -> "Device " -> "Create Partition Table" (by default it'll create a standard mbr / MSDOS Partition Table):

Here's what does work, ( creating a bootable USB of GhostBSD, using Arch Linux):

Code: Select all

sudo dd if=GhostBSD-3.0-i386.img of=/dev/sdx bs=1M
Or,

Code: Select all

dd if=GhostBSD3.5-openbox-amd64.img of=/dev/sdx bs=1M conv=sync
Or,

Code: Select all

dd if=GhostBSD3.5-openbox-amd64.img of=/dev/sdx bs=64k conv=sync
[where "x" means whatever the "sd" -devicename of your usb flashdrive is]

Note: Can someone verify if this, in fact, is the case across different Linux distro's (aka Ubumtu, Redhat, ...)?
I verified this on Arch Linux, unfortunately, as we all know, Linux distro's are not "exactly" the same, + some of their "man" pages can be quite horrible. :roll:
Last edited by scjet on Fri Dec 06, 2013 9:44 am, edited 1 time in total.
User avatar
ericbsd
Developer
Posts: 2116
Joined: Mon Nov 19, 2012 7:54 pm

Re: Bootable GhostBSD USB-flashdrive (using Linux 'dd').

Post by ericbsd »

Try this it has worked for some people.

Code: Select all

sudo dd if=GhostBSD-3.0-i386.img of=/dev/sdx bs=1M && sync 
scjet
Posts: 4
Joined: Mon Dec 02, 2013 7:58 am

Re: Bootable GhostBSD USB-flashdrive (using Linux 'dd').

Post by scjet »

ericbsd wrote:Try this it has worked for some people.

Code: Select all

sudo dd if=GhostBSD-3.0-i386.img of=/dev/sdx bs=1M && sync 
The first method I tried was same as above, but with "bs=1M ; sync" -but it didn't work,
hence maybe your "&&" is better since according to some docs:
"...&& execute 2nd command only when first command executed successfully (status 0)"

Thx.
User avatar
ericbsd
Developer
Posts: 2116
Joined: Mon Nov 19, 2012 7:54 pm

Re: Bootable GhostBSD USB-flashdrive (using Linux 'dd').

Post by ericbsd »

If that one don't work try

Code: Select all

sudo dd if=GhostBSD-3.0-i386.img of=/dev/sdx sz=1M && sync 
scjet
Posts: 4
Joined: Mon Dec 02, 2013 7:58 am

Re: Bootable GhostBSD USB-flashdrive (using Linux 'dd').

Post by scjet »

Hi Eric, if you read my top post, you'll see I have it working fine, with any of the 3 examples of "dd" lines that I listed.

I'm just saying "bs=1m" is not a valid command in Linux (specifically Arch Linux).
You need to modify your "FAQ", or "Help" section I think -the part where it gives "dd" example instructions for creating a bootable USB .img of GhostBSD using Linux?
... it needs to be "...bs=1M...", and NOT "bs=1m" ? (case-sensitive here in Linux).

and Hey by the way, GhostBSD is looking very good these days -nice work !
:)

Thanks
Last edited by adripillo12 on Mon Dec 09, 2013 8:56 am, edited 1 time in total.
Reason: Please do not use ????? and abbreviate words
Post Reply