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
Has thanked: 0
Been thanked: 0

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

Post by scjet » Mon Dec 02, 2013 9:23 am

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: 1164
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 0
Been thanked: 2 times

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

Post by ericbsd » Tue Dec 03, 2013 6:31 am

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
Has thanked: 0
Been thanked: 0

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

Post by scjet » Thu Dec 05, 2013 2:36 am

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: 1164
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 0
Been thanked: 2 times

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

Post by ericbsd » Thu Dec 05, 2013 6:24 am

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
Has thanked: 0
Been thanked: 0

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

Post by scjet » Fri Dec 06, 2013 9:50 am

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