LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-26-2022, 04:45 PM   #1
znt
Member
 
Registered: May 2022
Posts: 38

Rep: Reputation: 0
Partition can't be monted


Hi there,

my disk has three parts, but one of these can't be mounted. Is the main one, which used to be root.

Quote:
Error mounting /dev/sda3 at /media/znt/162aab85-3bce-4235-8c4b-cee4ec5da114: Command-line `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/sda3" "/media/znt/162aab85-3bce-4235-8c4b-cee4ec5da114"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sda3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

(udisks-error-quark, 0)
The syslog as follows:

Quote:
May 26 18:23:56 znt-Infoway kernel: [ 3064.902224] JBD2: Unrecognised features on journal
May 26 18:23:56 znt-Infoway kernel: [ 3064.902231] EXT4-fs (sda3): error loading journal
Around the web I collected some information about the procced that would to be. People made mention about tune2fs command and "has_journal" feature, in order to solve that. However, the partition can't be tuned either, according to this:

Quote:
tune2fs 1.42.5 (29-Jul-2012)
tune2fs: Filesystem has unsupported read-only feature(s) while trying to open /dev/sda3
Couldn't find valid filesystem superblock.
Any help will be welcome.

Thanks in addition,

Ivan
 
Old 05-27-2022, 01:43 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,691

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
Hi, znt,

would be nice to post
1. more details, like what OS / version is it (including kernel)
2. what [related] software is installed/used
3. the exact commands you executed.
4. did it work before? What did happen ?
 
Old 05-27-2022, 04:21 AM   #3
znt
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
Pan64,

Ubuntu 13.04 is my current OS. I used to works on Debian 10, but it was crashed up. From an old LiveCd: 3.8.0-35-generic kernel right now.

From Disks (settings->Disks) in Ubuntu I tried to mount the partition, receiving the message above. Once that, I ran
Quote:
sudo tune2fs -O ^has_journal /dev/sda
No effect.

ps: Can't update my Ubuntu, the URL in sources.list is obselete I guess. Do you know the correct link, by the way?

Thanks for replying.

Last edited by znt; 05-27-2022 at 04:26 AM.
 
Old 05-27-2022, 04:38 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,691

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
no, ubuntu 13.04 is not supported at all. It is discontinued long time ago. https://en.wikipedia.org/wiki/Ubuntu...aring_Ringtail)
Upgrading is probably possible, but you need to step one by one, 13.04 -> 14.04 -> ...... 22.04, more than 10 steps. I would rather try to reinstall the whole os in one (which is actually much faster). Just make a backup first. But probably you can just try a new live cd without installing anything.
I think this problem is already solved long time ago, just you need to use a more recent kernel (and os).
https://www.reddit.com/r/linuxquesti...d_features_on/
 
2 members found this post helpful.
Old 05-27-2022, 04:51 AM   #5
znt
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
Could you suggest a distro? i386
How is the right way to make a LiveUSB?
The partition issue is related with kernel version?
I tried to boot a ISO from grub, with loopback command.
Quote:
loopback loop /img.iso
I load the kernel and intrd right, but i got the message
Quote:
[End Kernel panic Not syncing: No working init found. Try to pass init=option to kernel
Have you a clue for what the message refers to?

Last edited by znt; 05-27-2022 at 05:08 AM.
 
Old 05-27-2022, 05:13 AM   #6
Debian6to11
Member
 
Registered: Jan 2022
Location: Limassol, Cyprus
Distribution: Debian
Posts: 382
Blog Entries: 1

Rep: Reputation: 71
To suggest a distribution you need to provide hardware details.
To make a bootable USB one of the best ways from Linux is to use the "dd" command.
 
Old 05-27-2022, 05:19 AM   #7
znt
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
I've 3G RAM and two cores, in 2Ghz.
I tried dd command, but the copy doesn't is made right.
Quote:
dd if=distro.iso of=/dev/sdc
 
Old 05-27-2022, 06:35 AM   #8
Debian6to11
Member
 
Registered: Jan 2022
Location: Limassol, Cyprus
Distribution: Debian
Posts: 382
Blog Entries: 1

Rep: Reputation: 71
Your dd command looks okay. Keep in mind that you need sudo privileges and that the paths be correct.

As far as the hardware, based on the RAM, I recommend an XFCE desktop as it uses less RAM, with MX Linux being a good lightweight distribution, even though I think it is not suitable for beginners. Another one that is lightweight is Bodhi Linux. If it is a Core 2 Duo CPU you should be quite okay.

For your original problem I am a bit lost. Did you actually try to mount a root partition through a different (or live USB) operating system? Otherwise I do not see why you should try and mount a root partition at /media.
 
Old 05-27-2022, 06:46 AM   #9
znt
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Debian6to11 View Post
Your dd command looks okay. Keep in mind that you need sudo privileges and that the paths be correct.

As far as the hardware, based on the RAM, I recommend an XFCE desktop as it uses less RAM, with MX Linux being a good lightweight distribution, even though I think it is not suitable for beginners. Another one that is lightweight is Bodhi Linux. If it is a Core 2 Duo CPU you should be quite okay.

For your original problem I am a bit lost. Did you actually try to mount a root partition through a different (or live USB) operating system? Otherwise I do not see why you should try and mount a root partition at /media.
Thanks, i will check it out.
About the original problem: in fact, I'm trying to recover the partition, that was used to as root, but for now is just a chunk of umounted blocks.
I thinks installing a OS using it, without formating it, could I review it someway, if all other methods were useless.
Thanks for replying.
 
Old 05-27-2022, 07:00 AM   #10
znt
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
A little more details as follows...

had established a system with the DebianEdu distribution, which crashed. My disk is divided into 3 parts, and one of them contains some files and materials that I don't want to lose.

Through an ubuntu Live CD, I noticed that the partition in question was not mounted. I tried manually, without success. I installed ubuntu on the disk with the same orders (boot, root and swap in the relevant partitions) without formatting, but for whatever reason GRUB didn't load the kernel, leading me to the "GRUB rescue" prompt, in DOS apparently. I installed the system on a flash drive and now I can load it normally, but its use is compromised for obvious reasons. Actually, the intention was to set up the system to do the necessary searches to recover the partition that is not being mounted, but I can't load the web pages or install the packages. Ubuntu is old and it is not possible to update for some reason.

I downloaded Kali because it was the only "channel" with which the connection could be established. I intend to install it on the disk (not on the pendrive), using the partition in question, without formatting it, in order to recover the files. How should I configure this installation?, please and, if it is not recommended, either for innocuity or any other reason, I wait for someone to say. In case there is (and of course there is) an "ideal" way to recover this partition and someone is willing to share the knowledge, I'm here for it. For reasons of practicality I thought of doing it in such a way.

I use open-source: MuseScore to compose music, graphic software, IDEs... I develop applications, I know Apache and I program in PHP. I liked Debian I must say, he that introduce to MuseScore. Technically or apparently there was no reason for the system to crash.

Once the material is recovered, I can format the disk and, free of the boot problem, install any other system. Please, I'm hoping for some advice or possibly support to resolve this issue. I don't use pentest or forensic programs, I just want to recover the files.

Summarizing, i lay the issues ..
To install kali, I need to boot it from USB (where my current OS is running) trhough the GRUB, with loopback command, or from another one, that's empty. I tried the first already, I might load the kernel and initrd right, but it breaks with the message
Quote:
End Kernel panic Not syncing: No working init found. Try passing init=option to kernel
So, which would be this init related argument to pass for?
About the second, it's just a create a bootable disk question... Tried with 'dd' command, but the copy wasn't made wright. Can't find out the reason. There's a proper way to execute it? I tried more than one.

Ubuntu offers a Sratup Disk Creator, a tiny GUI program to create the bootable, but this embbed a boot has noting to do with the iso file.

Nevertheless, I hope for a way to recover the partition, which is manly reason. Below is the kernel log when i try to mount it out
Quote:
May 27 08:31:37 znt-Infoway kernel: [17270.587704] JBD2: Unrecognised features on journal
May 27 08:31:37 znt-Infoway kernel: [17270.587713] EXT4-fs (sda3): error loading journal
Around the web people made mention about the 'tune2fs' command, in order to solve that. Can't make it either
Quote:
znt@znt-Infoway:~$ sudo tune2fs -O ^has_journal /dev/sda3
[sudo] password for znt:
tune2fs 1.42.5 (29-Jul-2012)
tune2fs: Filesystem has unsupported read-only feature(s) while trying to open /dev/sda3
Couldn't find valid filesystem superblock.
Thanks in advance.

Last edited by znt; 05-27-2022 at 07:04 AM.
 
Old 05-27-2022, 07:00 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
Quote:
I thinks installing a OS using it, without formating it, could I review it someway,
No.
Quote:
bad superblock on /dev/sda3,
It appears the filesystem is corrupted. fsck should be able to repair it but I would suggest cloning the partition first. Looks like everything is on your root partition.

Last edited by michaelk; 05-27-2022 at 07:06 AM.
 
Old 05-27-2022, 07:10 AM   #12
znt
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
No.

It appears the filesystem is corrupted. fsck should be able to repair it but I would suggest cloning the partition first. Is there data you need to recover? Does the /root partition also contain home? Which partition contains the data you want to recover?
For cloning I would need to space? In this case couldn't.
How to repair it?
Thanks in advance.

Last edited by znt; 05-27-2022 at 07:14 AM.
 
Old 05-27-2022, 07:32 AM   #13
znt
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Looks like everything is on your root partition.
Yes, which we trying to solve
 
Old 05-27-2022, 07:59 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
Quote:
I installed ubuntu on the disk with the same orders (boot, root and swap in the relevant partitions) without formatting, but for whatever reason GRUB didn't load the kernel, leading me to the "GRUB rescue" prompt, in DOS apparently.
If I understand your post, you tried to install Ubuntu on the same disk as your debian? I would of expected a whole bunch of errors since your root partition is corrupted. I am not sure if you overwrote the filesystem or not. Is your only tool the Ubuntu Live USB?
 
Old 05-27-2022, 08:25 AM   #15
znt
Member
 
Registered: May 2022
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
If I understand your post, you tried to install Ubuntu on the same disk as your debian? I would of expected a whole bunch of errors since your root partition is corrupted. I am not sure if you overwrote the filesystem or not. Is your only tool the Ubuntu Live USB?
Yes, is the only. I've Hiren's Boot too, not so experiencied with.
I installed Ubuntu in the same disk, the only error came across was the mentined, that leads me to the grub rescue out.
However, you throw a light.. How could I repair the partition?
Quote:
znt@znt-Infoway:~$ fsck --help
fsck from util-linux 2.20.1
fsck.ext4: invalid option -- 'h'
Usage: fsck.ext4 [-panyrcdfvtDFV] [-b superblock] [-B blocksize]
[-I inode_buffer_blocks] [-P process_inode_size]
[-l|-L bad_blocks_file] [-C fd] [-j external_journal]
[-E extended-options] device

Emergency help:
-p Automatic repair (no questions)
-n Make no changes to the filesystem
-y Assume "yes" to all questions
-c Check for bad blocks and add them to the badblock list
-f Force checking even if filesystem is marked clean
-v Be verbose
-b superblock Use alternative superblock
-B blocksize Force blocksize when looking for superblock
-j external_journal Set location of the external journal
-l bad_blocks_file Add to badblocks list
-L bad_blocks_file Set badblocks list
Makes it sense?
Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to re-size root partition without loosing any data if the root partition is immediately followed by swap partition thebiggiantmouse Linux - Hardware 16 09-25-2019 12:06 PM
[SOLVED] USP monted do not disappear from Media jauch Linux - Newbie 2 11-27-2009 07:00 AM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
MP3 player, monted but no access English_Man Mandriva 5 04-04-2006 09:27 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:32 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