Internal HDD mounted as read only [SOLVED]

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
sn420
Level 1
Level 1
Posts: 26
Joined: Sun Jan 10, 2021 6:23 pm

Internal HDD mounted as read only [SOLVED]

Post by sn420 »

Hi,

I have an internal secondary HDD that is being mounted as "read only". Not sure why, as I recall being able to mount and use this drive properly in the past (although it has been a while since attempting to write to it). The partition in question is an NTFS basic data partition at /dev/sda2:

Code: Select all

alex@alex-MS-7C02:/media$ sudo lsblk
[sudo] password for alex:               
NAME                MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0                 7:0    0  55.5M  1 loop  /snap/core18/2409
loop1                 7:1    0     4K  1 loop  /snap/bare/5
loop2                 7:2    0  61.9M  1 loop  /snap/core20/1434
loop3                 7:3    0    83M  1 loop  /snap/tradingview/17
loop4                 7:4    0  83.4M  1 loop  /snap/tradingview/18
loop5                 7:5    0 248.8M  1 loop  /snap/gnome-3-38-2004/99
loop6                 7:6    0  61.9M  1 loop  /snap/core20/1405
loop7                 7:7    0  55.5M  1 loop  /snap/core18/2344
loop8                 7:8    0  43.6M  1 loop  /snap/snapd/15177
loop9                 7:9    0  44.7M  1 loop  /snap/snapd/15534
loop10                7:10   0  65.2M  1 loop  /snap/gtk-common-themes/1519
loop11                7:11   0 164.8M  1 loop  /snap/gnome-3-28-1804/161
loop12                7:12   0  81.3M  1 loop  /snap/gtk-common-themes/1534
sda                   8:0    0   9.1T  0 disk  
├─sda1                8:1    0   128M  0 part  
└─sda2                8:2    0   9.1T  0 part  /media/alex/Storage
sdb                   8:16   1  14.4G  0 disk  
└─sdb1                8:17   1  14.4G  0 part  /media/alex/B823-A65A
nvme0n1             259:0    0 465.8G  0 disk  
├─nvme0n1p1         259:1    0   100M  0 part  /boot/efi
├─nvme0n1p2         259:2    0    16M  0 part  
├─nvme0n1p3         259:3    0 272.9G  0 part  
├─nvme0n1p4         259:4    0   499M  0 part  
├─nvme0n1p5         259:5    0     1G  0 part  /boot
└─nvme0n1p6         259:6    0 191.3G  0 part  
  └─nvme0n1p6_crypt 253:0    0 191.3G  0 crypt /

I ran a SMART test after reading that sometimes drives mount as read-only when they're failing, although I'm not sure what to think of the results? It hasn't had a lot of usage.

Code: Select all

alex@alex-MS-7C02:/media$ sudo smartctl --all /dev/sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.13.0-41-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate IronWolf Pro
Device Model:     ST10000NE0008-2JM101
Serial Number:    ZL00NB5A
LU WWN Device Id: 5 000c50 0c6c790c9
Firmware Version: EN01
User Capacity:    10,000,831,348,736 bytes [10.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-4 (minor revision not indicated)
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu May 19 17:54:55 2022 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82)	Offline data collection activity
					was completed without error.
					Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(  575) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 ( 978) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x50bd)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   073   064   044    Pre-fail  Always       -       19662350
  3 Spin_Up_Time            0x0003   089   089   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       634
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   075   061   045    Pre-fail  Always       -       30175171
  9 Power_On_Hours          0x0032   096   096   000    Old_age   Always       -       3625
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       325
 18 Unknown_Attribute       0x000b   100   100   050    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   098   000    Old_age   Always       -       154621181988
190 Airflow_Temperature_Cel 0x0022   066   042   040    Old_age   Always       -       34 (Min/Max 21/34)
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       32
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       1953
194 Temperature_Celsius     0x0022   034   058   000    Old_age   Always       -       34 (0 17 0 0 0)
195 Hardware_ECC_Recovered  0x001a   073   064   000    Old_age   Always       -       19662350
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0023   100   100   001    Pre-fail  Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       184 (209 235 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       10460587426
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       89982817284

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%       459         -
# 2  Short offline       Completed without error       00%         0         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
Seems okay, I think? What should I do to get my drive to mount as writeable? Thank you.

Code: Select all

System:    Kernel: 5.13.0-41-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.2.7 wm: muffin 5.2.1 dm: LightDM 1.30.0 
           Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:   Type: Desktop System: Micro-Star product: MS-7C02 v: 1.0 serial: <filter> 
           Mobo: Micro-Star model: B450 TOMAHAWK (MS-7C02) v: 1.0 serial: <filter> UEFI: American Megatrends LLC. v: 1.H6 
           date: 09/30/2021 
Battery:   Device-1: hidpp_battery_0 model: Logitech G603 Wireless Gaming Mouse serial: <filter> 
           charge: 100% (should be ignored) rechargeable: yes status: Discharging 
CPU:       Topology: 6-Core model: AMD Ryzen 5 2600 bits: 64 type: MT MCP arch: Zen+ rev: 2 L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 92401 
           Speed: 3850 MHz min/max: N/A Core speeds (MHz): 1: 3850 2: 3850 3: 3850 4: 3819 5: 3850 6: 3836 7: 3829 8: 3850 
           9: 3850 10: 3850 11: 3768 12: 3850 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
           vendor: Micro-Star MSI driver: amdgpu v: kernel bus ID: 26:00.0 chip ID: 1002:67df 
           Display: x11 server: X.Org 1.20.13 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa 
           resolution: 2560x1440~144Hz, 1920x1080~60Hz 
           OpenGL: renderer: Radeon RX 570 Series (POLARIS10 DRM 3.41.0 5.13.0-41-generic LLVM 12.0.0) v: 4.6 Mesa 21.2.6 
           direct render: Yes 
Audio:     Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] vendor: Micro-Star MSI driver: snd_hda_intel 
           v: kernel bus ID: 26:00.1 chip ID: 1002:aaf0 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel 
           bus ID: 28:00.3 chip ID: 1022:1457 
           Sound Server: ALSA v: k5.13.0-41-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI driver: r8169 v: kernel 
           port: f000 bus ID: 22:00.0 chip ID: 10ec:8168 
           IF: enp34s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 9.56 TiB used: 4.15 TiB (43.4%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: WDS500G2X0C-00L350 size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 
           serial: <filter> rev: 101140WD scheme: GPT 
           ID-2: /dev/sda vendor: Seagate model: ST10000NE0008-2JM101 size: 9.10 TiB speed: 6.0 Gb/s rotation: 7200 rpm 
           serial: <filter> rev: EN01 scheme: GPT 
           ID-3: /dev/sdb type: USB vendor: Kingston model: DataTraveler 3.0 size: 14.41 GiB serial: <filter> scheme: MBR 
Partition: ID-1: / size: 187.31 GiB used: 51.03 GiB (27.2%) fs: ext4 dev: /dev/dm-0 
           ID-2: /boot size: 975.9 MiB used: 376.4 MiB (38.6%) fs: ext4 dev: /dev/nvme0n1p5 
Sensors:   System Temperatures: cpu: 62.9 C mobo: N/A gpu: amdgpu temp: 54 C 
           Fan Speeds (RPM): N/A gpu: amdgpu fan: 918 
Repos:     No active apt repos in: /etc/apt/sources.list 
           No active apt repos in: /etc/apt/sources.list.d/amdgpu-proprietary.list 
           Active apt repos in: /etc/apt/sources.list.d/amdgpu.list 
           1: deb https://repo.radeon.com/amdgpu/21.40.1/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
           1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
           Active apt repos in: /etc/apt/sources.list.d/cisofy-lynis.list 
           1: deb https://packages.cisofy.com/community/lynis/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/home-ungoogled_chromium.list 
           1: deb http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal/ /
           Active apt repos in: /etc/apt/sources.list.d/nordvpn.list 
           1: deb https://repo.nordvpn.com//deb/nordvpn/debian stable main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com una main upstream import backport #id:linuxmint_main
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/rocm.list 
           1: deb [arch=amd64] https://repo.radeon.com/rocm/apt/4.5.1 ubuntu main
           Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list 
           1: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
Info:      Processes: 476 Uptime: 6h 50m Memory: 15.55 GiB used: 8.50 GiB (54.7%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.4.0 alt: 9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
RIH
Level 9
Level 9
Posts: 2834
Joined: Sat Aug 22, 2015 3:47 am

Re: Internal HDD mounted as read only

Post by RIH »

As the drive is formatted to NTFS I suspect that it has previously been used in Windows.
In that case it was probably removed from a Windows machine that had fast startup/hibernation enabled.
That leaves the disk in a state that Linux cannot fully access - hence the read only.
You need to add the disk to a Windows PC & either:
Disable fast startup/hibernation & then close the machine
or:
Unmount the drive while Windows is still running.

Linux should then be able to fully access the drive..
Image
sn420
Level 1
Level 1
Posts: 26
Joined: Sun Jan 10, 2021 6:23 pm

Re: Internal HDD mounted as read only

Post by sn420 »

RIH wrote: Thu May 19, 2022 8:42 pm As the drive is formatted to NTFS I suspect that it has previously been used in Windows.
In that case it was probably removed from a Windows machine that had fast startup/hibernation enabled.
That leaves the disk in a state that Linux cannot fully access - hence the read only.
You need to add the disk to a Windows PC & either:
Disable fast startup/hibernation & then close the machine
or:
Unmount the drive while Windows is still running.

Linux should then be able to fully access the drive..
Thank you! This solved it!!
Locked

Return to “Storage”