0

I am trying to format a USB drive, however I am faced with the following error:

sh-3.2# diskutil unmountDisk force /dev/disk3
Forced unmount of all volumes on disk3 was successful
sh-3.2# diskutil eraseDisk JHFS+ MacOS /dev/disk3
Started erase on disk3
Unmounting disk
Error: -69760: Unable to write to the last block of the device
sh-3.2# lsof | grep disk3
sh-3.2# 

Could someone help me to figure out what to do to resolve this issue?

EDIT 2:

# fdisk -f boothfs /dev/disk3
Disk: /dev/disk3    geometry: 121601/255/63 [1953525168 sectors]
Signature: 0x0
         Starting       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: could not open MBR file /usr/standalone/i386/boot0: No such file or directory

    -----------------------------------------------------
    ------ ATTENTION - UPDATING MASTER BOOT RECORD ------
    -----------------------------------------------------

Do you wish to write new MBR and partition table? [n] y

sh-3.2# 
sh-3.2# diskutil list
/dev/disk0 (internal, physical):
   #:                       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 Recovery HD             650.0 MB   disk0s3

/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           +120.1 GB   disk1
                                 Logical Volume on disk0s2
                                 7887C476-CBE0-4D10-B95A-5C79F83B20D7
                                 Unencrypted

/dev/disk3 (external, physical):
   #:                       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 entire device, not just one partition!
Proceed anyway? (y,n) y
 Warning: could not erase sector 2: Attempt to write block to filesystem resulted in short write
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
61054976 inodes, 244190646 blocks
12209532 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2392850432
7453 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
        102400000, 214990848
Allocating group tables: done                            
Warning: could not read block 0: Attempt to read block from filesystem resulted in short read
Warning: could not erase sector 0: Attempt to write block to filesystem resulted in short write
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:    0/7453
Warning, had trouble writing out superblocks.
  • Thank you, for your edit, I was thinking about my bad question. – chepe lucho Aug 16 '18 at 22:16
  • macOS seems to be picky when it comes to formatting drives. Many others have had similar issues, including me. I solved it as follows: I formatted the drive in Windows first and then reformatted it with Disk Utility. Others see the culprit in the connector or cable, i'd recommend that you test with another cable. If possible, test the hard disk in another enclosure. – jaume Aug 17 '18 at 11:17
  • @jaume, How to do it (Which Method)? Format Drive:\ or Using Disk Part or Disk Management? Thanks – chepe lucho Aug 18 '18 at 3:37
  • Disk Management is the right tool for this job. Launch it, identify the USB drive and erase any existing partitions. Format the drive to NTFS (assign a drive letter and test that it mounts properly). Eject it, plug it in your Mac and format it with Disk Utility. That's the procedure that worked for me, could you try it and report back? – jaume Aug 18 '18 at 11:18
  • Thanks I was trying with Windows 7, but is not working... – chepe lucho Aug 18 '18 at 22:36

You must log in to answer this question.

Browse other questions tagged .