You are not logged in.

#1 2024-07-24 21:54:09

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 245
Website

failed to run mkntfs one partition

I want to make new partitions with their own filesystem (btrfs, ntfs and ext4) on an old external usb drive. I first created new partitions with fdisk then ran mkfs

I ran the following command:

# mkntfs -L merdoz /dev/sda2

and the following error message was returned:

Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes: 100% - Done.
Creating NTFS volume structures.
Error writing to /dev/sda2: Input/output error
Error writing non-resident attribute value.
add_attr_sd failed: Input/output error
Couldn't create root directory: Input/output error
Failed to fsync device /dev/sda2: Input/output error
Warning: Could not close /dev/sda2: Input/output error

Looking at the journal, I found a lot of similar block of lines as these:

Jul 24 16:46:48 magnolia kernel: I/O error, dev sda, sector 1467682937 op 0x1:(WRITE) flags 0x100000 phys_seg 81 prio class 0
Jul 24 16:46:48 magnolia kernel: blk_print_req_error: 3253 callbacks suppressed
Jul 24 16:46:48 magnolia kernel: sd 8:0:0:0: [sda] tag#0 CDB: Write(10) 2a 00 57 7b 10 79 00 00 51 00
Jul 24 16:46:48 magnolia kernel: sd 8:0:0:0: [sda] tag#0 Add. Sense: Medium not present
Jul 24 16:46:48 magnolia kernel: sd 8:0:0:0: [sda] tag#0 Sense Key : Not Ready [current] 
Jul 24 16:46:48 magnolia kernel: sd 8:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
Jul 24 16:46:48 magnolia kernel: scsi_io_completion_action: 3253 callbacks suppressed
Jul 24 16:46:47 magnolia kernel: Buffer I/O error on dev sda2, logical block 419066721, lost async page write

I want a partition which can be read from my two machines, arch and w10 and choosed NTFS. Any idea why making NTFS filesystem failed? Making btrfs and ext4 was done with no error.

Thank you for help.

Last edited by gabx (2024-07-24 22:16:37)

Offline

#2 2024-07-29 09:42:44

ua4000
Member
Registered: 2015-10-14
Posts: 554

Re: failed to run mkntfs one partition

gabx wrote:

an old external usb drive.

Looks like a faulty drive, usb chip, or bad cable.
I propose to have a look at the disk health, https://wiki.archlinux.org/title/S.M.A.R.T.
but maybe your usb case does not support it.
or a test with: https://wiki.archlinux.org/title/Badblocks

Another idea is to look out for usb port issue: if power saving is active and can be disabled.

Offline

#3 2024-07-29 11:27:10

cryptearth
Member
Registered: 2024-02-03
Posts: 2,104

Re: failed to run mkntfs one partition

gabx wrote:

I want a partition which can be read from my two machines, arch and w10 and choosed NTFS. Any idea why making NTFS filesystem failed? Making btrfs and ext4 was done with no error.

Thank you for help.

don't use ntfs on linux - if you want a filesystem to exchange data between windows, linux and mac use exFAT

Offline

Board footer

Powered by FluxBB