dd image not working

Matthias Apitz guru at unixarea.de
Thu Apr 20 16:50:40 UTC 2017


El jueves, 20 de abril de 2017 18:01:07 (CEST), James B. Byrne 
<byrnejb at harte-lyne.ca> escribió:
> 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
> 
> # 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=udisks,uid=500,gid=500,shortname=mixed,dmask=0077,utf8=1,flush)
> #
> 
> I dismount that device
> 
> # umount /dev/sdb1
> 
> and check
> 
> # 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)
> #
> 
> Now I run dd
> # dd
> if=/var/data/disk_images/FreeBSD/FreeBSD-11.0-RELEASE-i386-memstick.img
> of=/dev/sbd1 bs=512 conv=sync
> 1256080+0 records in
> 1256080+0 records out
> 643112960 bytes (643 MB) copied, 1.92347 s, 334 MB/s
> #
> 
> 
> 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=udisks,uid=500,gid=500,shortname=mixed,dmask=0077,utf8=1,flush)
> [KINGSTON]
> 

please show

# fdisk /dev/sdb

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

matthias



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


More information about the freebsd-questions mailing list