You are not logged in.

#1 2017-07-16 12:39:09

vlas
Member
From: Russia, Lipetsk
Registered: 2016-04-29
Posts: 29

[SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

I've made some mistakes with boot related things on my system and wanted to fix. Booted from USB (ver. 2017.07.01) and tried to mount root FS to chroot to it. But after
mount /dev/sdb2 /mnt
I see
mount: unknown filesystem type 'ext4'
Really?? What is going on? How to chroot?
Over year with linux, but still noob, sorry sad

Last edited by vlas (2017-10-01 18:41:33)


Watch out! © Kozma Prutkov

Offline

#2 2017-07-16 13:19:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,876

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

Booted from *what* USB? Arch install medium? Grml? Puppy?

Offline

#3 2017-07-16 14:01:13

vlas
Member
From: Russia, Lipetsk
Registered: 2016-04-29
Posts: 29

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

seth wrote:

Booted from *what* USB? Arch install medium? Grml? Puppy?

Booted from official Arch installation flash USB-drive of course. Writed on flash with ArchWiki recommendations.


Watch out! © Kozma Prutkov

Offline

#4 2017-07-16 14:08:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,876

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

lsmod | grep ext
modprobe ext4

Offline

#5 2017-07-16 18:47:05

vlas
Member
From: Russia, Lipetsk
Registered: 2016-04-29
Posts: 29

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

lsmod | grep ext

nothing

modprobe ext4
modprobe: ERROR: could not insert 'ext4': Invalid argument

Very very strange behavior. It was able to mount /boot partition which is FAT32, but no luck with NATIVE ext4…
I do not understand, so basical functionality and not working, why??


Watch out! © Kozma Prutkov

Offline

#6 2017-07-16 19:17:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,876

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

I'd say the resolved module doesn't match the kernel version.

uname -a
modprobe -v ext4

It was able to mount /boot partition

frankly suggest the latter.
Why did you mount it and where? /boot on the install medium root FS?

Offline

#7 2017-07-16 22:30:37

vlas
Member
From: Russia, Lipetsk
Registered: 2016-04-29
Posts: 29

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

seth wrote:

I'd say the resolved module doesn't match the kernel version.

Does it possible with clean boot from clean arch-flash?

Why did you mount it and where? /boot on the install medium root FS?

First I tried to mount root partition (sdb2, ext4) - no luck. Then I tried to mount /boot partition (sdb1, vfat) and it works. FAT32 partition are mounting, but EXT4 - no. This usb-flash can be used as rescue stick, isn't it?

Can you boot from arch usb-stick and try to mount ext4 please? It just MUST work, I'm in stuck...


Watch out! © Kozma Prutkov

Offline

#8 2017-07-17 05:02:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,876

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

What are the outputs of the two commands?
I don't reboot for no reason. Which image *exactly* did you download?

Offline

#9 2017-07-17 05:23:51

vlas
Member
From: Russia, Lipetsk
Registered: 2016-04-29
Posts: 29

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

seth wrote:

What are the outputs of the two commands?
I don't reboot for no reason. Which image *exactly* did you download?

Hmm... answers were given earlier: posts #5 and #3 respectively. No "tricks".


Watch out! © Kozma Prutkov

Offline

#10 2017-07-17 05:34:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,876

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

No, were not. I said *EXACTLY*. A link to the actualy image URL that you downloaded from the server you used.

Offline

#11 2017-07-17 07:01:03

vlas
Member
From: Russia, Lipetsk
Registered: 2016-04-29
Posts: 29

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB


Watch out! © Kozma Prutkov

Offline

#12 2017-07-17 07:28:46

alex.theoto
Member
From: Athens Greece
Registered: 2014-11-30
Posts: 307

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

Can you verify that your partition is ext4? Maybe something is messed up.
What's the output of

fdisk -l

Offline

#13 2017-07-17 07:48:41

vlas
Member
From: Russia, Lipetsk
Registered: 2016-04-29
Posts: 29

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

lsblk -f was showing ext4. I can do fdisk -l in 7-8 hours.


Watch out! © Kozma Prutkov

Offline

#14 2017-07-17 08:47:42

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,721
Website

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

vlas wrote:
seth wrote:

What are the outputs of the two commands?
I don't reboot for no reason. Which image *exactly* did you download?

Hmm... answers were given earlier: posts #5 and #3 respectively. No "tricks".

Not quite, seth asked for the output of

uname -a
modprobe -v ext4

You have shown the output of 'modprobe ext4', now seth is asking for the verbose output.

For the record, I have booted the liveCD and verified that the ext4 module can be loaded and ext4 partitions can be mounted, so this is not an impossible task. We just need to figure out what has gone wrong in your case, and fix it. To that end, please post the outputs requested from you, verbatim. Use a pastebin if the output is lengthy.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#15 2017-07-17 09:45:04

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

Could be the USB?
Does USB's SHA1 and MD5 signatures match with ISO image?

First, write down the block number writed with its block size. Then test your USB writed image:

dd if=/dev/sdx  count=number_of_blocks bs=block_size  status=noxfer | sha1sum

Please, check the command because I've not tested it.

Edit: sdx is the USB device, it could be sdb, sdc,...

Last edited by Alber (2017-07-17 09:46:45)


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

#16 2017-07-17 10:00:56

vlas
Member
From: Russia, Lipetsk
Registered: 2016-04-29
Posts: 29

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

Thank you! I'll do all that things when come back to home, few hours.


Watch out! © Kozma Prutkov

Offline

#17 2017-07-17 11:06:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,876

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

Since he cannot modprobe the ext4 module, I don't think it's the filesystem.
Either the downloaded ISO is rubbish (I worried it could be the net installer, but that doesn't seem to be the case) or some other module path is resolved, maybe because the kernel from the installation /boot partition is loaded.

Offline

#18 2017-07-17 17:39:55

vlas
Member
From: Russia, Lipetsk
Registered: 2016-04-29
Posts: 29

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

This is the output:
http://termbin.com/urqx

2Alber
I'm in trouble how to check USB-stick integrity. I tried many of recipies from google, but still can not.


Watch out! © Kozma Prutkov

Offline

#19 2017-07-17 17:49:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

I'm not sure it'd explain the error message you are getting, but you definitely should be mounting the root partition on the same place as the boot partition - that'd completely mask the boot partition and nothing could be saved there.  If this is how you did it when you first installed, I'm pretty sure this is exactly what was wrong with your boot partition in the first place.

You should mount the root partition first to /mnt, then mount the boot partition to /mnt/boot

EDIT: sorry, I misread the log a bit - sorry for the noise.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#20 2017-07-17 17:57:22

vlas
Member
From: Russia, Lipetsk
Registered: 2016-04-29
Posts: 29

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

Trilby wrote:

You should mount the root partition first to /mnt, then mount the boot partition to /mnt/boot

I know that. I _can_not_ mount ANY ext4, root FS is ext4. When I tried to mount /boot, I immediately unmounted it to try more.


Watch out! © Kozma Prutkov

Offline

#21 2017-07-17 18:18:06

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

It's just to see if the ISO image writed on the USB (a integral copy with dd) matches with the ISO in the mirrorlist or torrent.
It's the same but for an USB. Maybe it is in wiki too.
    https://wiki.archlinux.org/index.php/Op … _ISO_image

As example:
When you write the iso image with dd:

# dd if=archlinux-2017.07.01-x86_64.iso of=/dev/sde bs=4K
130560+0 registers readed
130560+0 registers writed
534773760 bytes (535 MB, 510 MiB) copied, 84,1601 s, 6,4 MB/

Take the number 130560 and use to read that number of blocks from USB.

# dd if=/dev/sde count=130560 bs=4K status=noxfer | sha1sum
130560+0 registers readed
130560+0 registers writed
dd03d811211c332d29155069d8e4bb2306c70f3 

And compare it with the SHA1 checksum in https://www.archlinux.org/download/


P.D. (edit) Careful about making a mistake with the device.

Last edited by Alber (2017-07-17 18:22:17)


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

#22 2017-07-18 05:18:11

vlas
Member
From: Russia, Lipetsk
Registered: 2016-04-29
Posts: 29

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

Alber wrote:

When you write the iso image with dd

Thanks for enough explanation! But I've made USB-stick on Windows, by some simply utility, just don't remember which.

I think I have to try to write another stick by dd. But I don't think win-utility is really not able.


Watch out! © Kozma Prutkov

Offline

#23 2017-07-18 07:18:33

alex.theoto
Member
From: Athens Greece
Registered: 2014-11-30
Posts: 307

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

Offline

#24 2017-07-18 08:12:41

vlas
Member
From: Russia, Lipetsk
Registered: 2016-04-29
Posts: 29

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

2alex.theoto
Thanks but I read it first of all. Post #3:

vlas wrote:

Booted from official Arch installation flash USB-drive of course. Writed on flash with ArchWiki recommendations.


Watch out! © Kozma Prutkov

Offline

#25 2017-07-18 13:48:39

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: [SOLVED] Can't mount Ext4 filesystem, booted Arch live USB

Just as ideas, you don't need to do.
  (1) I would test the image file you had downloaded. I don't know how to do it in Windows.
  (2) If you write another USB, you can test it from the Linux booted from the first USB. And the another way.

Edit:
       You can use the number of blocks, command parameters and output from the example. They are true values.

Last edited by Alber (2017-07-18 14:00:45)


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

Board footer

Powered by FluxBB