Why is rufus not available under FreeBSD ?

Polytropon freebsd at edvax.de
Wed Jan 29 23:29:14 UTC 2020


On Wed, 29 Jan 2020 15:00:20 -0800, Michael Sierchio wrote:
> One small inline note below...
> 
> On Wed, Jan 29, 2020 at 12:15 PM Vlad D. Markov via freebsd-questions <
> freebsd-questions at freebsd.org> wrote:
> 
> For some reason I wanted a bootable dos usb in the distant past. I found
> > this on my computer:
> >
> > #!/bin/sh
> >
> > # empty the disk of all data
> > dd if=/dev/zero of=/dev/da0 bs=1m count=2
> >
> 
> If you're going to create a gpart partition scheme to the disk, you want to
> erase the beginning and end (in the case there was already gpart scheme)
> 
> BOOTSIZ="128k"
> 
> DISK="$1"
> 
> 
> offset=`diskinfo $DISK | awk '{ print $4 - 128 }'`
> 
> dd if=/dev/zero of=/dev/$DISK bs=${BOOTSIZ} count=1
> 
> dd if=/dev/zero of=/dev/$DISK seek=$offset
> 
> Or the equivalent..

Does this require the use of

	# sysctl kern.geom.debugflags=16

to allow writing to the device as shown above? It shouldn't be
needed, if I remember correctly (only if the drive to be modified
is the drive FreeBSD is booted from), but I could be wrong...




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list