Author Topic: Mdm and Lightdm (SOLVED)  (Read 3745 times)

0 Members and 2 Guests are viewing this topic.

Offline Rich J

  • Sr. Member
  • ****
  • Posts: 381
  • Karma: 2
  • Gender: Male
  • A Linux Luvvie!
    • View Profile
    • Awards
Mdm and Lightdm (SOLVED)
« on: October 31, 2017, 10:04:44 am »
Hi All
In my efforts to configure Mint 18.2 I've managed to break my display manager........... :-[

I changed from mdm to lightdm using a 'how to' from the official Mint site and all seemed to go well until it came to reboot.  The boot now just hangs at the splash screen.  I can see a screen full of output (by hitting 'enter') and that reports an error 'failure to start light display manager'.  It then runs on for a few more lines then halts, waiting for 'another process'.  Unfortunately, the 'how to' said to remove mdm as part of the changeover so there's no way to switch back to it.

 I have the Mint 18.1 install disk (original install was 18.1 - upgraded to 18.2 via Update Manager) and also Mint 17.3 installed on a separate Hdd (sda) - M18 is on Hdd sdb.

Is it possible to re-install mdm on to M18 from either of these mediums?  I could just reinstall M18 afresh but have made a lot of changes that I would prefer to keep if possible.

Thanks in advance

Rich

« Last Edit: October 31, 2017, 01:33:51 pm by Rich J »

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17312
  • Karma: 439
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mdm and Lightdm
« Reply #1 on: October 31, 2017, 10:47:53 am »
can you link to the instructions you followed ?

[EDIT]

And if you hit Ctrl+Alt+F3 (to drop to a text console), log on, then run:
Code: [Select]
sudo service lightdm restart
does it give any clues why lightdm doesn't start ?
« Last Edit: October 31, 2017, 10:50:19 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Rich J

  • Sr. Member
  • ****
  • Posts: 381
  • Karma: 2
  • Gender: Male
  • A Linux Luvvie!
    • View Profile
    • Awards
Re: Mdm and Lightdm
« Reply #2 on: October 31, 2017, 11:25:01 am »
can you link to the instructions you followed ?

https://blog.linuxmint.com/?p=3306

[EDIT]

And if you hit Ctrl+Alt+F3 (to drop to a text console), log on, then run:
Code: [Select]
sudo service lightdm restart
does it give any clues why lightdm doesn't start ?

Hi Mark - I can only get to a console via 'Advanced Options'.( Hitting Ctrl+Alt+F3 in Mint 18.2 drops me to a grub screen where 'sudo service lightdm restart' isn't recognised).  In 'advanced ...' I can get to a console and log in as root then run the command and get errors '...failure to start light display manager...'.  I think that lightdm didn't install properly (if at all) and removing mdm has left me with no display manager at all.

Trying to boot M18 and hitting Esc brings up a screenfull of messages - at the end it states 'Failed to start Light Display Manager'  - See systemctl status lightdm.service for details, but I don't know how to get to this, then last line is 'A start job is running for Hold unt...finishes up (timer running/no limit)



Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17312
  • Karma: 439
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mdm and Lightdm
« Reply #3 on: October 31, 2017, 11:50:07 am »
Have you got a Mint 18 Live USB ?

If so, can you boot to it and post the output from:
Code: [Select]
sudo fdisk -l
so we can figure out which is your Mint partition.

Then we can mount that partition, chroot into it, and reinstall mdm.

and check /etc/X11/default-display-manager contains the right entry.
« Last Edit: October 31, 2017, 12:03:45 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Rich J

  • Sr. Member
  • ****
  • Posts: 381
  • Karma: 2
  • Gender: Male
  • A Linux Luvvie!
    • View Profile
    • Awards
Re: Mdm and Lightdm
« Reply #4 on: October 31, 2017, 12:05:13 pm »
Have you got a Mint 18 Live USB ?

If so, can you boot to it and post the output from:
Code: [Select]
sudo fdisk -l
so we can figure out which is your Mint partition.

Then we can mount that partition, chroot into it, and reinstall mdm.

My box won't boot from a usb but I have the M18 disk - will that work?

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17312
  • Karma: 439
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mdm and Lightdm
« Reply #5 on: October 31, 2017, 12:10:03 pm »
Sure it will .. just do the same thing from the LiveDVD :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Rich J

  • Sr. Member
  • ****
  • Posts: 381
  • Karma: 2
  • Gender: Male
  • A Linux Luvvie!
    • View Profile
    • Awards
Re: Mdm and Lightdm
« Reply #6 on: October 31, 2017, 12:27:25 pm »
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0001ba51

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048    980991    978944   478M 83 Linux
/dev/sda2          983038 312580095 311597058 148.6G  5 Extended
/dev/sda5          983040 152638097 151655058  72.3G 83 Linux
/dev/sda6       304693248 312580095   7886848   3.8G 82 Linux swap / Solaris


Disk /dev/sdb: 37.3 GiB, 40020664320 bytes, 78165360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7ad54111

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sdb1           2048   976895   974848  476M 83 Linux
/dev/sdb2         978942 78163967 77185026 36.8G  5 Extended
/dev/sdb5  *      978944 70352895 69373952 33.1G 83 Linux
/dev/sdb6       70354944 78163967  7809024  3.7G 82 Linux swap / Solaris
mint@mint ~ $

sda is Mint 17.3 Qiana - sdb is Mint 18.2 Sonya.  It's 18 that won't boot.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17312
  • Karma: 439
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mdm and Lightdm
« Reply #7 on: October 31, 2017, 12:50:16 pm »
Okay, boot to the LiveDVD, make sure the Live session is online, open a terminal and run:
Code: [Select]
sudo mount /dev/sdb5 /mnt
then
Code: [Select]
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
then
Code: [Select]
sudo chroot /mnt
then
Code: [Select]
apt-get install mdm
then hit Ctrl+D to exit the chroot environment

Reboot to the hard drive to test.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Rich J

  • Sr. Member
  • ****
  • Posts: 381
  • Karma: 2
  • Gender: Male
  • A Linux Luvvie!
    • View Profile
    • Awards
Re: Mdm and Lightdm
« Reply #8 on: October 31, 2017, 01:22:31 pm »
Mark that's brilliant!  All up and running  ;)  Thanks very much - I'll set this as solved shortly.

Just a couple of points. 

The installer also listed lightdm as available.  Given that there is a possibility for future conflict, I'd rather remove it altogether.  What's the best way? 

And, looking at the output from fdisk -l, the boot files in M18 are in a different location to those in M17, yet  I deliberately set things up on sdb in exactly the same way as I'd done on sda due to previous issues with Grub finding the files.  Does this matter?  And would it cause further issues if they were moved from sdb5 to sdb1?

Thanks again 

Rich



Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17312
  • Karma: 439
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mdm and Lightdm
« Reply #9 on: October 31, 2017, 01:33:07 pm »
Code: [Select]
sudo apt-get remove --purge slick-greeter lightdm lightdm-settings apparmor
and NO, don't mess with the boot files ;)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Rich J

  • Sr. Member
  • ****
  • Posts: 381
  • Karma: 2
  • Gender: Male
  • A Linux Luvvie!
    • View Profile
    • Awards
Re: Mdm and Lightdm
« Reply #10 on: October 31, 2017, 01:39:07 pm »
Code: [Select]
sudo apt-get remove --purge slick-greeter lightdm lightdm-settings apparmor

Lovely - all done and dusted!

and NO, don't mess with the boot files ;)

Understood!   ;) 

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal