A month ago I installed KDE Neon User Edition LTS onto a Dell Vostro 1500. It installed without problems, replacing an old XP installation, and worked without problems. The owner, a father, gave the laptop to his daughter.
She had created a second user account with KUser, and then deleted it when it couldn't do root maintenance. She then attempted to rename the primary account using KUser and it failed, so she renamed it back to the original name. (She's tech support for a corporation that uses Windows and Window-think created problems for her.) Things appeared to work normally until she rebooted, which gave the black screen at login time. That stumped her.
I rebooted into the recovery screen and logged in as root and remounted the file system: "mount -o remount, rw /" in order to use usermod, chmod and chown to attempt to repair things. It failed to mount and I was kicked back into a non-functioning recovery terminal. I rebooted. That was the first time I tried the remount option on a btrfs system. Perhaps it doesn't work on Btrfs file systems?
At the black screen again I hit Ctrl+Alt+F2 and logged into a terminal using the original name and password. Then I "sudo -i" to get root and mounted /dev/sda1 to /mnt
I mv'd @ to @old and @home to @homeold. Then I used
"btrfs subvol snapshot /mnt/snapshots/@20171205 /mnt/@" followed by "sync"
and
"btrfs subvol snapshot /mnt/snapshots/@home20171205 /mnt/@home" followed by "sync"
Then I deleted @old
"btrfs subvol delete -c /mnt/@old"
and then
"btrfs subvol delete -c /mnt/@homeold"
The second delete command presented "file not found". A repeat with the up arrow gave the same.
"vdir /mnt" gave the same msg.
So did "vdir /"
So did "cd /"
Only commands that were part of bash itself would work. Commands residing on the file system would not respond. The file system had disappeared. I have never seen this kind of behavior before in the 19 years I've used Linux. Nothing was shown in the logs. Systemd's last attempt to write to its log failed with a "file not found" error.
There was nothing to do but hit the power button. The roll back worked. The system, as it was on the day I first installed it (12/5/17), came back to life and worked normally. I deleted @homeold and proceeded to test the system. Everything worked as it should. KPartitionManager's Smart Report gave the HD a clean bill of health. The system had passed a 12 hour RAM check when I first installed Neon, so I did not repeat it. About 400+ apps came down the pipe and all upgraded normally. Dmesg after a reboot showed nothing in the log out of the norm.
The user had installed the Chromium browser so I reinstalled it. Then I made snapshot backups of @ and @home in case things went south again. The system has been up and running for three hours without any problems.
I still need to change the dad's name to the daughter's name.
She had created a second user account with KUser, and then deleted it when it couldn't do root maintenance. She then attempted to rename the primary account using KUser and it failed, so she renamed it back to the original name. (She's tech support for a corporation that uses Windows and Window-think created problems for her.) Things appeared to work normally until she rebooted, which gave the black screen at login time. That stumped her.
I rebooted into the recovery screen and logged in as root and remounted the file system: "mount -o remount, rw /" in order to use usermod, chmod and chown to attempt to repair things. It failed to mount and I was kicked back into a non-functioning recovery terminal. I rebooted. That was the first time I tried the remount option on a btrfs system. Perhaps it doesn't work on Btrfs file systems?
At the black screen again I hit Ctrl+Alt+F2 and logged into a terminal using the original name and password. Then I "sudo -i" to get root and mounted /dev/sda1 to /mnt
I mv'd @ to @old and @home to @homeold. Then I used
"btrfs subvol snapshot /mnt/snapshots/@20171205 /mnt/@" followed by "sync"
and
"btrfs subvol snapshot /mnt/snapshots/@home20171205 /mnt/@home" followed by "sync"
Then I deleted @old
"btrfs subvol delete -c /mnt/@old"
and then
"btrfs subvol delete -c /mnt/@homeold"
The second delete command presented "file not found". A repeat with the up arrow gave the same.
"vdir /mnt" gave the same msg.
So did "vdir /"
So did "cd /"
Only commands that were part of bash itself would work. Commands residing on the file system would not respond. The file system had disappeared. I have never seen this kind of behavior before in the 19 years I've used Linux. Nothing was shown in the logs. Systemd's last attempt to write to its log failed with a "file not found" error.
There was nothing to do but hit the power button. The roll back worked. The system, as it was on the day I first installed it (12/5/17), came back to life and worked normally. I deleted @homeold and proceeded to test the system. Everything worked as it should. KPartitionManager's Smart Report gave the HD a clean bill of health. The system had passed a 12 hour RAM check when I first installed Neon, so I did not repeat it. About 400+ apps came down the pipe and all upgraded normally. Dmesg after a reboot showed nothing in the log out of the norm.
The user had installed the Chromium browser so I reinstalled it. Then I made snapshot backups of @ and @home in case things went south again. The system has been up and running for three hours without any problems.
I still need to change the dad's name to the daughter's name.
Comment