I’m attempting to format a USB drive, nevertheless I’m confronted with the next error:
sh-3.2# diskutil unmountDisk power /dev/disk3
Compelled unmount of all volumes on disk3 was profitable
sh-3.2# diskutil eraseDisk JHFS+ MacOS /dev/disk3
Began erase on disk3
Unmounting disk
Error: -69760: Unable to put in writing to the final block of the gadget
sh-3.2# lsof | grep disk3
sh-3.2#
May somebody assist me to determine what to do to resolve this subject?
EDIT 2:
# fdisk -f boothfs /dev/disk3
Disk: /dev/disk3 geometry: 121601/255/63 [1953525168 sectors]
Signature: 0x0
Beginning Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
sh-3.2# fdisk -i -a boothfs /dev/disk3
fdisk: couldn't open MBR file /usr/standalone/i386/boot0: No such file or listing
-----------------------------------------------------
------ ATTENTION - UPDATING MASTER BOOT RECORD ------
-----------------------------------------------------
Do you want to write new MBR and partition desk? [n] y
sh-3.2#
sh-3.2# diskutil record
/dev/disk0 (inside, bodily):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage Macintosh HD 120.5 GB disk0s2
3: Apple_Boot Restoration HD 650.0 MB disk0s3
/dev/disk1 (inside, digital):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD +120.1 GB disk1
Logical Quantity on disk0s2
7887C476-CBE0-4D10-B95A-5C79F83B20D7
Unencrypted
/dev/disk3 (exterior, bodily):
#: TYPE NAME SIZE IDENTIFIER
0: *1.0 TB disk3
sh-3.2#
EDIT 3 (In CentOS 7)
# mkfs.ext4 /dev/sdc
mke2fs 1.42.9 (28-Dec-2013)
/dev/sdc is complete gadget, not only one partition!
Proceed anyway? (y,n) y
Warning: couldn't erase sector 2: Try to put in writing block to filesystem resulted briefly write
Filesystem label=
OS kind: Linux
Block measurement=4096 (log=2)
Fragment measurement=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
61054976 inodes, 244190646 blocks
12209532 blocks (5.00%) reserved for the tremendous consumer
First knowledge block=0
Most filesystem blocks=2392850432
7453 block teams
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups saved on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
Allocating group tables: finished
Warning: couldn't learn block 0: Try to learn block from filesystem resulted briefly learn
Warning: couldn't erase sector 0: Try to put in writing block to filesystem resulted briefly write
Writing inode tables: finished
Creating journal (32768 blocks): finished
Writing superblocks and filesystem accounting data: 0/7453
Warning, had bother writing out superblocks.