Random problems with filesystem corruption.
Paul Groves
paul.groves.787 at gmail.com
Thu Dec 19 16:51:10 UTC 2019
This has gone very off topic. The server has a HDD not an SSD. It is a
WD 160GB (Really 149GB).
Twice the server has randomly had a read only root filesystem for no
apparent reason and a full SMART test shows no errors.
To fix this both times I had to boot from the Ubuntu USb and run:
fsck -y /dev/sda2
I have tested the RAM with memtest86 and it is all good. Left it running
overnight so the test ran approx. 10 hours.
There is no SATA cable. The HDD plugs into a slot on the motherboard and
it mounted on a caddy that slides out.
The server has not lost any data, I have verified against previous backups.
I just want to change this HDD to an SSD, but the SSD is smaller at
128GB. However the HDD is less than 10% full so this is not a problem.
The HDD currently has two partitions:
/dev/sda1 1MB
/dev/sda2 Rest of drive (root partition).
I have used clonezilla to clone windows PCs to smaller HDDs many times
as follows:
Shrink second partition so total use is smaller than destination disk.
Clone Source disk to image.
Restore image to destination disk with clonezilla -icds option
Expand second partition to fill destination disk.
I have tried this procedure with this server, where source disk is the
149GB HDD and destination disk is the 128GB SSD.
However when I try to clone from the captured image to the SSD,
Clonezilla says the destination disk is too small, even with the -icds
option specified and it fails.
I have also tried device-to-device direct from the HDD to SSD with the
same problem.
Can anyone please advise? I really want to get the drive swapped out to
the SSD before it fails.
More information about the ubuntu-users
mailing list