LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Partition can't be monted (https://www.linuxquestions.org/questions/linux-general-1/partition-cant-be-monted-4175712655/)

znt 05-26-2022 04:45 PM

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

pan64 05-27-2022 01:43 AM

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 ?

znt 05-27-2022 04:21 AM

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.

pan64 05-27-2022 04:38 AM

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/

znt 05-27-2022 04:51 AM

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?

Debian6to11 05-27-2022 05:13 AM

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.

znt 05-27-2022 05:19 AM

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

Debian6to11 05-27-2022 06:35 AM

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.

znt 05-27-2022 06:46 AM

Quote:

Originally Posted by Debian6to11 (Post 6356815)
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.

znt 05-27-2022 07:00 AM

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.

michaelk 05-27-2022 07:00 AM

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.

znt 05-27-2022 07:10 AM

Quote:

Originally Posted by michaelk (Post 6356822)
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.

znt 05-27-2022 07:32 AM

Quote:

Originally Posted by michaelk (Post 6356822)
Looks like everything is on your root partition.

Yes, which we trying to solve :)

michaelk 05-27-2022 07:59 AM

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?

znt 05-27-2022 08:25 AM

Quote:

Originally Posted by michaelk (Post 6356834)
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.

michaelk 05-27-2022 09:33 AM

Quote:

fsck /dev/sdxy
However, it would be nice to have a backup/clone as to not make things worse but unfortunately you do not have the capability. From your postings I do not have a an exact understanding of the "condition" of the disk at the moment so
my confidence is not very high.

sundialsvcs 05-27-2022 10:43 AM

You might be able to use the smartctl command to examine the drive's on-board diagnostics of itself. (The so-called "S.M.A.R.T." software that's built in to every modern drive.) If the drive is malfunctioning, get rid of the damned thing, because things will never get better.

znt 05-27-2022 11:07 AM

Quote:

Originally Posted by michaelk (Post 6356858)
However, it would be nice to have a backup/clone as to not make things worse but unfortunately you do not have the capability. From your postings I do not have a an exact understanding of the "condition" of the disk at the moment so
my confidence is not very high.

/dev/sda3 has unsupported feature(s): metadata_csum

Sir, ARE YOU SURE that is not a Devil thing?! ^_^

michaelk 05-27-2022 11:37 AM

This is my summary of your situation.

There are no hidden reasons. Ubuntu 13 is to old. It went End of Live in 2014.
It does not support features that are installed on the newer filesystem on the hard disk.

As posted upgrading from older unsupported versions is difficult if not impossible. Your time is much better spent on installing something current.

Your sort of stuck because you only have one USB flash drive. What other resources do you have available?

znt 05-27-2022 11:43 AM

Quote:

Originally Posted by michaelk (Post 6356892)
This is my summary of your situation.

There are no hidden reasons. Ubuntu 13 is to old. It went End of Live in 2014.
It does not support features that are installed on the newer filesystem on the hard disk.

As posted upgrading from older unsupported versions is difficult if not impossible. Your time is much better spent on installing something current.

Your sort of stuck because you only have one USB flash drive. What other resources do you have available?

Two USB flash drives, but can't copy the image right for any reason.
I'm almost giving it up. It's sad, was spent time. Variables were declared in machine language, is nobody's duty know that. What is not a logical issue, I mean. 'dd' could be anything else and so on.. People are ego filled in this area, when have nothing to be proud. It's just humanity sense and have domain effectively. Sorry.

michaelk 05-27-2022 11:57 AM

Where is the ISO file saved? Which flash drive?

If still running the live version then running the following should work.
sudo dd if=file.iso of=/dev/sdx

znt 05-27-2022 12:10 PM

Quote:

Originally Posted by michaelk (Post 6356899)
Where is the ISO file saved? Which flash drive?

If still running the live version then running the following should work.
sudo dd if=file.iso of=/dev/sdx

pay attention what you are asking for... WHICH flash drive?

what i did.

sundialsvcs 05-27-2022 02:56 PM

Quote:

Originally Posted by znt (Post 6356894)
People are ego filled in this area, when have nothing to be proud. It's just humanity sense and have domain effectively. Sorry.

Very-knowledgeable people here are right now trying sincerely to help you. Please respect the community.

Every single one of us, at one time or another, has been exactly where you are, and "we feel your pain." That's why we do this. Your present situation is actually not as bad as it seems.

Right now, I recommend that you install a current Linux distribution, right on top of the one that you are currently running. You are using a distribution with filesystem support that is today "too old." A fresh-install should recognize that it is being applied on top of an existing installation, and should replace only the relevant system files.

"Upgrade" processes generally only work "from the immediately-previous version," while here you need to make a bigger jump. A reinstall should, I expect, do the right thing.

znt 05-27-2022 04:26 PM

Quote:

Originally Posted by sundialsvcs (Post 6356946)
Very-knowledgeable people here are right now trying sincerely to help you. Please respect the community.

Every single one of us, at one time or another, has been exactly where you are, and "we feel your pain." That's why we do this. Your present situation is actually not as bad as it seems.

Right now, I recommend that you install a current Linux distribution, right on top of the one that you are currently running. You are using a distribution with filesystem support that is today "too old." A fresh-install should recognize that it is being applied on top of an existing installation, and should replace only the relevant system files.

"Upgrade" processes generally only work "from the immediately-previous version," while here you need to make a bigger jump. A reinstall should, I expect, do the right thing.

How could I do this if can't get accesss to the mirrors?

Quote:

Secure Connection Failed
An error occurred during a connection to askubuntu.com. Cannot communicate securely with peer: no common encryption algorithm(s). (Error code: ssl_error_no_cypher_overlap)
And how can I feel me good to work if suddenly the system crashes, technically without a reason or at least one justifiable?

Quote:

Please respect the community.
I could say that for you, about my country.
sory.

TB0ne 05-27-2022 04:55 PM

Quote:

Originally Posted by znt (Post 6356962)
How could I do this if can't get accesss to the mirrors?
Code:

Secure Connection Failed
An error occurred during a connection to askubuntu.com. Cannot communicate securely with peer: no common encryption algorithm(s). (Error code: ssl_error_no_cypher_overlap)


Again, no idea what you're talking about; what mirrors?? Going to Ubuntu.com gives me a very clear download button....one click and it downloads, or you can easily find links on that very page that let you download other versions, and even bittorrent links. What else do you need???
Quote:

And how can I feel me good to work if suddenly the system crashes, technically without a reason or at least one justifiable?
Again, EVERY COMPUTER CRASHES EVENTUALLY. Your hardware is going bad, period. Nothing magical about that, and it happens to everyone. That's it. Replace your bad hardware and move on. Restore from backups.
Quote:

I could say that for you, about my country. sory.
And we have NO IDEA what country you're in...the only things we know is that you aren't asking clear questions, providing details, and seem to ignore what everyone is telling you.

znt 05-27-2022 05:07 PM

Requesting ubuntu.com:

https://imgur.com/a/8PsOZMh

Quote:

EVERY COMPUTER CRASHES EVENTUALLY
There is a reason, always.

Should I say what are mirrors?

wpeckham 05-27-2022 06:22 PM

Quote:

Originally Posted by znt (Post 6356970)
Requesting ubuntu.com:

https://imgur.com/a/8PsOZMh



There is a reason, always.

Should I say what are mirrors?

If I understand you correctly, you are looking for a Linux image, preferably Ubuntu based, that will run on your hardware and work well. Bonus if it will actually let you read that partition so you can access those files that you value yet failed to back up.

We might be able to help with that.
Current Ubuntu, the main distribution, is 64-bit only. We need to know if your machine is 32-bit or 64-bit, if it is traditional BIO or EFI based, what media you currently have, what you intend to boot from, and what resources you have to load a boot device.

We cannot help you if we are kept in the dark. Some of us CAN do what look like magic, but we need someplace to START!

What can you tell us that might help us help you?

znt 05-27-2022 06:35 PM

Quote:

Originally Posted by wpeckham (Post 6356975)
If I understand you correctly, you are looking for a Linux image, preferably Ubuntu based, that will run on your hardware and work well. Bonus if it will actually let you read that partition so you can access those files that you value yet failed to back up.

We might be able to help with that.
Current Ubuntu, the main distribution, is 64-bit only. We need to know if your machine is 32-bit or 64-bit, if it is traditional BIO or EFI based, what media you currently have, what you intend to boot from, and what resources you have to load a boot device.

We cannot help you if we are kept in the dark. Some of us CAN do what look like magic, but we need someplace to START!

What can you tell us that might help us help you?

Ok, could you send me by email? I used to use Debian 10 before this crashs.
I've a flash drive to boot.

Quote:

Bonus if it will actually let you read that partition so you can access those files that you value yet failed to back up.
Yes, what I hope.

BIOS, can be 64-bit for i386
Xcfe

mrmazda 05-27-2022 08:24 PM

Quote:

Originally Posted by znt (Post 6356979)
Ok, could you send me by email?

When you ask for help here, you're asking a group of people, a collection of heads which may be unable to help except in pieces from individual participants. There is no provision via the group for personal tutoring via email. If you do not answer the questions asked by the group's members, you cannot expect to be provided solutions to your problems.

ondoho 05-28-2022 12:53 AM

Quote:

Originally Posted by znt (Post 6356794)
Could you suggest a distro? i386

https://distrowatch.com/search.php?architecture=i386
Please actually have a look, and try more options (Old Computers, Beginners etc.).

BTW, Not all 32 bit PC machines are (only) i386, could be i686 as well:
https://distrowatch.com/search.php?architecture=i686

znt 05-28-2022 06:34 AM

Quote:

Originally Posted by wpeckham (Post 6356975)
If I understand you correctly, you are looking for a Linux image, preferably Ubuntu based, that will run on your hardware and work well. Bonus if it will actually let you read that partition so you can access those files that you value yet failed to back up.

We might be able to help with that.
Current Ubuntu, the main distribution, is 64-bit only. We need to know if your machine is 32-bit or 64-bit, if it is traditional BIO or EFI based, what media you currently have, what you intend to boot from, and what resources you have to load a boot device.

We cannot help you if we are kept in the dark. Some of us CAN do what look like magic, but we need someplace to START!

What can you tell us that might help us help you?

it's not so clear in this case. sry

znt 05-28-2022 07:05 AM

Quote:

Originally Posted by mrmazda (Post 6356995)
When you ask for help here, you're asking a group of people, a collection of heads which may be unable to help except in pieces from individual participants. There is no provision via the group for personal tutoring via email. If you do not answer the questions asked by the group's members, you cannot expect to be provided solutions to your problems.

Is it clear that can't access outliers websites?
However, how could I to create a boot disk with this generic kernel?, whatever it means

znt 05-28-2022 07:34 AM

Quote:

Originally Posted by wpeckham (Post 6356975)
If I understand you correctly, you are looking for a Linux image, preferably Ubuntu based, that will run on your hardware and work well. Bonus if it will actually let you read that partition so you can access those files that you value yet failed to back up.

We might be able to help with that.
Current Ubuntu, the main distribution, is 64-bit only. We need to know if your machine is 32-bit or 64-bit, if it is traditional BIO or EFI based, what media you currently have, what you intend to boot from, and what resources you have to load a boot device.

We cannot help you if we are kept in the dark. Some of us CAN do what look like magic, but we need someplace to START!

What can you tell us that might help us help you?

hi wpeckham,

could you send me it by email and eventually aim out a way to create the bootable with the resources mentioned?

Thansk.

Debian6to11 05-28-2022 07:55 AM

Provide hardware details of your computer, if it is a laptop, make and model.

And show the output of:
Code:

inxi -F

znt 05-28-2022 08:17 AM

Quote:

Originally Posted by Debian6to11 (Post 6357098)
Provide hardware details of your computer, if it is a laptop, make and model.

And show the output of:
Code:

inxi -F

It's impossible to believe

znt@znt-Infoway:~$ man inxi
No manual entry for inxi
znt@znt-Infoway:~$ inxi --help
inxi: command not found
znt@znt-Infoway:~$

pan64 05-28-2022 09:55 AM

I checked your posts, you gave no any information in your answers to post #2 and also to other questions.

wpeckham 05-28-2022 11:31 AM

Quote:

Originally Posted by znt (Post 6357095)
hi wpeckham,

could you send me it by email and eventually aim out a way to create the bootable with the resources mentioned?

Thansk.

I think not. Part of the PURPOSE of LinuxQuestions is to help people even if they dare not ask questions. If someone else has the exact same problem you have, we want the solution HERE where they can find it and solve their problem. Hiding the solution in email would defeat the purpose.

mrmazda 05-28-2022 02:56 PM

Quote:

Originally Posted by znt (Post 6357104)
znt@znt-Infoway:~$ inxi --help
inxi: command not found
znt@znt-Infoway:~$

Use your distro's package manager to install it, e.g.
Code:

sudo apt install inxi
That's the easy way, but a better way is to follow the instructions here. This second way gets you the latest version from upstream, instead of a possibly much older and broken version from your distro. The bonus is it can upgrade itself by using its -U switch. Many distros disable -U in their old versions.

mrmazda 05-28-2022 03:05 PM

Quote:

Originally Posted by znt (Post 6357087)
Is it clear that can't access outliers websites?

I don't understand this question.
Quote:

However, how could I to create a boot disk with this generic kernel?, whatever it means
"generic" is simply part of a name for kernels built by Ubuntu and its derivatives. 3.8.0-35-generic seems to be too old for your current purpose. How to create a boot disk is described in very many places all over the internet.

suramya 05-29-2022 08:20 AM

Posted without reading the rest of the thread. Not relevant so deleting the comment

colorpurple21859 05-29-2022 09:15 AM

Boot live usb open a terminal and post the output of
Code:

sudo parted -l


All times are GMT -5. The time now is 03:46 PM.