Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2017 18:50:35 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        <freebsd-questions@freebsd.org>
Subject:   Re: dd image not working
Message-ID:  <4ce88806-41f9-4323-b0ef-53d5251a380a@unixarea.de>
In-Reply-To: <c43fa169a6204b7e534ce0d86b6a4073.squirrel@webmail.harte-lyne.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
El jueves, 20 de abril de 2017 18:01:07 (CEST), James B. Byrne=20
<byrnejb@harte-lyne.ca> escribi=C3=B3:
> I am trying to create a bootable USB image for FreeBSD.  The device
> name of the USB flash memory appears to me to be /dev/sb1
>=20
> # mount -l
> . . .
> /dev/sr0 on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev)
> none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
> /dev/sdb1 on /media/KINGSTON type vfat
> (rw,nosuid,nodev,uhelper=3Dudisks,uid=3D500,gid=3D500,shortname=3Dmixed,dma=
sk=3D0077,utf8=3D1,flush)
> #
>=20
> I dismount that device
>=20
> # umount /dev/sdb1
>=20
> and check
>=20
> # mount -l
> . . .
> /dev/sr0 on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev)
> [Bluebirds]
> none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
> #
>=20
> Now I run dd
> # dd
> if=3D/var/data/disk_images/FreeBSD/FreeBSD-11.0-RELEASE-i386-memstick.img
> of=3D/dev/sbd1 bs=3D512 conv=3Dsync
> 1256080+0 records in
> 1256080+0 records out
> 643112960 bytes (643 MB) copied, 1.92347 s, 334 MB/s
> #
>=20
>=20
> But the usb key does not appear to have been altered at all.  If I
> remove it and reinsert then it automounts with the same information as
> before:
>  # mount -l
> . . .
> /dev/sr0 on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev)
> [Bluebirds]
> none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
> /dev/sdb1 on /media/KINGSTON type vfat
> (rw,nosuid,nodev,uhelper=3Dudisks,uid=3D500,gid=3D500,shortname=3Dmixed,dma=
sk=3D0077,utf8=3D1,flush)
> [KINGSTON]
>=20

please show

# fdisk /dev/sdb

I think you should dd to /dev/sdb and not to sdb1

matthias



--=20
Sent from my Ubuntu phone
http://www.unixarea.de/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ce88806-41f9-4323-b0ef-53d5251a380a>