public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] My first GNAP use: error: umount: /dev/loop/0
@ 2006-07-13 22:28 Marcelo Coelho
  2006-07-14  9:23 ` Thierry Carrez
  0 siblings, 1 reply; 6+ messages in thread
From: Marcelo Coelho @ 2006-07-13 22:28 UTC (permalink / raw
  To: gentoo-embedded

Hi!

I'm trying GNAP for the first time. Now i'm trying to create a disk
image to put into a pentium 200 to use it as a router and ADSL
gateway.

For now, i tried to start the creation of the image, with
gnap_overlay -L newimagefile.img -S 14 -r hda1 -o my_overlay/

but i had the following,

GNAP overlay tool gnap_overlay 2.0
 * Checking parameters...
                                             [ ok ] * Expanding
/usr/lib/gnap/gnap-core.tar core...
                                [ ok ] * Preparing overlay...

            [ ok ] * Adding GNAP/ (directory overlay)...
                                                               [ ok ]
* Creating overlay tarball...
                                            [ ok ] * Looking for free
loop device...
                         [ ok ] * Using loop device /dev/loop/0
 * Creating image file...
                                             [ ok ] * Creating
partition table...
                                 [ !! ] * Unmounting loop
filesystem...umount: /dev/loop/0 is not mounted (according to mtab)

                                             [ !! ] * Failed to
unmount /dev/loop/0
                                [ !! ] * Unmounting loop
filesystem...umount: /dev/loop/0 is not mounted (according to mtab)

                                             [ !! ] * Failed to
unmount /dev/loop/0
                                [ !! ] * Unmounting loop
filesystem...umount: /dev/loop/0 is not mounted (according to mtab)

                                             [ !! ]

And then GNAP enters an endless loop always saying the same:
* Failed to unmount /dev/loop/0
                                            [ !! ] * Unmounting loop
filesystem...umount: /dev/loop/0 is not mounted (according to mtab)

                                             [ !! ]

Can it be a bug or is a mistake i'm doing?



Thanks for the help
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-embedded] My first GNAP use: error: umount: /dev/loop/0
  2006-07-13 22:28 [gentoo-embedded] My first GNAP use: error: umount: /dev/loop/0 Marcelo Coelho
@ 2006-07-14  9:23 ` Thierry Carrez
  2006-07-14 10:43   ` Marcelo Coelho
  0 siblings, 1 reply; 6+ messages in thread
From: Thierry Carrez @ 2006-07-14  9:23 UTC (permalink / raw
  To: gentoo-embedded

Marcelo Coelho wrote:

> I'm trying GNAP for the first time. Now i'm trying to create a disk
> image to put into a pentium 200 to use it as a router and ADSL
> gateway.
> 
> For now, i tried to start the creation of the image, with
> gnap_overlay -L newimagefile.img -S 14 -r hda1 -o my_overlay/
> 
> but i had the following,
> 
> [...]
> Can it be a bug or is a mistake i'm doing?

It can be a bug. The image file support comes from an external patch
that was not so well tested... Maybe some missing loopback support in
the kernel.

You can also have a look at the gnap_overlay script and see what else
could be failing. I suspect the mount is not checked for errors or
something like that, unfortunately I have no time to check right now.

As a workaround, you could try to mount your P200 hard disk into your
workstation (as /dev/hdd or whatever) and use overlay to disk directly
(rather than using an intermediary image file). This is way better tested ;)

-- 
Koon
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-embedded] My first GNAP use: error: umount: /dev/loop/0
  2006-07-14  9:23 ` Thierry Carrez
@ 2006-07-14 10:43   ` Marcelo Coelho
  2006-07-17 20:57     ` Marcelo Coelho
  0 siblings, 1 reply; 6+ messages in thread
From: Marcelo Coelho @ 2006-07-14 10:43 UTC (permalink / raw
  To: gentoo-embedded

2006/7/14, Thierry Carrez <koon@gentoo.org>:
> Marcelo Coelho wrote:
>
> > I'm trying GNAP for the first time. Now i'm trying to create a disk
> > image to put into a pentium 200 to use it as a router and ADSL
> > gateway.
> >
> > For now, i tried to start the creation of the image, with
> > gnap_overlay -L newimagefile.img -S 14 -r hda1 -o my_overlay/
> >
> > but i had the following,
> >
> > [...]
> > Can it be a bug or is a mistake i'm doing?
>
> It can be a bug. The image file support comes from an external patch
> that was not so well tested... Maybe some missing loopback support in
> the kernel.
>
> You can also have a look at the gnap_overlay script and see what else
> could be failing. I suspect the mount is not checked for errors or
> something like that, unfortunately I have no time to check right now.
>
> As a workaround, you could try to mount your P200 hard disk into your
> workstation (as /dev/hdd or whatever) and use overlay to disk directly
> (rather than using an intermediary image file). This is way better tested ;)

Yeah, absolutely. I'm just trying to avoid the noise that the hd makes   : )
This weekend i won't time to do it, but next week i'll check that. If
there is a bug in the script i'll tell you guys.


Have a nice week-end!
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-embedded] My first GNAP use: error: umount: /dev/loop/0
  2006-07-14 10:43   ` Marcelo Coelho
@ 2006-07-17 20:57     ` Marcelo Coelho
  2006-07-18 16:48       ` Thierry Carrez
  0 siblings, 1 reply; 6+ messages in thread
From: Marcelo Coelho @ 2006-07-17 20:57 UTC (permalink / raw
  To: gentoo-embedded

Hi!

Well, after a few "echos" i noticed that there was an endless loop
caused by the invocation of the gtest function invoked by the cleanup
function.

So a workaround could be changing lines 108 and 115 by

if [ $? ] ; then echo "Failed to unmount ${LOOP}" ; fi

and

if [ $? ] ; then echo "Failed to remove ${DIRTOREMOVE}" ; fi


Nevertheless, i'm thinking about using some other software that isn't
supported by GNAP, so i'll probably start using catalyst. Where does
GNAP stores the spec files it uses for catalyst?


Thanks for your help!




2006/7/14, Marcelo Coelho <marcelocoelho@gmail.com>:
> 2006/7/14, Thierry Carrez <koon@gentoo.org>:
> > Marcelo Coelho wrote:
> >
> > > I'm trying GNAP for the first time. Now i'm trying to create a disk
> > > image to put into a pentium 200 to use it as a router and ADSL
> > > gateway.
> > >
> > > For now, i tried to start the creation of the image, with
> > > gnap_overlay -L newimagefile.img -S 14 -r hda1 -o my_overlay/
> > >
> > > but i had the following,
> > >
> > > [...]
> > > Can it be a bug or is a mistake i'm doing?
> >
> > It can be a bug. The image file support comes from an external patch
> > that was not so well tested... Maybe some missing loopback support in
> > the kernel.
> >
> > You can also have a look at the gnap_overlay script and see what else
> > could be failing. I suspect the mount is not checked for errors or
> > something like that, unfortunately I have no time to check right now.
> >
> > As a workaround, you could try to mount your P200 hard disk into your
> > workstation (as /dev/hdd or whatever) and use overlay to disk directly
> > (rather than using an intermediary image file). This is way better tested ;)
>
> Yeah, absolutely. I'm just trying to avoid the noise that the hd makes   : )
> This weekend i won't time to do it, but next week i'll check that. If
> there is a bug in the script i'll tell you guys.
>
>
> Have a nice week-end!
>
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-embedded] My first GNAP use: error: umount: /dev/loop/0
  2006-07-17 20:57     ` Marcelo Coelho
@ 2006-07-18 16:48       ` Thierry Carrez
  2006-07-18 18:35         ` Marcelo Coelho
  0 siblings, 1 reply; 6+ messages in thread
From: Thierry Carrez @ 2006-07-18 16:48 UTC (permalink / raw
  To: gentoo-embedded

Marcelo Coelho wrote:

> Well, after a few "echos" i noticed that there was an endless loop
> caused by the invocation of the gtest function invoked by the cleanup
> function.
> 
> So a workaround could be changing lines 108 and 115 by
> 
> if [ $? ] ; then echo "Failed to unmount ${LOOP}" ; fi
> 
> and
> 
> if [ $? ] ; then echo "Failed to remove ${DIRTOREMOVE}" ; fi

Could you file a bug in Bugzilla (GNAP component) with this patch so
that I remember to fix it in next version ?

> Nevertheless, i'm thinking about using some other software that isn't
> supported by GNAP, so i'll probably start using catalyst. Where does
> GNAP stores the spec files it uses for catalyst?

Look inside gnap_make. The spec files are dynamically prepared from
static things and configurable ones (packages.conf and livecd.conf from
/usr/lib/gnap/gnap-specs.tar.bz2).

-- 
Koon
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-embedded] My first GNAP use: error: umount: /dev/loop/0
  2006-07-18 16:48       ` Thierry Carrez
@ 2006-07-18 18:35         ` Marcelo Coelho
  0 siblings, 0 replies; 6+ messages in thread
From: Marcelo Coelho @ 2006-07-18 18:35 UTC (permalink / raw
  To: gentoo-embedded

> Could you file a bug in Bugzilla (GNAP component) with this patch so
> that I remember to fix it in next version ?

Done. As it was the first bug i filed in, i hope i did it right.


Thanks for the tips!


2006/7/18, Thierry Carrez <koon@gentoo.org>:
> Marcelo Coelho wrote:
>
> > Well, after a few "echos" i noticed that there was an endless loop
> > caused by the invocation of the gtest function invoked by the cleanup
> > function.
> >
> > So a workaround could be changing lines 108 and 115 by
> >
> > if [ $? ] ; then echo "Failed to unmount ${LOOP}" ; fi
> >
> > and
> >
> > if [ $? ] ; then echo "Failed to remove ${DIRTOREMOVE}" ; fi
>
> Could you file a bug in Bugzilla (GNAP component) with this patch so
> that I remember to fix it in next version ?
>
> > Nevertheless, i'm thinking about using some other software that isn't
> > supported by GNAP, so i'll probably start using catalyst. Where does
> > GNAP stores the spec files it uses for catalyst?
>
> Look inside gnap_make. The spec files are dynamically prepared from
> static things and configurable ones (packages.conf and livecd.conf from
> /usr/lib/gnap/gnap-specs.tar.bz2).
>
> --
> Koon
> --
> gentoo-embedded@gentoo.org mailing list
>
>
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-07-18 18:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-13 22:28 [gentoo-embedded] My first GNAP use: error: umount: /dev/loop/0 Marcelo Coelho
2006-07-14  9:23 ` Thierry Carrez
2006-07-14 10:43   ` Marcelo Coelho
2006-07-17 20:57     ` Marcelo Coelho
2006-07-18 16:48       ` Thierry Carrez
2006-07-18 18:35         ` Marcelo Coelho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox