LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 06-25-2019, 08:56 PM   #1
tiB0
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Rep: Reputation: Disabled
CentOS on VirtualBox stopped loading - "superblock could not be read or does not describe a correct ext2" filesystem


I hope I have posted in the correct forum. I had a choice between:
* Linux - Newbie (I'm not even though I didn't know the e2fsck command)
* VirtualBox (not exactly this problem), or
* CentOS which I am trying to load up via VirtualBox
I have tried Googling which lead me to forum sites like this but not had any success and importantly was too afraid to try more in case it causes more issues. Any help would be appreciated.

Here is what I can see when I tried loading up. I did not do anything like mount or didn't shutdown properly like what other people mentioned they were doing. I have included more info following this error message.


Starting udev: [OK]
Setting hostname localhost.localdomain: [OK]
Checking filesystems
fsck.ext4: No such file or directory while trying to open /dev/mapper/VolGroup-lv_root
/dev/mapper/VolGroup-lv_root:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternative superblock:
e2fsck -b 8193 <device>
[FAILED]
*** An error occurred during the file system check.
*** Dropping you into shell; the system will reboot
*** when you leave the shell.
*** Warning -- SELinux is active
*** Disabling security enforcement for system recovery
*** Run 'setenforce 1' to reenable.
Give root password for maintenance
(or type Control D to continue)



Here is further info
* /etc/fstab
https://drive.google.com/open?id=1iO...oiId-BdZo5zE-e
* fdisk -l
https://drive.google.com/open?id=13h...02fPcE0k43sZlD

Last edited by tiB0; 07-08-2019 at 05:02 PM.
 
Old 06-28-2019, 06:05 PM   #2
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
Your /etc/fstab and fdisk -l output didn't seem to correctly attach to your post. Could you either edit your post or post those in response to this thread?
 
Old 06-28-2019, 06:27 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Quote:
Originally Posted by tiB0 View Post
Starting udev: [OK]
Setting hostname localhost.localdomain: [OK]
Checking filesystems
fsck.ext4: No such file or directory while trying to open /dev/mapper/VolGroup-lv_root
/dev/mapper/VolGroup-lv_root:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternative superblock:
e2fsck -b 8193 <device>
[FAILED]
Something has corrupted the Linux LVM volume structure in that VirtualBox container, or perhaps just changed its UUID such that the CentOS initscript cannot find it.

What did you do to see the /etc/fstab listing to which you attempted to post a link? That would help explain what might have happened to that volume.

(Corrected image links below.)
 
Old 07-08-2019, 05:44 PM   #4
tiB0
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wagscat123 View Post
Your /etc/fstab and fdisk -l output didn't seem to correctly attach to your post. Could you either edit your post or post those in response to this thread?
wagscat123, for completeness i removed the "[IMG]..[/IMG]" tags from my original post. Appreciate your viewpoint.

@rknichols, thanks for giving the image links. Re: what i did differently to cause this, i recall having only used a different computer from the one at school. Having said that, i don't understand why the error refer to ext2 when the fstab mentioned ext4 and i did not change the fstab. By the way, i don't know how to change the fstab anyway even if this is the solution nor i know what UUID to change to - should i try changing the Machine, HardDisk and Image uuid values in .vbox file as suggested in https://stackoverflow.com/questions/...a-virtual-disk ? Isn't that a forceful way to do rather find the UUID from the GUI and change it in the fstab? Otherwise, I may try to use the same computer when school resume.
 
Old 07-08-2019, 07:25 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Quote:
Originally Posted by tiB0 View Post
@rknichols, thanks for giving the image links. Re: what i did differently to cause this, i recall having only used a different computer from the one at school. Having said that, i don't understand why the error refer to ext2 when the fstab mentioned ext4 and i did not change the fstab. By the way, i don't know how to change the fstab anyway even if this is the solution nor i know what UUID to change to - should i try changing the Machine, HardDisk and Image uuid values in .vbox file as suggested in https://stackoverflow.com/questions/...a-virtual-disk ? Isn't that a forceful way to do rather find the UUID from the GUI and change it in the fstab? Otherwise, I may try to use the same computer when school resume.
ext2/3/4 are the same basic filesystem with features added at each version. They all use the same filesystem driver. It's actually common for the driver try ext2/3/4 in sequence and stop when no more incompatible feature flags are found in the super block. You aren't getting that far, since LVM can't locate (or at least hasn't activated) the volume that contains the filesystem. It's like missing /dev/sda1 and then seeing a message that "fsck /dev/sda1" is failing.

I'm afraid I domn't know enough about VirtualBox to comment on that procedure. With a similar problem elsewhere, my preference would be to boot from a rescue CD and use the lsblk command to see the UUIDs, and determine what is different from the UUID for which the boot loader is looking.

Last edited by rknichols; 07-08-2019 at 07:26 PM.
 
Old 07-09-2019, 07:05 PM   #6
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
If you can get the VM to boot to a Live ISO image or into its Linux installation at all, you definitely can use lsblk or blkid, and edit your fstab file to get things working again
 
Old 07-09-2019, 08:57 PM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Quote:
Originally Posted by wagscat123 View Post
... and edit your fstab file to get things working again
Maybe. It appears that the volume with the root filesystem isn't being found, so the contents of /etc/fstab are not relevant.

This sounds more like an issue between the boot loader and the structure or labeling of the root LVM volume.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] virtualbox is installed along with virtualbox-dkms and virtualbox-ext-pack and linux-headers-generic, but error for no /dev/vboxdrv Astral Axiom Linux - Software 2 03-04-2019 08:09 PM
[SOLVED] e2fsck fails: "The superblock could not be read or does not describe a correct ext2" jghalam Linux - Embedded & Single-board computer 1 08-26-2010 07:45 AM
The superblock could not be read or does not describe a correct ext2 filesystem. atanasoff Slackware 11 01-08-2009 12:04 AM
Finding Module Dependencies...(Still loading...still loading..still loading..HANG!!!) Aeudian Linux - General 3 08-11-2003 03:31 PM
Finding Module Dependencies.....(still loading....Still loading....still loading) Aeudian Linux - Newbie 1 07-28-2003 02:27 PM

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

All times are GMT -5. The time now is 02:57 AM.

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