degsy@degsy-MM061 ~ $ sudo mount /dev/sda1 /mnt
[sudo] password for degsy:
mount: /dev/sda1 already mounted or /mnt busy
mount: according to mtab, /dev/sda1 is already mounted on /mnt
degsy@degsy-MM061 ~ $ for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
degsy@degsy-MM061 ~ $ sudo chroot /mnt
chroot: failed to run command ‘/bin/bash’: Exec format error
degsy@degsy-MM061 ~ $ for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
degsy@degsy-MM061 ~ $ sudo chroot /mnt
chroot: failed to run command ‘/bin/bash’: Exec format error
degsy@degsy-MM061 ~ $ apt-get install --reinstall lightdm
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
degsy@degsy-MM061 ~ $
wow, that works Mark.
Took me back to the log in screen and then accepted my password and logged in,in fact this reply is from the Ubuntu OS. Is there something else I need to do to ensure this works in future, or is the problem solved?
No it’s NOT solved … the problem is that both Ubuntu and Peppermint are sharing a swap partition.
You may be able to get away with this if they’re both the same architecture, but it looks like you can’t if they aren’t … it’s probably not a great idea anyway, specially if you ever use hibernation.
The only reason Ubuntu is currently working is we’ve switched swap off … enabling it again would either stop Ubuntu working, or stop Peppermint working.
Ideally you’d (from Ubuntu), resize the /dev/sda6 (peppermint partition) leaving space after it for another swap partition … create that swap partition, edit Ubuntu’s fstab file to point at the new swap partition … then re-enable swap.
Do you know how to boot the Peppermint LiveCD/LiveUSB, then use Gparted to shrink the /dev/sda6 partition leaving around 3 - 4GB after it on the disk … then create a new partition of the type "linux-swap using that 3 - 4GB space ?
Hi Mark,
Carried out your instructions and here are the outputs you asked for:
derek@derek-MM061:~$ sudo fdisk -l
[sudo] password for derek:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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
Disk identifier: 0x0001c80a
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 172790376 86394164+ 83 Linux
/dev/sda2 172791806 234440703 30824449 5 Extended
/dev/sda5 231317504 234440703 1561600 82 Linux swap / Solaris
/dev/sda6 172791808 225026047 26117120 83 Linux
/dev/sda7 225028096 231315455 3143680 82 Linux swap / Solaris
Partition table entries are not in disk order
derek@derek-MM061:~$ sudo blkid
/dev/sda1: UUID=“7b933a4f-ce32-4726-b52d-427d2d154956” TYPE=“ext4”
/dev/sda5: UUID=“b73c8a18-387e-4f10-a296-4c9363cd4d7c” TYPE=“swap”
/dev/sda6: UUID=“b5cba5e4-ca3b-4bc2-81c2-cf10fab29851” TYPE=“ext4”
/dev/sda7: UUID=“dfa63e69-af4f-47ae-883d-8d090067bf29” TYPE=“swap”
derek@derek-MM061:~$
Thank you Mark, just one very small issue, which has just cropped up, when I boot to peppermint 6 I now get the scanning btrfs file system thing come up, it does load but this slows things down, seem to remember this came up before as a topic but cant find the solution, is it quick and simple?
Will then mark this thread as solved,
once again thanks for the help, time and most of all your patience.