You are not logged in.
I can't access an old home partition. In the previous system everything worked fine, but at some point I started having update problems. The problem was solved using fsck. But when I discovered that the hard drive where I had the root partition had broken it was too daring. In practice I tried to restore vmlinuz, but when I accessed it with a live USB, during the installation of the kernel, writing errors appeared in the hard disk clusters.
1) Obviously I solved all this by changing the hard disk and installing the Arch Linux operating system from scratch.
2) To try to recover the data in the home, I created 4 partitions in the new installation, in the new HD and kept the working hard disk where the old home resided intact as it was.
I use KDE, from the devices I see the hard disk where the old home is present.. to open the hard disk I log in with the password, but then it doesn't load the files it says:
could not enter folder /media/myuser/partitionname
Can I recover the contents of an old home partition?
Last edited by geopardo (2024-12-11 10:40:18)
Some 'security people are f*cking morons' says Linus Torvalds..
Offline
Updates
Filelight say
Unable to enter /run/media/myuser/partitionname
You do have access rights to this location
Some 'security people are f*cking morons' says Linus Torvalds..
Offline
Did you change the UID?
What filesystem is /run/media/myuser/partitionname ?
Try
sudo chown -R $USER:$USER /run/media/myuser/partitionnameOffline
work I mark solved.. I have a question now ![]()
How should I proceed to format the entire hard disk correctly? (I have already recovered all the files)
Some 'security people are f*cking morons' says Linus Torvalds..
Offline
"format" for what purpose?
You probably want to run https://wiki.archlinux.org/title/Badblocks to assess its status and in the destructive mode that will also overwrite all data (once)
Otherwise "format" means to (maybe repartition it and) create a new filesystem.
Otherwise see https://wiki.archlinux.org/title/Securely_wipe_disk
Offline
Let's proceed by evaluating the state of the hard disk, using Badblocks. Then I maybe do some classic formatting. Subsequently, a re-partitioning and new formatting of the hard disk.
I don't want to delete the partition without formatting it first. Correct?
Some 'security people are f*cking morons' says Linus Torvalds..
Offline
There's nothing such as "format", that's a floppy concept of the days of yore - you can overwrite the blocks (badblocks as well as dd will do that) or create a new filesystem.
If you want to limit that to a specific partition, you must not delete it before either (because you lose reference where to start and end that process) but you probably want to run badblocks across the entire disk if you suspect it's falling apart? (Which in destructive will "erase" all data and the partition table)
Offline
Now I'm finishing checking the SSD disk with badblock.. then can you advise me on how to arrange it for the new operating system? This SSD contained all the home files before.
So once the files are recovered I just need to be able to write to them. Essentially the old lost+found folder there is now and takes up space, so I need to format entire SSD correctly.
When I finish to check the SSD, I send the result ...
Last edited by geopardo (2024-12-11 22:33:13)
Some 'security people are f*cking morons' says Linus Torvalds..
Offline
once the files are recovered
RUNNING BADBLOCKS IN DESTRUCTIVE MODE WILL ERASE THE ENTIRE DISK!!!
Just creating a new filesystem will "delete" everything - incl. the old lost+found directory.
Offline
The files were saved, I followed the wiki command for the SSD, recovered each file and moved it to safety first.
You jumped on the chair I imagine, sorry I didn't explain myself well. ![]()
# badblocks -wsv /dev/deviceSome 'security people are f*cking morons' says Linus Torvalds..
Offline
There were no errors. However it disappeared, everything was just destroyed.
Now I have recreated the partition with fdisk. But it can't be seen from Dolphin, and if I try to mount the ssd gives the error that it is not present in the fstab.
by formatting it is displayed..
How can I keep this file system usable for other Linux installations?
Last edited by geopardo (2024-12-12 07:55:10)
Some 'security people are f*cking morons' says Linus Torvalds..
Offline
You'll first and foremost have to mkfs.ext4 one?
Offline
Yes I did it now the SSD disk is ready for use.
But if I try to format again I get mkfs.ext4: invalid blocks error
Last edited by geopardo (2024-12-12 11:11:08)
Some 'security people are f*cking morons' says Linus Torvalds..
Offline
Check the https://wiki.archlinux.org/title/SMART data and please post the exact mkfs IO (what you time and what it prints, verbatim.
"LC_ALL=C mkfs.ext4 … " will get you english output.
Offline
Work now
I was wrong about the label format of the SSD disk.
sudo e2label /dev/sdb1 Linux data
need underscore sudo e2label /dev/sdb1 Linux_data ![]()
If do mkfs.ext4 /dev/sdbX everything work fine..
Is correct do sudo mkfs.ext4 -L Linux_data /dev/sdb1
Or this code is wrong?
Some 'security people are f*cking morons' says Linus Torvalds..
Offline