I have an external ssd via usb connected to my pi and booting from ssd. The external ssd had already a usb connection which from time to time was not working. I can still connect ssd to laptop and have connection. Can I copy the data to another ssd and would that work? Or would that one not be recognized?
Without detailed debug logs there is no way to answer your questions.
Without Linux sysadmin experience (e.g. explore the partition table, fsck on all partitions, check TRIM, check logs), a reformat is the simplest fix.
If you have a suspect SSD or uSD, the typical advice is to:
Take a full backup of HASS and move the backup to a separate device. Do this more than once to make sure you have at least one good backup available.
Reimage the suspect media, such as using the Raspberry Pi Imager tool (HASSOS can be selelcted and installed directly)
Restore from the backup
The SSD may have hardware issues, it may be being hammered by non-standard database logging settings, you may have power supply issues - again, there is no easy way to tell (perhaps install the RPi Power Supply checker integration).
I am just looking to replace the ssd, since I know very sure the cable/connector is the issue. Copying the data from the old ssd to new ssd and giving the drive the same name would not work? Or are there indeed most likely multiple partitions created?
ok so yes being stupid and not having a backup on any other place than on the faulty SSD, is there any way to make a backup of the SSD when hooked to a laptop? Or am I best of to try as much as possible to wiggle with the msata to usb cable to have the ssd working when in raspberry. When that one is running again make a backup and copy that backup and startover with fresh ssd, restore backup???
If I wiggle the connector when in laptop it makes connection. If connected to the pi and booting up the pi it will only work when correctly connected at power on. Wiggling the connector after power on will not result in recognizing and using the ssd. Therefore it is wiggling the connector powering on pi, not working, power off, wiggling again, power on, yes working don’t touch anything anymore
Is the cable you are wiggling replaceable instead of replacing the entire ssd? Sorry I use a docker install on a pc and don’t have this issue, but I have used a few ssd’s.
To share, finally received micro hdmi to hdmi cable and have it sort of working again. In the end the original ssd says no bootable partition, don’t know why
-microsd with raspbian installed
-new ssd with hassio image on it
-booted sd without ssd’s
-after boot connected both ssd’s
-tried copying from one ssd to the other but access problem so at least took a backup tar from it
-new ssd started and restored backup
Still missing add ons which I had to reinstall manually. Which I am accepting and already almost done with.
And yes, already addon installed and running for first time to have a complete backup to google drive
Thanks all