* [gentoo-user] installing lomount
@ 2008-05-11 11:24 Martin Lehmann
2008-05-11 11:40 ` Alan McKinnon
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Martin Lehmann @ 2008-05-11 11:24 UTC (permalink / raw
To: gentoo-user
Hi,
i want to use lomount for mounting a partition out of a diskimage.
I am sure that lomount is part of sys-apps/util-linux, but it is not
there after the emerge.
Any hints?
regards,
Martin
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] installing lomount
2008-05-11 11:24 [gentoo-user] installing lomount Martin Lehmann
@ 2008-05-11 11:40 ` Alan McKinnon
2008-05-11 12:09 ` Martin Lehmann
2008-05-11 16:32 ` Joe User
2008-05-11 12:08 ` Volker Armin Hemmann
2008-05-11 15:19 ` Albert Hopkins
2 siblings, 2 replies; 10+ messages in thread
From: Alan McKinnon @ 2008-05-11 11:40 UTC (permalink / raw
To: gentoo-user
On Sunday 11 May 2008, Martin Lehmann wrote:
> Hi,
>
> i want to use lomount for mounting a partition out of a diskimage.
>
> I am sure that lomount is part of sys-apps/util-linux, but it is not
> there after the emerge.
>
> Any hints?
According to this very useful site:
http://www.portagefilelist.de/index.php/Special:PFLQuery
the only package that provides lomount is xen. Which seems odd.
What is it that you want to do? Do you have a single filesystem in one
file created with dd or the like and need to mount that, or did you dd
an entire disk containing more than one filesystem and need to mount
just one of them?
--
Alan McKinnon
alan dot mckinnon at gmail dot com
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] installing lomount
2008-05-11 11:24 [gentoo-user] installing lomount Martin Lehmann
2008-05-11 11:40 ` Alan McKinnon
@ 2008-05-11 12:08 ` Volker Armin Hemmann
2008-05-11 15:19 ` Albert Hopkins
2 siblings, 0 replies; 10+ messages in thread
From: Volker Armin Hemmann @ 2008-05-11 12:08 UTC (permalink / raw
To: gentoo-user
On Sonntag, 11. Mai 2008, Martin Lehmann wrote:
> Hi,
>
> i want to use lomount for mounting a partition out of a diskimage.
>
> I am sure that lomount is part of sys-apps/util-linux, but it is not
> there after the emerge.
>
> Any hints?
emerge xen-tools
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] installing lomount
2008-05-11 11:40 ` Alan McKinnon
@ 2008-05-11 12:09 ` Martin Lehmann
2008-05-11 13:38 ` Alan McKinnon
2008-05-11 16:32 ` Joe User
1 sibling, 1 reply; 10+ messages in thread
From: Martin Lehmann @ 2008-05-11 12:09 UTC (permalink / raw
To: gentoo-user
> According to this very useful site:
>
> http://www.portagefilelist.de/index.php/Special:PFLQuery
>
> the only package that provides lomount is xen. Which seems odd.
ok, its seems that this will only be the last chance if nothing else
will work.
> What is it that you want to do? Do you have a single filesystem in one
> file created with dd or the like and need to mount that, or did you dd
> an entire disk containing more than one filesystem and need to mount
> just one of them?
I want to extract a partition from a virtualbox hdd-image.
I copied the content of the .vdi to a dd image.
./vditool COPYDD image.vdi image.img
Now the problem is, that this is a image of a whole hdd. I only need one
partition out of it.
Then i want to copy the content of this partition to a partition located
of the "real" hdd
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] installing lomount
2008-05-11 12:09 ` Martin Lehmann
@ 2008-05-11 13:38 ` Alan McKinnon
2008-05-13 12:06 ` PaulNM
0 siblings, 1 reply; 10+ messages in thread
From: Alan McKinnon @ 2008-05-11 13:38 UTC (permalink / raw
To: gentoo-user
On Sunday 11 May 2008, Martin Lehmann wrote:
> Now the problem is, that this is a image of a whole hdd. I only need
> one partition out of it.
>
> Then i want to copy the content of this partition to a partition
> located of the "real" hdd
A brute force approach, but probably the easiest and fastest:
Assign this image to a VirtualBox vm and start it. Or get a vm to use
it, even if you have tot move it to another machine. Then scp it off
the vm onto the real hardware.
Inelegant, but works :-)
--
Alan McKinnon
alan dot mckinnon at gmail dot com
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] installing lomount
2008-05-11 11:24 [gentoo-user] installing lomount Martin Lehmann
2008-05-11 11:40 ` Alan McKinnon
2008-05-11 12:08 ` Volker Armin Hemmann
@ 2008-05-11 15:19 ` Albert Hopkins
2 siblings, 0 replies; 10+ messages in thread
From: Albert Hopkins @ 2008-05-11 15:19 UTC (permalink / raw
To: gentoo-user
On Sun, 2008-05-11 at 13:24 +0200, Martin Lehmann wrote:
> Hi,
>
> i want to use lomount for mounting a partition out of a diskimage.
>
> I am sure that lomount is part of sys-apps/util-linux, but it is not
> there after the emerge.
>
> Any hints?
It's parte of xen-tools. But if you don't want the entire xen-tools
package:
---
# cd /usr/portage/app-emulation/xen-tools
# ebuild xen-tools-3.2.1.ebuild fetch
# ebuild xen-tools-3.2.1.ebuild unpack
# cd \
/var/tmp/portage/app-emulation/xen-tools-3.2.1/work/xen-3.2.1/tools/misc/lomount/
# make
# cp lomount /usr/local/bin
---
HTH,
-a
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] installing lomount
2008-05-11 11:40 ` Alan McKinnon
2008-05-11 12:09 ` Martin Lehmann
@ 2008-05-11 16:32 ` Joe User
1 sibling, 0 replies; 10+ messages in thread
From: Joe User @ 2008-05-11 16:32 UTC (permalink / raw
To: gentoo-user
Am Sonntag, 11. Mai 2008 13:40:18 schrieb Alan McKinnon:
> On Sunday 11 May 2008, Martin Lehmann wrote:
> > Hi,
> >
> > i want to use lomount for mounting a partition out of a diskimage.
> >
> > I am sure that lomount is part of sys-apps/util-linux, but it is
> > not there after the emerge.
> >
> > Any hints?
>
> According to this very useful site:
>
> http://www.portagefilelist.de/index.php/Special:PFLQuery
>
> the only package that provides lomount is xen. Which seems odd.
It's part of util-linux-ng, but not build during 'emerge util-linux':
http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=tree;f=mount;hb=HEAD
Building it manually should work fine.
Regards,
Joe User
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] installing lomount
2008-05-11 13:38 ` Alan McKinnon
@ 2008-05-13 12:06 ` PaulNM
2008-05-13 12:11 ` Alan McKinnon
0 siblings, 1 reply; 10+ messages in thread
From: PaulNM @ 2008-05-13 12:06 UTC (permalink / raw
To: gentoo-user
Alan McKinnon wrote:
> On Sunday 11 May 2008, Martin Lehmann wrote:
>> Now the problem is, that this is a image of a whole hdd. I only need
>> one partition out of it.
>>
>> Then i want to copy the content of this partition to a partition
>> located of the "real" hdd
>
> A brute force approach, but probably the easiest and fastest:
>
> Assign this image to a VirtualBox vm and start it. Or get a vm to use
> it, even if you have tot move it to another machine. Then scp it off
> the vm onto the real hardware.
>
> Inelegant, but works :-)
>
Even better would be losetup from sys-apps/util-linux.
see:
http://www.nabble.com/%22loopback-mount%22-hard-drive-image-created-with-dd--td14945355.html
PaulNM
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] installing lomount
2008-05-13 12:06 ` PaulNM
@ 2008-05-13 12:11 ` Alan McKinnon
2008-05-13 12:35 ` PaulNM
0 siblings, 1 reply; 10+ messages in thread
From: Alan McKinnon @ 2008-05-13 12:11 UTC (permalink / raw
To: gentoo-user
On Tuesday 13 May 2008, PaulNM wrote:
> Even better would be losetup from sys-apps/util-linux.
>
> see:
>
> http://www.nabble.com/%22loopback-mount%22-hard-drive-image-created-w
>ith-dd--td14945355.html
He doesn't want to mount a dd'ed *filesystem* as a loopback device, he
wants to mount a single filesystem out of several which is inside an
entire diskimage file.
losetup won't work for that
--
Alan McKinnon
alan dot mckinnon at gmail dot com
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] installing lomount
2008-05-13 12:11 ` Alan McKinnon
@ 2008-05-13 12:35 ` PaulNM
0 siblings, 0 replies; 10+ messages in thread
From: PaulNM @ 2008-05-13 12:35 UTC (permalink / raw
To: gentoo-user
Alan McKinnon wrote:
>> http://www.nabble.com/%22loopback-mount%22-hard-drive-image-created-w
>> ith-dd--td14945355.html
>
> He doesn't want to mount a dd'ed *filesystem* as a loopback device, he
> wants to mount a single filesystem out of several which is inside an
> entire diskimage file.
>
> losetup won't work for that
>
>
Read the link again, yes it will. Specifically he needs the offset option.
PaulNM
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-05-13 14:26 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-11 11:24 [gentoo-user] installing lomount Martin Lehmann
2008-05-11 11:40 ` Alan McKinnon
2008-05-11 12:09 ` Martin Lehmann
2008-05-11 13:38 ` Alan McKinnon
2008-05-13 12:06 ` PaulNM
2008-05-13 12:11 ` Alan McKinnon
2008-05-13 12:35 ` PaulNM
2008-05-11 16:32 ` Joe User
2008-05-11 12:08 ` Volker Armin Hemmann
2008-05-11 15:19 ` Albert Hopkins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox