Announcement

Collapse
No announcement yet.

External NTFS HDD only mounts from terminal

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    External NTFS HDD only mounts from terminal

    I've got this external, NTFS-formatted HDD which won't mount from the "Disks & Devices" menu.
    I cannot reformat to ext4, since I need it to be cross-compatible between with Windows at the moment.
    Pressing mount returns "Could not mount this device" and checking for errors returns "This device has no errors".

    I keep having to mount from the terminal (Konsole) using the following command:

    Code:
    sudo ntfsfix -b -d /dev/disk/by-id/usb-IB-_366-C31_123456789150-0:0-part1
    After typing my password, I get this output, which makes it look like the drive is in perfect, working order:

    Code:
    Mounting volume... OK
    Processing of $MFT and $MFTMirr completed successfully.
    Checking the alternate boot sector... OK
    NTFS volume version is 3.1.
    Going to un-mark the bad clusters ($BadClus)... No bad clusters...OK
    NTFS partition /dev/disk/by-id/usb-IB-_366-C31_123456789150-0:0-part1 was processed successfully.
    The drive can then be read from and written to with no problems.

    Any idea what the problem is?
    Thank you!

    ​
    Last edited by LinuxNewbie; Oct 21, 2026, 01:33 PM.

    #2
    I'm not sure if this is a recent change or not, but NTFS needs sudo to mount so clicking on it in Dolphin doesn't work any longer. So why you need to use ntfsfix to mount it is another issue. In short, you shouldn't.

    I suggest this: First, label the file system so you don't have to type in the entire UUID or dev ID to mount it. For example, use the label "winshare". Then try this command:
    Code:
    sudo mount -t ntfs-3g /dev/disk/by-label/winshare /mnt/<some folder>
    Assuming that works, you could create a Desktop file to mount it with an Icon on your desktop or whatever.

    Please Read Me

    Comment


      #3
      Originally posted by oshunluvr View Post
      I'm not sure if this is a recent change or not, but NTFS needs sudo to mount so clicking on it in Dolphin doesn't work any longer. So why you need to use ntfsfix to mount it is another issue. In short, you shouldn't.

      I suggest this: First, label the file system so you don't have to type in the entire UUID or dev ID to mount it. For example, use the label "winshare". Then try this command:
      Code:
      sudo mount -t ntfs-3g /dev/disk/by-label/winshare /mnt/<some folder>
      Assuming that works, you could create a Desktop file to mount it with an Icon on your desktop or whatever.
      It's just strange, because I've got another internal NTFS HDD.
      This drive copies files to my external HDD and is always mounted, no matter what.

      That aside, how do I label my external drive's file system, and how would a .desktop file for mounting an HDD look?
      Thanks!

      Comment


        #4
        Originally posted by LinuxNewbie View Post
        It's just strange, because I've got another internal NTFS HDD.
        This drive copies files to my external HDD and is always mounted, no matter what.
        Because it is identified in the /etc/fstab file which is accessed during boot 'by root'.
        Slava Ukraini! 🇺🇦
        Windows no longer obstruct my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes​

        Comment


          #5
          Originally posted by LinuxNewbie View Post
          That aside, how do I label my external drive's file system...
          Well, adding a lable can be done from the command line, but probably easier if you use KDE Partition Manager.

          Select the file system in question, click on "Properties" and edit the "Label" field and then "Apply"

          Please Read Me

          Comment


            #6
            Originally posted by LinuxNewbie View Post
            ...and how would a .desktop file for mounting an HDD look?
            Thanks!
            Well, now that I think more about it, NTFS drives auto-mount fine for me if they are NOT in fstab. They won't mount only when they are in fstab.

            Still looking into this...

            Please Read Me

            Comment


              #7
              Originally posted by oshunluvr View Post
              Well, now that I think more about it, NTFS drives auto-mount fine for me if they are NOT in fstab. They won't mount only when they are in fstab.

              Still looking into this...
              Sorry to come back almost a month later.
              Have you found anything since posting this comment?
              Thank you!

              Comment


                #8
                plasma does a good job of auto mounting all my local drives using the default settings in Disks & Devices with both boxes checked and everything turned on (greyed out).

                ​ntfs drives nave only ever been a problem for me in linux when i tried to execute programs from there or when it needed to be repaired by windows (which you really cant do properly from linux).

                so i would suggest booting to windows and ruining all the windows diagnostic and repair options

                but before you leave linux, i would:

                remove or comment out any mention of the ntfs drives from fstab

                then set your settings > desktop session > to start with an empty session

                delete `~/.cache`

                and reboot

                if it still acting up, i would create a new user in linux and boot that account to see if has the same behavior

                if so you can run journalctl -S-5m --no-pager to see what might be happening
                ​
                some stuff i did: https://github.com/droidgoo

                Intel® Core™ i7-14700K | 64 GiB of RAM | AMD RX 6800

                Comment


                  #9
                  -run these when the drive is plugged in and before you run ntfsfix, so the drive is still in its failing state.
                  Code:
                  udisksctl mount -b /dev/disk/by-id/usb-IB-_366-C31_123456789150-0:0-part1
                  If it fails, the error message it prints is the useful part.

                  -To see the matching kernel messages right afterward, run:
                  Code:
                  journalctl -k -S -5m --no-pager
                  -Check whether any NTFS drive is listed in fstab:
                  Code:
                  grep -i ntfs /etc/fstab
                  If it prints nothing, no NTFS entries exist. If it prints lines, paste them all.

                  post output of all commands here
                  ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

                  Comment


                    #10
                    Originally posted by die.boer View Post
                    -run these when the drive is plugged in and before you run ntfsfix, so the drive is still in its failing state.
                    Code:
                    udisksctl mount -b /dev/disk/by-id/usb-IB-_366-C31_123456789150-0:0-part1
                    If it fails, the error message it prints is the useful part.

                    -To see the matching kernel messages right afterward, run:
                    Code:
                    journalctl -k -S -5m --no-pager
                    -Check whether any NTFS drive is listed in fstab:
                    Code:
                    grep -i ntfs /etc/fstab
                    If it prints nothing, no NTFS entries exist. If it prints lines, paste them all.

                    post output of all commands here
                    Here's the output for the three commands you posted:

                    Code:
                    [INPUT]
                    udisksctl mount -b /dev/disk/by-id/usb-IB-_366-C31_123456789150-0:0-part1​
                    
                    [OUTPUT]​
                    Error mounting /dev/sde1: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error mounting /dev/sde1 at /run/media/s
                    idney/4TB External Backup HDD: wrong fs type, bad option, bad superblock on /dev/sde1, missing codepage or helper pr
                    ogram, or other error
                    Code:
                    [INPUT]
                    journalctl -k -S -5m --no-pager​
                    
                    [OUTPUT]
                    nov 25 14:18:33 sidney-ms7821 kernel: [UFW BLOCK] IN=enp4s0 OUT= MAC=01:00:5e:00:00:01:24:2f:d0:f2:dd:28:08:00 SRC=1
                    92.168.0.1 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=12156 DF PROTO=2  
                    nov 25 14:20:25 sidney-ms7821 kernel: usb 4-4: new SuperSpeed USB device number 2 using xhci_hcd
                    nov 25 14:20:25 sidney-ms7821 kernel: usb 4-4: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
                    nov 25 14:20:25 sidney-ms7821 kernel: usb 4-4: New USB device strings: Mfr=2, Product=3, SerialNumber=1
                    nov 25 14:20:25 sidney-ms7821 kernel: usb 4-4: Product: IB-366-C31
                    nov 25 14:20:25 sidney-ms7821 kernel: usb 4-4: Manufacturer: ICY BOX
                    nov 25 14:20:25 sidney-ms7821 kernel: usb 4-4: SerialNumber: 123456789150
                    nov 25 14:20:25 sidney-ms7821 kernel: scsi host8: uas
                    nov 25 14:20:25 sidney-ms7821 kernel: scsi 8:0:0:0: Direct-Access     IB-      366-C31          0    PQ: 0 ANSI: 6
                    nov 25 14:20:25 sidney-ms7821 kernel: sd 8:0:0:0: Attached scsi generic sg6 type 0
                    nov 25 14:20:25 sidney-ms7821 kernel: sd 8:0:0:0: [sde] Spinning up disk...
                    nov 25 14:20:38 sidney-ms7821 kernel: ............
                    nov 25 14:20:38 sidney-ms7821 kernel: [UFW BLOCK] IN=enp4s0 OUT= MAC=01:00:5e:00:00:01:24:2f:d0:f2:dd:28:08:00 SRC=1
                    92.168.0.1 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=15822 DF PROTO=2  
                    nov 25 14:20:40 sidney-ms7821 kernel: ..ready
                    nov 25 14:20:40 sidney-ms7821 kernel: sd 8:0:0:0: [sde] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
                    nov 25 14:20:40 sidney-ms7821 kernel: sd 8:0:0:0: [sde] 4096-byte physical blocks
                    nov 25 14:20:40 sidney-ms7821 kernel: sd 8:0:0:0: [sde] Write Protect is off
                    nov 25 14:20:40 sidney-ms7821 kernel: sd 8:0:0:0: [sde] Mode Sense: 43 00 00 00
                    nov 25 14:20:40 sidney-ms7821 kernel: sd 8:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support D
                    PO or FUA
                    nov 25 14:20:40 sidney-ms7821 kernel: sd 8:0:0:0: [sde] Preferred minimum I/O size 512 bytes not a multiple of physi
                    cal block size (4096 bytes)
                    nov 25 14:20:40 sidney-ms7821 kernel: sd 8:0:0:0: [sde] Optimal transfer size 33553920 bytes not a multiple of physi
                    cal block size (4096 bytes)
                    nov 25 14:20:40 sidney-ms7821 kernel:  sde: sde1
                    nov 25 14:20:40 sidney-ms7821 kernel: sd 8:0:0:0: [sde] Attached SCSI disk
                    nov 25 14:20:40 sidney-ms7821 kernel: ntfs3(sde1): It is recommended to use chkdsk.
                    nov 25 14:20:40 sidney-ms7821 kernel: ntfs3(sde1): volume is dirty and "force" flag is not set!
                    nov 25 14:20:41 sidney-ms7821 kernel: [UFW BLOCK] IN=enp4s0 OUT= MAC=01:00:5e:00:00:fb:46:c2:21:e7:52:4d:08:00 SRC=1
                    92.168.0.195 DST=224.0.0.251 LEN=32 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2  
                    nov 25 14:20:58 sidney-ms7821 kernel: ntfs3(sde1): It is recommended to use chkdsk.
                    nov 25 14:20:58 sidney-ms7821 kernel: ntfs3(sde1): volume is dirty and "force" flag is not set!
                    nov 25 14:21:06 sidney-ms7821 kernel: ntfs3(sde1): It is recommended to use chkdsk.
                    nov 25 14:21:06 sidney-ms7821 kernel: ntfs3(sde1): volume is dirty and "force" flag is not set!​
                    Code:
                    [INPUT]
                    grep -i ntfs /etc/fstab​
                    
                    [OUTPUT]​
                    (Empty output)

                    Comment


                      #11
                      The kernel's ntfs3 driver is refusing to mount the drive because its NTFS dirty flag is set. The empty grep result also rules out fstab, so it isn't involved.​
                      ntfsfix -d clears that flag, and then ntfs3 is happy to mount. You can drop -b, since you don't need the bad-cluster reset:​
                      Code:
                      sudo ntfsfix -d /dev/disk/by-id/usb-IB-_366-C31_123456789150-0:0-part1
                      Why the flag keeps coming back
                      Something is leaving the volume in an unclean state each time. The most likely causes, given your logs:
                      1. Unclean disconnects. Always unmount or "Safely remove" before unplugging or powering off the enclosure. This is the most common cause.
                      2. Windows Fast Startup. If this drive is ever used on a Windows machine (or a dual-boot), disable Fast Startup there, and eject the drive from Windows before shutting down.
                      3. Power-saving or spin-down in the enclosure. Your log shows the drive taking about 15 seconds to spin up (Spinning up disk...), so it's a spinning HDD that sleeps. If the enclosure or USB port cuts power mid-write, the flag stays set. Try a different USB port, ideally one directly on the motherboard rather than a front-panel or hub port. If the enclosure has its own power adapter, use it.

                      ​If you want to rule out a real filesystem problem rather than just a stale flag, boot into Windows once and run chkdsk X: /f on the drive. ntfsfix only clears flags and does very light repair, so chkdsk is the proper check.​

                      If the flag keeps returning even after clean unmounts and a different port, post the output of
                      Code:
                      sudo smartctl -a -d sat /dev/sde
                      and we can check whether the drive itself is the problem.​
                      ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

                      Comment


                        #12
                        Originally posted by die.boer View Post
                        The kernel's ntfs3 driver is refusing to mount the drive because its NTFS dirty flag is set. The empty grep result also rules out fstab, so it isn't involved.​
                        ntfsfix -d clears that flag, and then ntfs3 is happy to mount. You can drop -b, since you don't need the bad-cluster reset:​
                        Code:
                        sudo ntfsfix -d /dev/disk/by-id/usb-IB-_366-C31_123456789150-0:0-part1
                        Why the flag keeps coming back
                        Something is leaving the volume in an unclean state each time. The most likely causes, given your logs:
                        1. Unclean disconnects. Always unmount or "Safely remove" before unplugging or powering off the enclosure. This is the most common cause.
                        2. Windows Fast Startup. If this drive is ever used on a Windows machine (or a dual-boot), disable Fast Startup there, and eject the drive from Windows before shutting down.
                        3. Power-saving or spin-down in the enclosure. Your log shows the drive taking about 15 seconds to spin up (Spinning up disk...), so it's a spinning HDD that sleeps. If the enclosure or USB port cuts power mid-write, the flag stays set. Try a different USB port, ideally one directly on the motherboard rather than a front-panel or hub port. If the enclosure has its own power adapter, use it.

                        ​If you want to rule out a real filesystem problem rather than just a stale flag, boot into Windows once and run chkdsk X: /f on the drive. ntfsfix only clears flags and does very light repair, so chkdsk is the proper check.​

                        If the flag keeps returning even after clean unmounts and a different port, post the output of
                        Code:
                        sudo smartctl -a -d sat /dev/sde
                        and we can check whether the drive itself is the problem.​
                        I ran your first command, which mounted the drive with no issues.

                        Code:
                        [INPUT]
                        sudo ntfsfix -d /dev/disk/by-id/usb-IB-_366-C31_123456789150-0:0-part1
                        
                        [OUTPUT]
                        Mounting volume... OK
                        Processing of $MFT and $MFTMirr completed successfully.
                        Checking the alternate boot sector... OK
                        NTFS volume version is 3.1.
                        NTFS partition /dev/disk/by-id/usb-IB-_366-C31_123456789150-0:0-part1 was processed successfully.
                        I always follow advice #1, but hadn't tried #3. I also looked in my BIOS, and fast startup is disabled.

                        I can't currently do the chkdsk X: /f command, since I don't have a Windows partition/drive, but wish to keep my HDD NTFS-formatted.
                        This is because I am the only person I know who uses Linux, and in the event that I can't use my own PC, I need the drive to be formatted with a file-system that Windows understands.
                        Otherwise, I would use ext4 (damn you, Microsoft!).

                        Advice #1+3 didn't work, so here's the output from your second command.

                        Code:
                        [INPUT]
                        sudo smartctl -a -d sat /dev/sde​
                        
                        [OUTPUT]
                        smartctl 7.5 2025-04-30 r5714 [x86_64-linux-7.0.0-44-generic] (local build)
                        Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org
                        
                        Read Device Identity failed: scsi error no medium present
                        
                        If this is a USB connected device, look at the various --device=TYPE variants
                        A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
                        I'll probably take it to someone who has a Windows system this week.
                        Last edited by LinuxNewbie; Nov 25, 2026, 01:42 PM.

                        Comment

                        Users Viewing This Topic

                        Collapse

                        There are 0 users viewing this topic.

                        Working...
                        X