Author Topic: peppermint won't boot (SOLVED)  (Read 1786 times)

0 Members and 1 Guest are viewing this topic.

Offline donwatson

  • Hero Member
  • *****
  • Posts: 1022
  • Karma: 10
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
peppermint won't boot (SOLVED)
« on: July 28, 2021, 10:51:08 am »
Hi All,
A long time since I posted here and all because I had a perfectly usable laptop and and a version of Peppermint installed. I have came through the various updates of Peppermint ( I don't know which version I have now as I can't log in ) but it all worked until about 4 days ago.
When trying to log in I would experience minor issues and I did various things and got logged in eventually. Yesterday I had a major issue and following some prompts ended at the GNU GRUB version 2.04 screen, from that I chose 'Advanced Options for Peppermint GNU Linux', at the top of the next screen was
Peppermint GNU/Linux, with Linux 4.15.0-151-generic
Peppermint GNU/Linux, with Linux 4.15.0-151-generic (recovery mode)
I choose the second option and finally got logged in again.
This morning I am having the same problem logging in but now nothing seems to work.
I have scrolled down to Peppermint GNU/Linux, with Linux 4.15.0-34-generic and pressed Enter but the screen fills with messages like 'couldn't get size', couldn't get UEFI db list, /dev/sda2/ contains a file system with errors, the root filesystem on /dev/sda2/ requires a manual fsck, and ends with (initrams) with the flashing cursor. I have left it there at the moment and went to my windross machine and sent this help request hoping you can help.
The laptop is rather old now and I may be better cleaning it up and installing the latest peppermint but I need access to passwords etc. before I do that unless I can install a new version and hope I can save passwords etc. ??
take care and stay safe
Don W
 
« Last Edit: August 04, 2021, 09:29:40 am by donwatson »
Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 9    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space
External 2TiB HD

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1482
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #1 on: July 28, 2021, 11:23:17 am »
Hi Don.

I hesitate to advise on fsck as I am no expert on Linux, and others who have commented recently to similar posts will, I am sure, offer advice. 

In the meantime you might like to look at https://phoenixnap.com/kb/fsck-command-linux
The section "Run fsck on Linux Root Partition" (scroll just over half way down) looks promising if you can still select recovery mode. 

Keith

The Linux Community Forum

Re: peppermint won't boot
« Reply #1 on: July 28, 2021, 11:23:17 am »

Offline donwatson

  • Hero Member
  • *****
  • Posts: 1022
  • Karma: 10
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #2 on: July 28, 2021, 11:43:15 am »
Thanks Keith,
I have used fsck as I saw an earlier post about this problem and it was suggested that fsck -fy /dev/sda2/ could be the answer. It worked and I was able to log in. I rebooted and now I can't log in again, or rather I can log in again but it then goes to a black screen with the arrow pointer but nothing happens, I use a continual press on the On button to shut down.
Don W
Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 9    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space
External 2TiB HD

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1482
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #3 on: July 28, 2021, 11:54:30 am »
On my Ubuntu system, sda2 is an extended (swap) partition and I am guessing that you need fsck -y /dev/sda.

As you have got to the terminal screen I suggest that you back up everything before using fsk.  Are you happy with using the copy -a command? 

{Again, I emphasise that I am no expert on fsk.  Caveat emptor!}

Offline donwatson

  • Hero Member
  • *****
  • Posts: 1022
  • Karma: 10
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #4 on: July 28, 2021, 12:20:29 pm »
I have logged in again on my Linux machine.
If you like I can try the copy -a command, I was wondering if I should just check out my passwords for my main programmes and make a written copy of them first. Then I could always install the latest version of Peppermint and start again/anew ??
Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 9    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space
External 2TiB HD

The Linux Community Forum

Re: peppermint won't boot
« Reply #4 on: July 28, 2021, 12:20:29 pm »

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1482
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #5 on: July 28, 2021, 02:33:30 pm »
I feel one should always keep backup copies of everything as catastrophes do occur - as you've discovered. 
To make things easier I have written a script to copy all my files (using rsync), and I do so on a monthly basis. 

If you can backup all your files/passwords then installing the latest version of Peppermint might be the simplest way to go, although if you are willing to do that then you lose nothing by trying fsck first. If you do attempt a fresh installation and the installation fails then that might indicate a disc problem has been causing your difficulties. 

Keith

Offline donwatson

  • Hero Member
  • *****
  • Posts: 1022
  • Karma: 10
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #6 on: July 28, 2021, 04:14:13 pm »
I have copied and saved to a pen drive all my passwords etc. that I want.
I have tried what you suggest with fsck and this is the result

[email protected] ~ $ fsck -y /dev/sda
fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
fsck.ext2: Permission denied while trying to open /dev/sda
You must have r/w access to the filesystem or be root
[email protected] ~ $

Would it be ok to send me a copy of the script you have written and I will make a copy of my files and see what to do from there ??

Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 9    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space
External 2TiB HD

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1482
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #7 on: July 28, 2021, 04:19:43 pm »
Sorry Don - one needs to enter the command as "root":
Code: [Select]
sudo fsck -y /dev/sda
You will be asked for your password.

Offline donwatson

  • Hero Member
  • *****
  • Posts: 1022
  • Karma: 10
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #8 on: July 28, 2021, 06:02:14 pm »
I get this result

[email protected] ~ $ sudo fsck -y /dev/sda
[sudo] password for don:
fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
/dev/sda is in use.
e2fsck: Cannot continue, aborting.


[email protected] ~ $
What next ? Would I be better installing/upgrading to Peppermint 10 ?
Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 9    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space
External 2TiB HD

The Linux Community Forum

Re: peppermint won't boot
« Reply #8 on: July 28, 2021, 06:02:14 pm »

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1863
  • Karma: 145
  • Gender: Male
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #9 on: July 28, 2021, 06:13:04 pm »
You need to boot into a live USB/CD environment then make sure none of the disks are mounted:

Code: [Select]
for n in /dev/sda* ; do umount $n ; done

then run fsck as Keith indicated

Code: [Select]
sudo fsck -y /dev/sda

Note using the -y will answer yes to all fixing suggestions.

perhaps you could just do a dry run first:
Code: [Select]
sudo fsck -n /dev/sda
« Last Edit: July 28, 2021, 06:20:36 pm by SeZo »

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1482
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #10 on: July 28, 2021, 06:33:28 pm »
Sezo, thank you for coming to the rescue - I had forgotten about un-mounting. 

Offline donwatson

  • Hero Member
  • *****
  • Posts: 1022
  • Karma: 10
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #11 on: July 28, 2021, 07:35:06 pm »
Thanks SeZo.  I get this when I do a dry run

[email protected] ~ $ sudo fsck -n /dev/sda
[sudo] password for don:
fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
Warning!  /dev/sda is in use.
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

Found a gpt partition table in /dev/sda
[email protected] ~ $

What next ??
I have tried things all day now, after tea I logged in ok and had a read at my posts on the forum, exited LinuxForums and went to my windross machine to play some games. I am back now but only after a bit of trouble. When I came back here the laptop had crashed/ stopped / wasn't working and I had to shut the laptop down again with the On button.
Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 9    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space
External 2TiB HD

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1863
  • Karma: 145
  • Gender: Male
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #12 on: July 28, 2021, 08:26:00 pm »
Quote
Warning!  /dev/sda is in use.
Did you unmount all sda partitions?

Please list partitions (that is lowercase L):
Code: [Select]
sudo fdisk -l

Then run fsck on partitions other than swap:
Code: [Select]
sudo fsck -n /dev/sda1

or
Code: [Select]
sudo fsck -n /dev/sda2

If that still throws the superblock corrupt message then
try running e2fsck with an alternate superblock (replace <device> with /dev/sda1 or sda2):
   
Code: [Select]
sudo e2fsck -b 8193 <device>

Offline donwatson

  • Hero Member
  • *****
  • Posts: 1022
  • Karma: 10
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #13 on: July 28, 2021, 08:50:48 pm »
[email protected] ~ $ sudo fdisk -l
[sudo] password for don:
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F540E3BD-39D7-4D41-ADB4-238E423AC1BE

Device       Start       End   Sectors   Size Type
/dev/sda1     2048   1050623   1048576   512M EFI System
/dev/sda2  1050624 976771071 975720448 465.3G Linux filesystem

[email protected] ~ $ sudo fsck -n /dev/sda1
fsck from util-linux 2.31.1
fsck.fat 4.1 (2017-01-24)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
 Automatically removing dirty bit.
Leaving filesystem unchanged.
/dev/sda1: 10 files, 1691/130812 clusters
[email protected] ~ $

[email protected] ~ $ sudo fsck -n /dev/sda2
fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
Warning!  /dev/sda2 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
/dev/sda2: clean, 2783975/30498816 files, 18432857/121965056 blocks
[email protected] ~ $

[email protected] ~ $ sudo fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F540E3BD-39D7-4D41-ADB4-238E423AC1BE

Device       Start       End   Sectors   Size Type
/dev/sda1     2048   1050623   1048576   512M EFI System
/dev/sda2  1050624 976771071 975720448 465.3G Linux filesystem

I am afraid I have lost control here and am getting very frustrated. I don't know what I am doing. The last command I tried gave this result

[email protected] ~ $ sudo e2fsck -b 32768 /dev/sda1/
e2fsck 1.44.1 (24-Mar-2018)
e2fsck: Not a directory while trying to open /dev/sda1/

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

[email protected] ~ $

Would it be easier to just put a new version of Peppermint on this laptop??




Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 9    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space
External 2TiB HD

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1863
  • Karma: 145
  • Gender: Male
    • View Profile
    • Awards
Re: peppermint won't boot
« Reply #14 on: July 28, 2021, 09:31:56 pm »
Quote
Warning!  /dev/sda2 is mounted.

Still mounted?

Probably a lot easier if you got nothing to loose

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal