#Cant write to sdb1
1 messages · Page 1 of 1 (latest)
lsblk -f
Is sdb1 still mounted there
yes
sudo dmesg | grep sdb
[163492.315386] Buffer I/O error on dev sdb1, logical block 0, lost sync page write
[163492.315394] EXT4-fs (sdb1): I/O error while writing superblock
[163492.315396] EXT4-fs (sdb1): Remounting filesystem read-only
remounting as read only is the cause of the failure to write
sudo smartctl -a /dev/sdb
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
Smartctl open device: /dev/sdb failed: INQUIRY failed```
sudo smartctl -i /dev/sdb
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.13.2-arch1-1] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
Smartctl open device: /dev/sdb failed: INQUIRY failed```
hmm
unmount sdb1 and try again
copy your files out of there if they're important
sorry for waiting, my internet broke
cant
lsof | grep data
lsof | grep mnt/data
the umount
smartctl
sudo smartctl /dev/sdb
sudo smartctl /dev/sda
old
idk but the computer wasnt moving or shaked before the issue appearing
the fact that i made a folder successfully and then just a few minutes later this issue appears that i cant write to the disk anymore
still not sdb1 lol
/dev/sdb
it's no longer in lsblk
looks like it just completely failed (or detached) :/
look at the dmesg
You should be able to find something there related to it
try the grep sdb
Kernel might not be able to identify that it's sdb anymore though
nothing. sdb is gone
grep for scsi
wait what
i have been using an SSD this whole time while thinking it was a hard drive
but
i have heard hdd sounds from my pc
what
from the sdb or did you just attach it?
The 128GB ssd is the sda btw
wdym
well i know that the sdb is a hdd
If it was still visible to the os it would show up in the same style as the Azerty ssd
Replug the hdd
tomorrow
Maybe worth trying to scan the sata port
echo "0 0 0" >/sys/class/scsi_host/host<n>/scan
host<number> are different sata ports
I don't know how to tell which one of them is your ssd and which one is the hdd
@cunning crag
do i run this
ls /sys/class/scsi_host and replace <n>
ok
sudo won't work as root privs won't carry over to the >
which appends to a file
it's done by the shell
with what do i replace <n>
in a another terminal sudo dmesg -w and keep it open
then go through the numbers until there's something related to sdb or the hdd
Host0: [ 1928.341035] ata1.01: failed to resume link (SControl 0) [ 1928.493071] ata1.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [ 1928.493093] ata1.01: SATA link down (SStatus 0 SControl 0) [ 1928.495075] ata1.00: configured for UDMA/133
Host1:[ 1968.931833] ata2.01: failed to resume link (SControl 0) [ 1968.942775] ata2.00: SATA link down (SStatus 0 SControl 300) [ 1968.942789] ata2.01: SATA link down (SStatus 0 SControl 0)
Host2:[ 2007.851725] ata3: link is slow to respond, please be patient (ready=0) [ 2012.443607] ata3: SRST failed (errno=-16) [ 2017.908449] ata3: link is slow to respond, please be patient (ready=0) [ 2022.454317] ata3: SRST failed (errno=-16) [ 2027.916161] ata3: link is slow to respond, please be patient (ready=0) [ 2057.469304] ata3: SRST failed (errno=-16) [ 2057.469315] ata3: limiting SATA link speed to 1.5 Gbps [ 2062.473158] ata3: SRST failed (errno=-16) [ 2062.484155] ata3: softreset failed [ 2062.484159] ata3: reset failed, giving up
Host3:[ 2089.440977] ata4: SATA link down (SStatus 0 SControl 300)
journalctl -b-1 | grep scsi
-b-1 is the previous boots logs
-b0 is current boots
How about -b-2
weird how you have ata_piix while I have scsi host0: ahci
https://utcc.utoronto.ca/~cks/space/blog/linux/ServerSATAInATAMode
Maybe your bios has sata controller mode in something other than AHCI
examples
of what to look for
i have the second one i think or sometihng similar (how it looks)
so, what is there something i need to do? or not yet
alright (i will be offline for some time then)
ok
i did and after rebooting it showed me a new loading step that showed me what hard drives my bios sees and it doesnt see the sdb
Were you able to boot linux?
yes
how else would i be texting with
Phone 😛
i think yeah
Leave it as ahci as it's better
The drive is likely dead if replugging it does not work tomorrow :(
idk, it doesnt work it looks like the government did a good job at blocking vpns but not as good of a job at blocking tor browser