You are not logged in.

#1 2014-11-29 16:06:43

ajbibb
Member
Registered: 2012-02-12
Posts: 142

[SOLVED] Mount IMG/ISO (and maybe ARCHISO)

For several years I've used some of my own scripts modeled on build.sh in ARCHISO to create a live system.  Recently the scripts have stopped working, not uncommon - happens everytime something changes.  Usually I can find the things that changed but this time I've not been able to so I went back to the basic, vanilla, unchanged releng build.sh in the latest ARCHISO and tried to run that.  Doing that I'm getting the same error that is showing up in my own scripts:

mount: work/efiboot: mount failed: Unknown error -1

The error is happening in line 163 of the releng build.sh script:

mount ${work_dir}/iso/EFI/archiso/efiboot.img ${work_dir}/efiboot

The directory the build.sh script is trying to mount on exists as does the .img file to be mounted.  Trying to mount manually with the -v switch fails exactly the same way with no additional information printed.

My system is up to date (within the past 24 hours) and all of the necessary files listed in the ARCHISO readme are installed.

I think this is an issue with the mount command which is why put the question in this subforum. Any help would be appreciated.

edit: modified the title as the actual failure in build.sh is mounting a .img file, while the error is showing up in my scripts is both at the .img file, and if I force the script past that trying to mount an .iso file.

Last edited by ajbibb (2014-11-30 23:38:38)

Offline

#2 2014-11-30 16:04:08

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: [SOLVED] Mount IMG/ISO (and maybe ARCHISO)

Please check if loop kernel module is loaded. Also, check for any related kernel log messages.

truncate -s 1M coco.img
mkfs.vfat coco.img
mount coco.img /mnt

does this works?

Offline

#3 2014-11-30 23:45:16

ajbibb
Member
Registered: 2012-02-12
Posts: 142

Re: [SOLVED] Mount IMG/ISO (and maybe ARCHISO)

Thank you very much, indeed it was the loop kernel module not being loaded.  I just successfully completed a releng build using the stock build.sh scripts so I'm marking the thread SOLVED.

I'm also going to go through the Wiki page again because I don't recall seeing a mention of this there.  If it is not there I'll add a paragraph about it.

Offline

#4 2014-12-01 01:04:29

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: [SOLVED] Mount IMG/ISO (and maybe ARCHISO)

This should be related to bug in systemd-217 package, but fixed since -7, maybe you did not reboot the system since the update wink

Offline

#5 2014-12-01 01:42:28

ajbibb
Member
Registered: 2012-02-12
Posts: 142

Re: [SOLVED] Mount IMG/ISO (and maybe ARCHISO)

I ran a full system update yesterday morning and running pacman -Q just now tells me I'm at 217-7.  I see that 217-8 is marked 2 days old, so maybe my mirror had not yet synced?  Mirror list is up to date.  Whenever a pacnew mirrorlist comes out I just delete the old one, rename and uncomment anything geographically close ending in .edu.

Reboot should not be an issue.  Part of the Saturday update included Virtualbox and/or some Virtualbox modules and I did reboot to make sure that those worked. 

I just added a line to the start of my own build scripts "modprobe loop" and everything works fine now, start to finish.  So again, thank you.

I did add the line to the ARCHISO Wiki page, so if you think I need to remove it I will.

Offline

#6 2015-12-22 07:52:54

vinsanity82
Member
Registered: 2015-10-23
Posts: 3

Re: [SOLVED] Mount IMG/ISO (and maybe ARCHISO)

I got the same error as the original poster of this thread:

mount: work/efiboot: mount failed: Unknown error -1

I also had recently updated: I went from 4.2.3-1 (built on 2015-10-20) to 4.2.5-1 (built on 2015-12-21)

pacman -Syu archiso

I did the same troubleshooting step he took:

ajbibb wrote:

I went back to the basic, vanilla, unchanged releng build.sh in the latest ARCHISO and tried to run that.

Same as the original poster, that did not solve the issue.

djgera wrote:

maybe you did not reboot the system since the update

After rebooting, the script worked. Just wanted to confirm that rebooting worked for me.

Offline

#7 2015-12-22 12:38:15

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

Re: [SOLVED] Mount IMG/ISO (and maybe ARCHISO)

Glad it worked for you, but please don't bump old solved topics just to confirm something works.

https://wiki.archlinux.org/index.php/Fo … bumping.22

Closing.


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

Board footer

Powered by FluxBB