Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: jur on August 13, 2010, 07:27:11 PM

Title: util-linux-ng causes subsequent loop mount errors [SOLVED]
Post by: jur on August 13, 2010, 07:27:11 PM
After loading util-linux-ng, I can't load any more apps - I get
Code: [Select]
mount: could not find any free loop device
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: Jason W on August 13, 2010, 08:23:04 PM
Workaround is mentioned here:

http://forum.tinycorelinux.net/index.php?topic=6926.0
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: Jason W on August 13, 2010, 09:09:34 PM
But also running TC 3.0 final should fix this, as in the changelog:

* Updated tce-load to specifically call busybox mount to support unlimited loops.
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: jur on August 15, 2010, 08:43:23 PM
Definitely still a problem in 3.0.
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: curaga on August 16, 2010, 03:56:55 AM
Can't reproduce. Booted TC 3.0, loaded util-linux-ng and 7 other extensions, extension loading still worked fine.
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: jur on August 16, 2010, 06:06:07 AM
OK, did some more tests:

Booting into base norestore, seemingly no problem.
Removing all my onboot entries, problem again.
Booting with
Code: [Select]
kernel /boot/bzImage quiet tce=sda6 home=sda5 tz=EST-10EST,M10.1.0,M4.1.0/3 noutc base norestore it manages to load some more extensions before running out of loop mounts.

So there seems to be some degree problem here.

Is there anything I can post to help you trace the problem?
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: roberts on August 18, 2010, 12:44:36 AM
NMI.
Are you using your custom tce-load ?
Are you using auto-generated ondemand scripts?
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: jur on August 18, 2010, 09:42:27 AM
My custom tce-load is merely a wrapper for tce-load, to remove the tedious typing of the full path. tce-load -i gives the same result.

I am not using the auto ondemand scripts at this stage. All I'm doing so far is tce-load -i

Stand by while I do some more tests... I will boot into base norestore and see how many loops can be mounted after util-linux-ng.
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: roberts on August 18, 2010, 09:49:43 AM
FYI, a full path is not needed with the default tce-load.
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: jur on August 18, 2010, 10:23:20 AM
Ah, didn't know that, thanks.

I did some tests and found the problem only seems to happen when my home partition is mounted. I didn't mount all the extensions with home not mounted but stopped testing at roughly 20 or 30. I could write a quick script to mount everything in tce/optional to see the count after loading util-linux-ng...?

My home partition has all the .wine files in it, plus a swag of other stuff accumulated over the months - would that have an influence?
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: jur on August 18, 2010, 11:02:01 AM
Repeated the test with another home directory on another partition with just a small number of items in it, still same problem. So it has to do with the mounted /home.

With mounted home, I could only load a total of 8 loops after util-linux-ng.
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: Jason W on August 18, 2010, 10:39:03 PM
I normally run a mounted /home that gets used extensively, and I have not experienced the loop issues you are seeing.
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: jur on August 18, 2010, 11:34:18 PM
What should I look out for to trace the problem?
Title: Re: util-linux-ng causes subsequent loop mount errors
Post by: jur on August 19, 2010, 11:06:31 AM
I found the problem - it wasn't util-linux-ng, but a loader script left over from some experiments.