WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Can't mount ISO, both busybox mount and util-linux mount (aarch64)  (Read 2550 times)

Offline polikuo

  • Hero Member
  • *****
  • Posts: 712
Code: [Select]
tc@box:/tmp$ md5sum *.iso
bfb3858bafd28b4f33e65fda871d612e  CorePlus-11.1.iso
58bc33523ce10e64f56b9a9ec8a77531  TinyCorePure64-11.1.iso
Check iso md5
Code: [Select]
tc@box:/tmp$ ls -l /mnt/
total 7
drwxrwxrwx    3 tc       staff         3072 Jan  1  1970 mmcblk0p1/
drwxr-xr-x    8 root     root          4096 Oct 17 20:55 mmcblk0p2/
drwxr-xr-x    2 root     root            40 Oct 27 01:05 sda1/
drwxr-xr-x    2 root     root            40 Oct 27 13:49 sr0/
tc@box:/tmp$ df | grep sr0
tc@box:/tmp$
/mnt/sr0 is a directory and not mounted
Code: [Select]
tc@box:/tmp$ which mount
/usr/local/bin/mount
tc@box:/tmp$ realpath /usr/local/bin/mount
/tmp/tcloop/util-linux/usr/local/bin/mount
using util-linux mount
Code: [Select]
tc@box:/tmp$ sudo mount CorePlus-11.1.iso /mnt/sr0
mount: /mnt/sr0: unknown filesystem type 'iso9660'.
tc@box:/tmp$ sudo mount TinyCorePure64-11.1.iso /mnt/sr0
mount: /mnt/sr0: unknown filesystem type 'iso9660'.
tc@box:/tmp$ sudo mount -t iso9660 -o loop,ro /tmp/CorePlus-11.1.iso /mnt/sr0/
mount: /mnt/sr0: unknown filesystem type 'iso9660'.
tc@box:/tmp$ sudo mount -t iso9660 -o loop,ro /tmp/TinyCorePure64-11.1.iso /mnt/sr0/
mount: /mnt/sr0: unknown filesystem type 'iso9660'.
it won't mount, retry with busybox
Code: [Select]
tc@box:/tmp$ sudo busybox.suid mount CorePlus-11.1.iso /mnt/sr0
mount: mounting /dev/loop165 on /mnt/sr0 failed: Invalid argument
tc@box:/tmp$ sudo busybox.suid mount TinyCorePure64-11.1.iso /mnt/sr0
mount: mounting /dev/loop165 on /mnt/sr0 failed: Invalid argument
tc@box:/tmp$ sudo busybox.suid mount -t iso9660 -o loop,ro /tmp/CorePlus-11.1.iso /mnt/sr0/
mount: mounting /dev/loop165 on /mnt/sr0/ failed: No such device
tc@box:/tmp$ sudo busybox.suid mount -t iso9660 -o loop,ro /tmp/TinyCorePure64-11.1.iso /mnt/sr0/
mount: mounting /dev/loop165 on /mnt/sr0/ failed: No such device
no luck  :(

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14483
Re: Can't mount ISO, both busybox mount and util-linux mount (aarch64)
« Reply #1 on: October 27, 2020, 02:04:21 AM »
I presume that's because /lib/modules/5.4.51-piCore-v8/kernel/fs/isofs/isofs.ko is missing.

Can you try with the file from http://tinycorelinux.net/12.x/aarch64/releases/RPi/src/kernel/modules-5.4.51-piCore-v8.tar.xz

Offline polikuo

  • Hero Member
  • *****
  • Posts: 712
Re: Can't mount ISO, both busybox mount and util-linux mount (aarch64)
« Reply #2 on: October 27, 2020, 02:12:58 AM »
I presume that's because /lib/modules/5.4.51-piCore-v8/kernel/fs/isofs/isofs.ko is missing.

Can you try with the file from http://tinycorelinux.net/12.x/aarch64/releases/RPi/src/kernel/modules-5.4.51-piCore-v8.tar.xz

Looks promising  :)

Code: [Select]
tc@box:/tmp$ cd /
tc@box:/$ sudo tar -xf /tmp/modules-5.4.51-piCore-v8.tar.xz
tc@box:/$ sudo mount /tmp/TinyCorePure64-11.1.iso /mnt/sr0
mount: /mnt/sr0: WARNING: device write-protected, mounted read-only.
tc@box:/$ ls /mnt/sr0/
EFI/  boot/ cde/

Is it going to be added to the repo as tcz or will there be a remastered initd in the next release ?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14483
Re: Can't mount ISO, both busybox mount and util-linux mount (aarch64)
« Reply #3 on: October 27, 2020, 02:18:07 AM »
It depends on whether, for piCore, it makes more sense to have the module compiled in or as part of the filesystems-KERNEL extension.

Offline polikuo

  • Hero Member
  • *****
  • Posts: 712
Re: Can't mount ISO, both busybox mount and util-linux mount (aarch64)
« Reply #4 on: October 27, 2020, 02:21:11 AM »
Hi, Trying to umount it.
util-linux is acting weird, while busybox is doing fine.
Code: [Select]
tc@box:/tmp$ sudo su
root@box:/tmp# umount /mnt/sr0/
umount: /mnt/sr0: must be superuser to unmount.
root@box:/tmp# echo $?
32
root@box:/tmp# df | grep sr0
/dev/loop166             27698     27698         0 100% /mnt/sr0
root@box:/tmp# busybox.suid umount /mnt/sr0/
root@box:/tmp# echo $?
0

P.S. mounted with both version, both can be umounted with busybox, but not util-linux.
« Last Edit: October 27, 2020, 02:26:40 AM by polikuo »

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1058
Re: Can't mount ISO, both busybox mount and util-linux mount (aarch64)
« Reply #5 on: October 27, 2020, 05:30:54 AM »
Late last year, Util Linux added reduced restrictions on permissions,  since 2.35.2, I see several commits modifying how mount/umount deal with suid.

I suppose I need to upgrade util linux. >:(

I can add isofs to filesystems-KERNEL.tcz.

Offline polikuo

  • Hero Member
  • *****
  • Posts: 712
Re: Can't mount ISO, both busybox mount and util-linux mount (aarch64)
« Reply #6 on: October 27, 2020, 06:59:29 AM »
Late last year, Util Linux added reduced restrictions on permissions,  since 2.35.2, I see several commits modifying how mount/umount deal with suid.

I suppose I need to upgrade util linux. >:(

I can add isofs to filesystems-KERNEL.tcz.

Great, please fix the util-linux umount, the FLTK mnttool (Xprogs.tcz) is affected as well.

P.S. Off topic, updating here, it looks like harfbuzz-doc.tcz has the wrong md5 checksum.
Code: [Select]
md5sum: WARNING: 1 of 1 computed checksums did NOT match
Error on harfbuzz-doc.tcz

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1058
Re: Can't mount ISO, both busybox mount and util-linux mount (aarch64)
« Reply #7 on: October 27, 2020, 08:59:02 AM »
I updated filesystems module pack to include isofs.

util-linux was fixed.
« Last Edit: October 27, 2020, 09:33:53 AM by Paul_123 »

Offline polikuo

  • Hero Member
  • *****
  • Posts: 712
Re: Can't mount ISO, both busybox mount and util-linux mount (aarch64)
« Reply #8 on: October 27, 2020, 09:49:14 AM »
I updated filesystems module pack to include isofs.

util-linux was fixed.
Great, it's working  :)
Many thanks.

What about the md5 checksum issue with harfbuzz-doc.tcz ?

It keeps popping up in the update list.

Looks like the .md5.txt has to be regenerated.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1058
Re: Can't mount ISO, both busybox mount and util-linux mount (aarch64)
« Reply #9 on: October 27, 2020, 11:56:19 AM »
Its actually corrupted....It was for an old version anyway.  Since most use the internet to find things, rather than man pages.  We don't upload -doc extensions in most cases.

I removed the bad extension.