• We had to restore from a backup today after a failed software update. Backup was from 0000 EDT and restored it at 0800 EDT so we lost about 8hrs. Today is 07/20/2024. More info here.

Computer Refuses to Boot

Some Extra Info
Code:
sudo smartctl -a /dev/sda1
[sudo] password for jeee:
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-91-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.14 (AF)
Device Model:     ST500DM002-1BD142
Serial Number:    Z2ARGN5R
LU WWN Device Id: 5 000c50 04072c2da
Firmware Version: KC45
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sun Jan  7 13:59:19 2024 EET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (  600) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  82) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x303f) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   109   099   006    Pre-fail  Always       -       21902416
  3 Spin_Up_Time            0x0003   100   100   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   089   089   020    Old_age   Always       -       11908
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   087   060   030    Pre-fail  Always       -       476923335
  9 Power_On_Hours          0x0032   059   059   000    Old_age   Always       -       36609
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   098   098   020    Old_age   Always       -       2796
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       3 3 4
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   065   051   045    Old_age   Always       -       35 (Min/Max 33/35)
194 Temperature_Celsius     0x0022   035   049   000    Old_age   Always       -       35 (0 8 0 0 0)
195 Hardware_ECC_Recovered  0x001a   051   025   000    Old_age   Always       -       21902416
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       36611h+26m+53.210s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       2374822666
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       249677694

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     30684         -
# 2  Short offline       Completed without error       00%     30313         -
# 3  Short offline       Completed without error       00%     30313         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
 


When a Computer wont Boot (Tower)...the first things I test are the Power Supply then the HDD/SSD...I have an SSD. Of cause it could be the Motherboard as this happened to me a few months ago.

It could be a new Kernel...Graphics Card...something the user did etc.
t26109.gif


If it's a new Kernel...roll it back...Graphics Card...switch to nouvau open source...if it's something the user did...that's where a backup System Image comes in handy. For me it's all about trial and error with the exception of UEFI...that's not my thing...wish we still had Legacy.
m1213.gif
 
I'm onto some leads here.

@Jeee - when you can next get into Mint,

1. Could you please give us the output from the following command?

Code:
cat /etc/fstab

2. Did you source and install the nVidia driver/s from somewhere other than within Linux Mint, and if so, where?

3. When you installed KDE did you do so from Synaptic Package Manager, or from in Terminal - how did you do it?

4. Can you take a screenshot from your Timeshift of snapshots taken. Here's mine below but I run multiple distros, so it is only Linux Mint 21.2 I am interested in from you, and your will not likely have comments.

vAmHV0g.png

If you can respond to those four questions with your answers numbered, that would be great.

Cheers

Wizard
 
Another question

5. At the login screen, do you get a choice (perhaps top left) to change from KDE to Cinnamon (not Cinnamon rendering) and have you done so and what happens?

Wiz
 
I think I have diagnosed my problem correctly. When booting I go into recovery mode which then says I'm in read-only mode. I run dpkg and it changes into read/write mode and it boots perfectly with no issues. I don't know how to fix it though. Here are the photos :
1000006344.jpg
1000006347.jpg

1000006348.jpg
 
I'm onto some leads here.

@Jeee - when you can next get into Mint,

1. Could you please give us the output from the following command?

Code:
cat /etc/fstab

2. Did you source and install the nVidia driver/s from somewhere other than within Linux Mint, and if so, where?

3. When you installed KDE did you do so from Synaptic Package Manager, or from in Terminal - how did you do it?

4. Can you take a screenshot from your Timeshift of snapshots taken. Here's mine below but I run multiple distros, so it is only Linux Mint 21.2 I am interested in from you, and your will not likely have comments.

vAmHV0g.png

If you can respond to those four questions with your answers numbered, that would be great.

Cheers

Wizard
1-
Code:
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=700938f4-8824-450a-a5a8-34a66e182105 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda2 during installation
UUID=56905180-ee89-4069-8cbc-f552bf0e0235 none            swap    sw              0       0

UUID=9ce2f477-1715-427f-be19-0b26962977f9 /media/storage ext4 defaults 0 2
2-I installed it from the terminal by using "sudo apt install nvidia-drivers-470" if I remember correctly
3-Terminal. My friend gave me the command for it.
4-I don't have any snapshots. Should I have some?
5- I started with XFCE but there isn't really any difference
 
I think I have diagnosed my problem correctly.

You're doing fine, but there is a bit more to it. :)

With that first screenshot (filesystem state: read-only, and resume highlighted)

What happens when you just enter on resume, without going to dpkg?

The fstab output looks fine, thanks.

Wiz
 
You're doing fine, but there is a bit more to it. :)

With that first screenshot (filesystem state: read-only, and resume highlighted)

What happens when you just enter on resume, without going to dpkg?

The fstab output looks fine, thanks.

Wiz
It continues the boot sequence normally and goes into emergency mode which doesn't boot
 
Actually, on the /etc/fstab - can you try something for me?

With the bottom line

UUID=9ce2f477-1715-427f-be19-0b26962977f9 /media/storage ext4 defaults 0 2

...Can you place a # at the start of that (with or without a space before the U, doesn't matter), save it and reboot and tell us what happens?

Cheers

Wiz
 
Actually, on the /etc/fstab - can you try something for me?

With the bottom line



...Can you place a # at the start of that (with or without a space before the U, doesn't matter), save it and reboot and tell us what happens?

Cheers

Wiz
it works fine now. It boots correctly
 
I ran into a new problem. The # i added in the fstab file was my second hard drive and now it mounts in read only instead. What can I do?
 
OK, leave the line commented out, for now (with the #) and exit /etc/fstab if you are in it.

Go to your Start Menu and start to type in

disks

click the reference to open.

This is GNOME Disks. I'll show you a couple of pictures

yQVCMT7.png


1. Click your storage drive on the left so it is coloured. If it has no partitions, skip the next step.

2. (optional) If partitioned, click to highlight the required partition

3. Look where my cursor is, yours may have 2 cogs, one larger and one smaller.

4. Click that and choose edit mount options

5. Where at the top it says User Session Defaults, switch that off

6. Check Mount at system startup, and leave Show in user interface checked.

7. Click OK and enter your password to save. This will alter and save your /etc/fstab

8. Close Disks and reboot

Let us know how it goes, and either way, please give us an update on the content of /etc/fstab

Cheers

Wizard
 
OK, leave the line commented out, for now (with the #) and exit /etc/fstab if you are in it.

Go to your Start Menu and start to type in

disks

click the reference to open.

This is GNOME Disks. I'll show you a couple of pictures

yQVCMT7.png


1. Click your storage drive on the left so it is coloured. If it has no partitions, skip the next step.

2. (optional) If partitioned, click to highlight the required partition

3. Look where my cursor is, yours may have 2 cogs, one larger and one smaller.

4. Click that and choose edit mount options

5. Where at the top it says User Session Defaults, switch that off

6. Check Mount at system startup, and leave Show in user interface checked.

7. Click OK and enter your password to save. This will alter and save your /etc/fstab

8. Close Disks and reboot

Let us know how it goes, and either way, please give us an update on the content of /etc/fstab

Cheers

Wizard
Both entries were already checked. This is my fstab rn.
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=700938f4-8824-450a-a5a8-34a66e182105 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda2 during installation
UUID=56905180-ee89-4069-8cbc-f552bf0e0235 none            swap    sw              0       0

#UUID=9ce2f477-1715-427f-be19-0b26962977f9 /media/storage ext4 defaults 0 2
/dev/disk/by-uuid/9ce2f477-1715-427f-be19-0b26962977f9 /mnt/9ce2f477-1715-427f-be19-0b26962977f9 auto nosuid,nodev,nofail,x-gvfs-show 0 0
My hard drive did say . Assesment: Disk is OK, 151 bad sectors(31 C/81 F)
 
Maybe my bad, I should have said to switch User Session Defaults back on after you made the changes, and then Saved.

Have you tried that and what is the outcome, can you read/write to the second drive?

Wiz
 

Members online


Top