LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-01-2024, 01:07 AM   #1
m.juhad
LQ Newbie
 
Registered: Apr 2024
Posts: 4

Rep: Reputation: 0
How to fixed ubuntu server 20.04 LTS /dev/mapper/ubuntu/--vg-ubuntu--lv contains a file system with errors, check forced


Dear Master Ubuntu Server 20.04 LTS,

Hi I am newbie for Linux Ubuntu Server user.
I have a cases with my Linux Ubuntu PC Server.
When I boot my PC I got an error with:

/dev/mapper/ubuntu/--vg-ubuntu--lv contains a file system with errors, check forced

Error Captured:
https://drive.google.com/file/d/1FQo...ew?usp=sharing

I used 2 storages SSD & HDD and both of storage installed Ubuntu Server 20.04 LTS. And the cases is same when I try to boot of each.

Any user got some experienced likes me and please teach me to how to fixed it this cases?

Details hardware are:
- Motherboard: ASRock Z790 PG Riptide 4.13
- RAM: 2x Corsair 16 GB (4400)
- SSD: Samsung SSD 970 Evo Plus 5 500 GB
- HDD: Seagate 2TB

Hardware Capture:
https://drive.google.com/file/d/1yBV...ew?usp=sharing

Warm Regards,
 
Old 05-01-2024, 07:26 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,546

Rep: Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497
The image you posted with the error output states that a manual fsck (filesystem check) is required so do that. Note the filesystem type (default on Ubuntu is ext4) and run fsck without the options mentioned in the image (too small for me to read). You will find countless sites with an online search explaining how to use fsck such as the one at the link below. Read through it before doing anything so you have at least a basic understanding.

https://phoenixnap.com/kb/fsck-command-linux

Last edited by yancek; 05-02-2024 at 06:51 AM.
 
Old 05-01-2024, 09:49 PM   #3
m.juhad
LQ Newbie
 
Registered: Apr 2024
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
The image you posted with the error output states that a manual fsck (filesystem check) is required so do that. Note the filesystem type (default on Ubuntu is ext4) and run fsck without the options mentioned in the image (toot small for me to read). You will find countless sites with an online search explaining how to use fsck such as the one at the link below. Read through it before doing anything so you have at least a basic understanding.

https://phoenixnap.com/kb/fsck-command-linux


Hi Thanks anyway to try to help me,

I hope this image better then previous, then you can help me to guide for trouble shooting in my cases step by step in linux command.
https://drive.google.com/file/d/1MzF...ew?usp=sharing

screenshot df -h
https://drive.google.com/file/d/1MzH...ew?usp=sharing

screenshot blkid
https://drive.google.com/file/d/1N-F...ew?usp=sharing
 
Old 05-02-2024, 07:14 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,546

Rep: Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497
I don't use LVM so you need to do an online search for 'running fsck on Ubuntu LVM' or something similar. The site at the link below has a discussion of it if you scroll down the page a bit. Make sure to not use the fsck options mentioned in your error.

https://askubuntu.com/questions/1124...disk-with-fsck
 
Old 05-03-2024, 11:15 PM   #5
m.juhad
LQ Newbie
 
Registered: Apr 2024
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
I don't use LVM so you need to do an online search for 'running fsck on Ubuntu LVM' or something similar. The site at the link below has a discussion of it if you scroll down the page a bit. Make sure to not use the fsck options mentioned in your error.

https://askubuntu.com/questions/1124...disk-with-fsck


I try to do repair with the guideline you've given and right now the problem has been solved. Now, I still monitoring my server and hope the cases not happened again.

Thanks anyway, mate.

Below the steps I do the troubleshooting.(I Get from AI chat)

1. Check the LVM Status:
Run the following command to check the status of the LVM volumes:

sudo lvdisplay

2. Unmount the File System:
If the file system is mounted, unmount it before proceeding with the repair:

sudo umount /dev/mapper/ubuntu--vg-ubuntu--lv

3. Check and Repair the File System:
You can run a file system check and repair using fsck. Run the following command to check the file system for errors:

sudo fsck -fy /dev/mapper/ubuntu--vg-ubuntu--lv

4. Remount the File System:
After repairing the file system, you can remount it:

sudo mount /dev/mapper/ubuntu--vg-ubuntu--lv /mnt

5. Reboot the Server:
Once you've completed the repair process, reboot the server to ensure that all changes take effect:

sudo reboot

After following these steps, your Ubuntu server's LVM disk with file system errors should be repaired. Make sure to monitor the server after rebooting to ensure that everything is functioning correctly.
 
Old 05-04-2024, 07:14 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,546

Rep: Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497
Good idea to save that information to a file, just in case. You might do an online search for tools to use to monitor your hardware. One such option at the link below.

https://help.ubuntu.com/community/Smartmontools
 
Old 05-05-2024, 10:25 PM   #7
m.juhad
LQ Newbie
 
Registered: Apr 2024
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
Good idea to save that information to a file, just in case. You might do an online search for tools to use to monitor your hardware. One such option at the link below.

https://help.ubuntu.com/community/Smartmontools

Mates,

Thanks for sharing the link. I'll try if any faulty on my ubuntu server storage.

by the way, If I runs Smartmontools. It will impact with the data traffic on my server and client ?

And if I got any problem with my ubuntu server, I hope you'll be help me again with your experienced.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/mapper/VoTgroup-Iv_root contains a file system with errors, check forced. Ubattached inode 2624285root: /dev/mapper/VoIgroup-Iv_root: U yba Fedora 3 08-04-2022 07:16 AM
Dev/sdb3 contains a file system with errors Coop_012 Linux - Software 30 01-11-2018 10:11 PM
/dev/hdc1 contains a file system with errors, Check Forced mvrieze Slackware 5 01-10-2012 10:24 AM
/dev/hda1 contains a file system with erors, check forced JFvdPol Linux - Newbie 15 11-08-2009 11:34 AM
"File system with errors, check forced" Luis Rosso Linux - General 5 02-02-2001 07:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration