Computer does not boot in graphic mode

My laptop had only a root partition of 20GB and I had a few warning messages so I used an old parted magic DVD to delete the NTFS partition in front and increased the size of the root partition to 40GB. I had to delete the swap partition as well as it was in front of the root partition and I created a new swap partition in the empty space of the NTFS partition. The rest of the NTFS partition I formatted into ext4. Afterwards I used the Leap DVD in rescue mode to reinstall grub2. Now the system boots up fine but towards the end of the boot process before the login comes the message FAILED to activate swap… (I could not read any more). Then it asked for the root password and I was in text mode. I tried to boot up with “nomodeset” at the end of the boot line in Grub and got the message “intel ips 0000:00if.6: failed to disable graphics turbo”. What can be done - short of reinstalling the system - to get the graphics mode back? Any help is very much appreciated. Cheers Uli

Either delete the swap partition completely and reboot into the system, then if successful re-create it with YAST Partitioner or aternatively, boot into your rescue system and run mkswap /dev/xxxX where xxxX is your swap partition and try starting the system.

Be very careful where you run the mkswap command so you do not accidentally destroy your data.

Random guess; it’s choking on the swap partition because it’s not initialised as such and systemd is trying to mount it. Sounds stupid but it’s worth trying out.
Random guess #2; your partition layout has changed due to removing partitions and you need to alter /etc/fstab to match the new one.

Thanks, Miuku, you are right - the fstab file does not match the new layout. I am not sure how to change this except manually entering everything. However the old fstab file writes something like disk-by-ID xxxxxxxxxxxx and the command fdisk -l only gives these /dev/sda5 designations. If you know a quick way of getting this fstab file right would be good, I try to find some more methods on the internet. It is a bit awkward using a different computer here.

Log in as root and type:

fdisk -l

and

blkid

This will show your UUID for each partition to add to /etc/fstab.
There’s only three partitions. Yes?

Thanks Romanator, I just tried with fdisk -l to fix the fstab file. I didn’t know the blkid command. But I have 5 partitions. One windows 7 which I never used, one ext4 (used to be a fat partition) then swap, root and home. I jsut rebooted my other computer and see if I have done it correctly without your bklid command. If not I try to fix it.

Yes first the good news - the fstab file does seem to work with one exception - the ext4 partition which used to be a fat partition is not mounted. But otherwise all of those files (/, /home) show up in the mtab file. now the bad news - still no GUI. If it is not the mapping of the files what can it be?

The system now boots normally into text mode that allows you to login normally?

What happens if you; sudo systemctl start display-manager.service

OK, I found the following lines in the /var/log/warn log:
"org.a11y.atspi.Registry[7210]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server “:0"”
and
“org.kde.kuiserver[2270]: The X11 connection broke (error 1). Did the X11 server die?”

Since everything worked before the partition change I think there must be some mismatch somewhere. Command line seems to be OK, I can even use startx (for root) and browse through the file manager.

From the Grub2 menu I press the ‘e’ key and add 3 at the end of the linux entry and press the F10 key
to boot to runlevel3.target. Next, I type root followed by the password.

To start up the gui, type:

systemctl isolate graphical.target

Make sure that / (root) swap and /home are mounted.
Since you are using an SSD make sure that you type:

fstrim -v /

You should assign 7% of your SSD as unformatted for over provisioning.

Check /var/log/Xorg.0.log

OK it seems to work again now! I wrote previously

the ext4 partition which used to be a fat partition is not mounted

The reason for this was that I changed the devices, filesystem, etc but left the options since I thought I do that later. But of course these were the options for the windows file system and after I changed them from “users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0” to “acl,user_xattr 1 2” the partitions mounts and the computer starts up in the GUI normally. I am surprised about that effect on the system (i was not surprised that the partition didn’t show up and thought this a minor thing to sort out later). Anyway thank you very much Miuku and Romanator for standing by with your assistance. Very much appreciated!
Cheers
Uli

Type: blkid not bklid

My results:

blkid
/dev/sda1: UUID="b10f5e03-b10f-4333-a0cb-f5f619c2452f" UUID_SUB="d6bc9d8d-6c69-4a92-98d9-1388f7b8dc88" TYPE="btrfs" PTTYPE="dos" PARTUUID="2d36325b-01"
/dev/sda2: UUID="33f8e452-b99b-41a5-98ed-c5142ac89526" TYPE="ext4" PARTUUID="2d36325b-02"
/dev/sdd1: UUID="a79d537f-a53f-4f2a-ae8b-b054644e700b" UUID_SUB="95bc1ecd-7b55-4dff-8904-7bfaf54ab827" TYPE="btrfs" PTTYPE="dos" PARTUUID="5b539812-01"
/dev/sdd2: UUID="5f5fdb1b-3c12-4560-aec2-219e4ed35c65" TYPE="swap" PARTUUID="5b539812-02"
/dev/sdd3: UUID="4427a6a0-9e7b-44d7-a457-f3eacd2f643d" TYPE="xfs" PARTUUID="5b539812-03"
/dev/sdd5: UUID="c43924ef-7a1f-4971-a1b0-2f4aa3c19dda" UUID_SUB="def28973-7616-459e-9c34-206799f4540f" TYPE="btrfs" PARTUUID="5b539812-05"
/dev/sdd6: UUID="cec6a2ac-a89f-4a21-adc1-2ad5f7f5d22b" TYPE="xfs" PARTUUID="5b539812-06"
/dev/sdb1: LABEL="data" UUID="cf28b419-8c39-46ac-8005-d03486a64355" TYPE="xfs" PARTUUID="71ff6595-01"
/dev/sdc1: LABEL="EFI" UUID="67E3-17ED" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="29fb4d86-b971-41b2-8bef-3a6038dba561"
/dev/sdc2: UUID="bd6a3a46-81f0-3c63-8a00-bb8995dfa15b" LABEL="Yosemite" TYPE="hfsplus" PARTLABEL="Yosemite" PARTUUID="142653c1-4250-4660-8001-f6501fca8fcc"
/dev/sdc3: UUID="1442828c-16e3-3390-b311-56553c4c72d2" LABEL="Recovery HD" TYPE="hfsplus" PARTLABEL="Recovery HD" PARTUUID="702b2ba0-1883-4fba-b74c-97e6173689c2"
/dev/sdc4: UUID="ea0afb18-9483-3111-ba52-a55748d48d9f" LABEL="DATA" TYPE="hfsplus" PARTLABEL="DATA" PARTUUID="0e516e32-3510-4f27-94f7-1c294070ed89"

Sorry - typing mistake - I was on this forum on one computer then went in the other room to the computer not working… No copy - paste!