My openSUSE 13.2 dual boot MS Windows 7 desktop was working flawlessly. After last package update no boot and no startup. Startup does some sort of never ending loop right after posting. Booted with 13.2 live DVD to attempt to backup /Home folder before trying to repair this install of 13.2 or install Leap.
I have not tried to repair or mount partition with terminal and when I try to mount /Home with live dvd and dolphin I get this error:
An error occurred while accessing '768.1 GiB Hard Drive', the system responded: The requested operation has failed: Error mounting /dev/sda7 at /run/media/linux/c4b78178-9a2c-44c2-ac4b-f84e704b2868: Command-line `mount -t "xfs" -o "uhelper=udisks2,nodev,nosuid" "/dev/sda7" "/run/media/linux/c4b78178-9a2c-44c2-ac4b-f84e704b2868"' exited with non-zero exit status 32: mount: mount /dev/sda7 on /run/media/linux/c4b78178-9a2c-44c2-ac4b-f84e704b2868 failed: Structure needs cleaning
I did make a mess of a couple of other posts in install/boot forum. If I knew how to remove them I would have. Not trying to duplicate or cross post but I have since narrowed my focus down to data recovery of some much wanted /home files.
I would very much appreciate an explanation of the error or any help that could point me to a recovery solution (if there is one).
From rescue disk run fsck against the home partition may want to do the same with root. seems there is a file system corruption also would not hurt to run smartctl against that drive
Thanks for pointing me in the right direction.
smartctl -l selftest /dev/sda
Drive passed the selftest with no errors but I was a bit worried about running file check/repair because the xfs_repair /dev/sda7 result gave this alert:
# xfs_repair /dev/sda7
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
ERROR: The filesystem has valuable metadata changes in a log which needs to be replayed. Mount the filesystem
to replay the log, and unmount it before re-running xfs_repair. If you are unable to mount the filesystem,
then use the -L option to destroy the log and attempt a repair. Note that destroying the log may cause
corruption -- please attempt a mount of the filesystem before doing this.
Checked one more time and still could not mount /Home (sda7on this box) so I ran it again with -n switch to get see what is going on but make no changes yet.
xfs_repair -n /dev/sda7
Okay. Not much to be changed so, run with -L switch referred to in ERROR message and hope for the best result.
xfs_repair -L /dev/sda7
Great! Fixed the file system. I can now mount /Home with rescue disk but am still unable to boot normally. I don’t know the extent of corruption this repair may have caused, if anyat all, but I am now a very happy person. I managed to copy /Home files I want to keep.
I also feel more comfortable with further recovery and repair. I still had some weird rolling error loop right after posting. I checked the bootloader settings with Yast and saved.
Restarted the machine and all is well !