Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: Error mounting SSD

  1. #21
    Join Date
    Aug 2016
    Beans
    5

    Re: Error mounting SSD

    started having the same problem yesterday.

    i've been using 2 SSDs to dual boot my laptop for years.

    yesterday after ubuntu applied a live patch the laptop froze and the windows partition wont automatically mount anymore.

    for some reason dolphin says the error is in /dev/nvme0n1p3 when the winndows ssd partition to be mounted actually is /dev/nvme1n1p3

    Code:
    An error occurred while accessing 'Windows-SSD', the system responded: The requested operation has failed: 
    Error mounting /dev/nvme0n1p3 at /media/usuario/Windows-SSD1: 
    wrong fs type, bad option, bad superblock on /dev/nvme0n1p3, missing codepage or helper program, or other error
    i noticed that it does mount if i add it to /etc/fstab

    Code:
    /dev/nvme1n1p3   /media/usuario/Windows-SSD  ntfs   defaults,nofail   0 0
    but that is not what i had before and its not what i want, so i'll keep searching for an answer.

    if you found anything else, please let me know.

  2. #22
    Join Date
    Aug 2016
    Beans
    5

    Re: Error mounting SSD

    well... i just found out that on each reboot the SSDs switch positions.

    sometimes windows-ssd is nvme0 and ubuntu is nvme1. and vice-versa.

    and for some reason dolphin cant update this reference and tries to mount the old device partition in /media/

    it all started yesterday after the update. something happened and i cant find out what.

  3. #23
    Join Date
    Aug 2016
    Beans
    5

    Re: Error mounting SSD

    problem solved.

    the ntfs partition was marked as dirty, and ubuntu does not automount when this happens

    to unmark it:

    Code:
    ntfsfix --clear-dirty /dev/nvme0n1p3
    and a reboot.

    everything back to normal now.

  4. #24
    Join Date
    Jun 2014
    Beans
    7,810

    Re: Error mounting SSD

    If you are accessing reading and writing to an ntfs partition from both windows and Linux, you need to be aware that some windows updates will turn on hibernation and Linux will not mount those partitions so you will then not be able to access them. If you have hibernation off, there should not be a problem but note that some windows updates will turn it back on and will not ask or notify you that it is happening. Usually when this happens you will get a message on your Linux system indicating the windows partition is in an unsafe state.

  5. #25
    Join Date
    Dec 2005
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Error mounting SSD

    Definitely Windows hibernation plays a part in this. It's important to turn off hibernation at shutdown. Since I had the errors I have done a fresh install of Kubuntu 24.04.1 , and now Dolphin has no errors at all. I'm assuming something happened to fix things on the Windows SSD at install time.

    My setup is slightly different to @ramon-godoy , in it is not dual boot off the one SSD. I have Windows on an internal SSD and Kubuntu on an external SSD. I don't use grub to boot to Windows, just power down Kubuntu, disconnect the external SSD (have seen too many problems on different posts to try dual boot with Windows), then power up into Windows. I only use Windows every 3 or 4 weeks so this suits me.

    When the problem appeared I did try to attempt to fix the CHKDSK errors on Windows, as Kubuntu kept recognising those errors, despite having run a number of tools on Windows to fix it. Here are some commands run from Windows ..

    Code:
    C:\>sfc /scannow
    Beginning system scan. This process will take some time.

    Beginning verification phase of system scan.
    Verification 100% complete.

    Windows Resource Protection found corrupt files and successfully repaired them.
    For online repairs, details are included in the CBS log file located at
    windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. For offline
    repairs, details are included in the log file provided by the
    /OFFLOGFILE flag.
    and Kubuntu ..

    # Nvme error logging
    Code:
    sudo apt install nvme-cli
    sudo nvme error-log /dev/nvme0
    When to Use fsck - https://www.linode.com/docs/guides/how-to-use-fsck-qa/

    Code:
    chkdsk /f /r c:
    # Finding details by id, by uuid and by label

    Code:
      ls -l /dev/disk/by-id
    ls -l /dev/disk/by-uuid
    ls -l /dev/disk/by-label

  6. #26
    Join Date
    Dec 2009
    Beans
    6,809

    Re: Error mounting SSD

    When you go through the file manager to mount an ntfs partition it will use the ntfs3 driver.

    ntfs3 has "issues" while the older ntfs-3g driver does not. Both are available on your system.

    If you prevent ntfs3 from being used the file manager will use the more reliable ntfs-3g driver.

    TO prevent ntfs3 from being used blacklist it:
    Code:
    echo 'blacklist ntfs3' | sudo tee /etc/modprobe.d/disable-ntfs3.conf
    You need to reboot.

  7. #27
    Join Date
    Aug 2016
    Beans
    5

    Re: Error mounting SSD

    cool. learned something new today.

  8. #28
    Join Date
    Aug 2016
    Beans
    5

    Re: Error mounting SSD

    does dmesg shows your windows partition as "dirty"?

    Code:
    dmesg | grep "dirty"
    thats what happened with my pc, probably related to hibernation as @yancek said above.

    but all i had to do fix it was

    Code:
    ntfsfix --clear-dirty /dev/nvme0n1p3
    (and disable windows hibernation/fast startup)

  9. #29
    Join Date
    Dec 2009
    Beans
    6,809

    Re: Error mounting SSD

    The problem is that may not be the end of it: Does the Linux NTFS3 Driver Corrupt Directories?

  10. #30
    Join Date
    Jun 2014
    Beans
    7,810

    Re: Error mounting SSD

    If you are using windows and Linux on a data partition, you need to bear in mind that windows will sometimes turn hibernation back on during an update. You will not be asked if you want this nor will you be informed that it is happening and Linux won't mount a hibernated partition due to high risk of data loss.

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •