Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: AbNoRMiS on September 28, 2012, 05:38:47 AM

Title: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: AbNoRMiS on September 28, 2012, 05:38:47 AM
since tc 4.6.2 i get following message during each computer booting
Code: [Select]
gtk2.scm: OK
mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
i have installed both versions gtk2.scm and gtk2.tcz on boot as dependency of lxde2.tcz
despite this message they are properly mounted in /apps/gtk2 and /tmp/tcloop/gtk2 respectively
cheksum test does not give any error, system log which i attached does not contain this message
i don't understand what this means
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: tinypoodle on September 28, 2012, 06:04:40 AM
Sep 28 11:10:29 box authpriv.notice sudo:       tc : TTY=console ; PWD=/mnt/sda1/tce/optional ; USER=root ; COMMAND=/bin/busybox mount /mnt/sda1/tce/optional/gtk2.scm /apps/gtk2 -t squashfs -o loop,ro,bs=4096
Sep 28 11:10:41 box authpriv.notice sudo:       tc : TTY=console ; PWD=/mnt/sda1/tce/optional ; USER=root ; COMMAND=/bin/busybox mount /mnt/sda1/tce/optional/gtk2.scm /apps/gtk2 -t squashfs -o loop,ro,bs=4096
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: AbNoRMiS on September 28, 2012, 07:02:00 AM
don't quite understand why double mounted
Code: [Select]
tc@box:~$ cat /mnt/sda1/tce/scmboot.lst
abiword-2.8
audacious-gtk2
audacity2
chromium-browser
dejavu-fonts-ttf
epdfview
filezilla
firefox
flash
flburn
geany
geeqie
getFlash11
gimp2-basic
gtk2
leafpad
libreoffice3.6
libreoffice3.6-uk-langpack
links2
mc
midori
midori-locale
mtpaint
opera-12
pidgin-minimal
scmqc
wget
wine
xampp-linux
xarchiver
xboard
xfe
tc@box:~$
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: tinypoodle on September 28, 2012, 09:19:33 AM
Suggestion:
Boot with code "base"
Manually "tce-load -i" extensions in same order - one by one - as your onboot.lst
See what happens then...
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: AbNoRMiS on September 28, 2012, 09:20:25 AM
seems i guessed in what reason of gtk2.scm double mount attempts
i have gtk2.scm included in scmboot.lst to enable working some scms that don't work with gtk2.tcz
since version tc 4.6.2 was dropped tcz check for dependencies and checked only scm dependencies
but if library such as gtk2.scm or other there is in scmboot.lst then this not checked for double mount
it seems will have to add additional check to avoid such incidents
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: Rich on September 28, 2012, 09:28:30 AM
Hi AbNoRMiS
Since gtk2.scm is not a stand alone application, but a dependency of other applications, it probably should
not be listed in scmboot.lst anyway.
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: tinypoodle on September 28, 2012, 09:30:27 AM
What does
"losetup |grep gtk2"
output?
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: AbNoRMiS on September 28, 2012, 09:32:25 AM
Code: [Select]
tc@box:~$ losetup |grep gtk2
/dev/loop105: 0 /mnt/sda1/tce/optional/gtk2-locale.tcz
/dev/loop106: 0 /mnt/sda1/tce/optional/gtk2.tcz
/dev/loop180: 0 /mnt/sda1/tce/optional/gtk2.scm
/dev/loop181: 0 /mnt/sda1/tce/optional/audacious-gtk2.scm
tc@box:~$
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: tinypoodle on September 28, 2012, 09:38:36 AM
Looks okay then
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: AbNoRMiS on September 28, 2012, 09:44:28 AM
Hi AbNoRMiS
Since gtk2.scm is not a stand alone application, but a dependency of other applications, it probably should
not be listed in scmboot.lst anyway.
after changes in version 4.6.2 this is true but as you can see it is only formally
because actually scm browser does not have any precautions to prevent this
and checking to prevent attempts of double mount also does not exist
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: tinypoodle on September 28, 2012, 10:02:21 AM
As all output shows, redundancy has been prevented.
I wouldn't say this qualifies as bug.
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: roberts on September 28, 2012, 10:16:00 AM
One should never list dependencies in onboot.lst. Doing so will only achive slower boot times and cause system mount resource busy messages as you have noted. You should correct your configuration.
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: AbNoRMiS on September 28, 2012, 10:36:17 AM
of course i did it
thanks
Title: Re: mount: mounting /dev/loop180 on /apps/gtk2 failed: Device or resource busy
Post by: AbNoRMiS on September 28, 2012, 11:03:10 AM
As all output shows, redundancy has been prevented.
I wouldn't say this qualifies as bug.
as it turns out it's really not a bug
from user's standpoint this is imperfect processing of system startup
from developer's standpoint this is incorrect settings that user made
as the saying is last laughs who shoots first :D