Date: Wed, 29 Jan 2020 15:00:20 -0800 From: Michael Sierchio <kudzu@tenebras.com> To: "Vlad D. Markov" <dvoich@aim.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org>, Polytropon <freebsd@edvax.de> Subject: Re: Why is rufus not available under FreeBSD ? Message-ID: <CAHu1Y73JVs3sh=Hb74=FUBFY4Eg6K6u-yo-jPaqDPNHnFpMJug@mail.gmail.com> In-Reply-To: <20200129151456.a0394d3f8263158b26e92f99@aim.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>
next in thread | previous in thread | raw e-mail | index | archive | help
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=3D/dev/zero of=3D/dev/da0 bs=3D1m count=3D2 > 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=3D"128k" DISK=3D"$1" offset=3D`diskinfo $DISK | awk '{ print $4 - 128 }'` dd if=3D/dev/zero of=3D/dev/$DISK bs=3D${BOOTSIZ} count=3D1 dd if=3D/dev/zero of=3D/dev/$DISK seek=3D$offset Or the equivalent.. > # Create a master boot record on the disk > gpart create -s MBR da0 > > # add a 64MB slice (partition) of a type > gpart add -s 64m -t \!6 da0 #fat16 > #gpart add -s 64m -t \!12 da0 #fat32 > > # set the first slice (partitiion) active on dev da0 > gpart set -a active -i 1 da0 > > # place the bootcode in the MBR > gpart bootcode -b /boot/mbr da0 > > # make file system nd install bootstrap code > newfs_msdos -B /home/vlad/mkDos/bootsect -o 63 /dev/da0s1 > #newfs_msdos -F 32 -c 1 -S 512 -C 34089472 -B /home/vlad/mkDos/bootsect > -o 63 /dev/da0s1 > > mount_msdosfs /dev/da0s1 /mnt > cd /mnt && touch IO.SYS MSDOS.SYS COMMAND.COM > cp /home/vlad/mkDos/dosFiles/* /mnt > > umount /mnt > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > --=20 "Well," Brahm=C4=81 said, "even after ten thousand explanations, a fool is = no wiser, but an intelligent person requires only two thousand five hundred." - The Mah=C4=81bh=C4=81rata
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHu1Y73JVs3sh=Hb74=FUBFY4Eg6K6u-yo-jPaqDPNHnFpMJug>