I have a workstation with a Debian 8 with a XFCE and 8GB hdd. I want to resize a partition. I do:
e2fsck -f /dev/sda1
resize2fs -M /dev/sda1 #resize fs to minimal size;
fdisk /dev/sda1 #remove partition; write;
fdisk /dev/sda1 #create partition with smaller size; write;
resize2fs /dev/sda1 #resize fs to maximal size;
After this I have broken system. I get a logout if I login as user. There is no error if I login as root. Where I can look for an error in system logs?
/var/log/syslog
,/var/log/auth.log
are possible candidates. You could also check if the/home
partition exists and if it's mounted, error-free, etc., that would explain why you can login asroot
(which is on a different partition) but can't do with a regular user./dev/sda1
is now gone. Did you back it up before the resize? If not, then you can only reinstall it. What is the mount-point of the partition?mount
,cat /etc/passwd
?