Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jan 2020 00:29:07 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Michael Sierchio <kudzu@tenebras.com>
Cc:        "Vlad D. Markov" <dvoich@aim.com>, FreeBSD Questions <freebsd-questions@freebsd.org>, Polytropon <freebsd@edvax.de>
Subject:   Re: Why is rufus not available under FreeBSD ?
Message-ID:  <20200130002907.4f171675.freebsd@edvax.de>
In-Reply-To: <CAHu1Y73JVs3sh=Hb74=FUBFY4Eg6K6u-yo-jPaqDPNHnFpMJug@mail.gmail.com>
References:  <DB8PR06MB64422AD5DE4E135FAF90F757F60A0@DB8PR06MB6442.eurprd06.prod.outlook.com> <d01bf19b-b616-404b-903c-6e4f1e63f941@yggdrasil.evilham.com> <20200128174759.38f5db42.freebsd@edvax.de> <DB8PR06MB64422D72513259DB4F1A4932F6050@DB8PR06MB6442.eurprd06.prod.outlook.com> <20200129043720.d90f1785.freebsd@edvax.de> <20200129151456.a0394d3f8263158b26e92f99@aim.com> <CAHu1Y73JVs3sh=Hb74=FUBFY4Eg6K6u-yo-jPaqDPNHnFpMJug@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200130002907.4f171675.freebsd>