I have 2 HDDs:
- 80 GB dedicated for Ubuntu 20.04
- 1 TB for storage
The 1 TB HDD keeps changing permission to read only though I have changed it several times using this command:
sudo chown $USER:$USER /mnt/stuff
I am tired of changing it again and again. Why is this happening and what is the permanent solution for this issue?
dmesg
. Messages may also appear in systemd journals (journalctl
) which allows you to look beyond the current session (ie. prior boots) – guiverc Aug 14 '21 at 09:45blk_update_request: I/O error, dev sdb, sector 522806727 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Is above line means anything ralated to my issue? – Milind Khobragade Aug 14 '21 at 09:50EXT4-fs warning (device sdb1): ext4_clear_journal_err:5658: Filesystem error recorded from previous mount: IO failure
EXT4-fs warning (device sdb1): ext4_clear_journal_err:5660: Marking fs in need of filesystem check.
EXT4-fs (sdb1): warning: mounting fs with errors, running e2fsck is recommended
what to do?
– Milind Khobragade Aug 14 '21 at 09:55fsck
(file-system check) your drive and any logical errors will be fixed & you won't see issues again. Repeated issues usually mean it's hardware though (be it the drive failing, or bad power (good devices behave badly if they don't have good power) etc... Don't bother withfsck
until you know drive is healthy though (the more you use the drive; the greater data loss you risk) – guiverc Aug 14 '21 at 09:57