Displaying 20 results from an estimated 43 matches for "mkmountpoint".
2015 Nov 06
2
Hierarchical local mount
...k.qcow2 -m /dev/sda1:/hdd0/volume1 -m
/dev/sda2:/hdd0/volume2 mnt/
So I came to only two possible options:
1)
mkdir -p mnt/hdd0/volume1
guestmount -a disk.qcow2 -m /dev/sda1 mnt/hdd0/volume1
....
(Is it safe to use the same disk from multiple guestmounts?)
2)
guestfish -a disk.qcow2 "
run :
mkmountpoint /hdd0 :
mkmountpoint /hdd0/volume1 :
... :
mount /dev/sda1 /hdd0/volume1 :
... :
mount-local mnt/ :
mount-local-run"
kill -TERM `pidof guestfish`
guestunmount mnt/
Is any of these options safe enough/preferred? Or, maybe, other options?
I'd like to avoid guestfs API, threading and so on...
2009 Dec 07
2
Re: libguestfs performance
...n/tgz-in to copy the tarball into the appliance is always
going to be slow. I would think you should get better performance if
you write the tarball into an ISO first, and attach that. Something
like:
mkisofs -JR -o cd.iso the_tarball.tar.gz
guestfish -a guest.img -a cd.iso
[...]
><fs> mkmountpoint /guest
><fs> mkmountpoint /cd
[...]
><fs> mount /dev/sdb /cd
[...]
><fs> debug sh "tar xcf /cd/the_tarball.tar.gz /guest"
However we found experimentally that the fastest method of all for
creating distributions was to prebuild an ext2/3/4 image, and 'dd...
2015 Nov 10
1
Mount multiple logical disks (Windows guest)
Hi, everyone! I faced one problem: I want to mount 2 logical disks (C and D) of my Windows 7 at the same time using libguestfs (to find file on both this disks), but I couldn't find any references in your manual. Can you help me?
Detailed:
Host system: Centos 7.1
libguestfs 1.28.1
2015 Nov 06
0
Re: Hierarchical local mount
...e2 mnt/
>
> So I came to only two possible options:
> 1)
> mkdir -p mnt/hdd0/volume1
> guestmount -a disk.qcow2 -m /dev/sda1 mnt/hdd0/volume1
> ....
> (Is it safe to use the same disk from multiple guestmounts?)
>
> 2)
> guestfish -a disk.qcow2 "
> run :
> mkmountpoint /hdd0 :
> mkmountpoint /hdd0/volume1 :
> ... :
> mount /dev/sda1 /hdd0/volume1 :
> ... :
> mount-local mnt/ :
> mount-local-run"
>
> kill -TERM `pidof guestfish`
> guestunmount mnt/
>
>
> Is any of these options safe enough/preferred? Or, maybe, other opt...
2016 Apr 21
1
[PATCH] dib: Rewrite match statement as ordinary if statement.
..._label blockdev root_label;
- (match cmdline.fs_type with
- | x when String.is_prefix x "ext" -> g#set_uuid blockdev rootfs_uuid
- | _ -> ());
+ if String.is_prefix cmdline.fs_type "ext" then
+ g#set_uuid blockdev rootfs_uuid;
g#mount blockdev "/";
g#mkmountpoint "/tmp";
mount_aux ();
--
2.7.4
2015 Nov 10
1
Re: Hierarchical local mount
...o possible options:
>> 1)
>> mkdir -p mnt/hdd0/volume1
>> guestmount -a disk.qcow2 -m /dev/sda1 mnt/hdd0/volume1
>> ....
>> (Is it safe to use the same disk from multiple guestmounts?)
>>
>> 2)
>> guestfish -a disk.qcow2 "
>> run :
>> mkmountpoint /hdd0 :
>> mkmountpoint /hdd0/volume1 :
>> ... :
>> mount /dev/sda1 /hdd0/volume1 :
>> ... :
>> mount-local mnt/ :
>> mount-local-run"
>>
>> kill -TERM `pidof guestfish`
>> guestunmount mnt/
>>
>>
>> Is any of these option...
2011 Nov 11
3
[PATCH v2] Add mdadm-create, list-md-devices APIs.
This adds the mdadm-create API for creating RAID devices, and
includes various fixes for the other two patches.
Rich.
2012 Mar 08
2
mounting using guestfish
...wo handles together and copy the file directly
between them, but you'd have to write a script against the API (eg. in
Perl/Python/etc).
. . .
In the *non-live* case, there is another method: add the disks of both
guests, 'launch', and copy the file between mountpoints (see the
'mkmountpoint' command). Surprisingly, this is not necessarily going
to be faster than downloading and uploading. This method also has
some limitations -- it's not possible to use two guests that have
conflicting volume group names; and even security issues -- a
malicious guest could interfere with the...
2015 Oct 19
1
[PATCH] Add a regression test for RHBZ#1011907 / RHBZ#1165785
...<<EOF
+run
+part-disk /dev/sda mbr
+mkfs ext3 /dev/sda
+mount /dev/sda /
+touch /in-loop
+EOF
+
+output=$(
+guestfish -a rhbz1011907-1165785.img <<EOF
+run
+part-disk /dev/sda mbr
+mkfs ext3 /dev/sda1
+mount /dev/sda1 /
+upload rhbz1011907-1165785-loop.img /rhbz1011907-1165785-loop.img
+mkmountpoint /loop
+mount-loop /rhbz1011907-1165785-loop.img /loop/
+is-file /loop/in-loop
+EOF
+)
+
+if [ "$output" != \
+"true" ]; then
+ echo "$0: error: output of guestfish did not match expected output"
+ echo "$output"
+ exit 1
+fi
+
+rm rhbz1011907-1165785...
2011 Apr 12
0
[ANNOUNCE] libguestfs 1.10.0 - tools for accessing and modifying VM disk images
...tmp
for large cached files that should survive reboot (instead of /tmp).
- guestfish, guestmount -m option allows mount options to be passed
through to the underlying filesystem.
- mkfs-opts allows filesystem features to be specified.
- More intelligent handling of mountpoints, allowing mkmountpoint, mount
and umount-all commands to work together properly.
- Trace messages are prefixed with a distinct string, allowing them to
be easily 'grepped' out from debug output.
- guestfs_launch (guestfish 'run' command) now produces progress
messages (a guestfish progress ba...
2017 Feb 21
0
[PATCH 3/3] dib: rename "aux" to "in_target.aux"
...ount "/";
- (* Prepare the /aux/perm partition. *)
+ (* Prepare the /in_target.aux/perm partition. *)
let drive_partition =
match cmdline.drive with
| None ->
@@ -746,9 +746,9 @@ let main () =
g, fn, fmt, drive_partition in
let mount_aux () =
- g#mkmountpoint "/tmp/aux";
- g#mount "/dev/sdb" "/tmp/aux";
- g#mount drive_partition "/tmp/aux/perm" in
+ g#mkmountpoint "/tmp/in_target.aux";
+ g#mount "/dev/sdb" "/tmp/in_target.aux";
+ g#mount drive_partition "/tmp/in_ta...
2019 Oct 25
1
net ads join -- strange message
...a hint,
> are you using something like pam-mount ?
>
>
yes i use pam_mount.
I have modified the script pam_mount.conf.xml .to create the directory
of my? user.
<?xml version="1.0" encoding="UTF-8"?>
<pam_mount>
<debug enable="1"/>
<mkmountpoint enable="1" />
<mntoptions allow="nosuid,nodev,loop,encryption,fsck" />
<mntoptions require="nosuid,nodev" />
<lsof>/usr/bin/lsof %(MNTPT) </lsof>
<cifsmount> /sbin/mount.cifs //%(SERVER)/%(VOLUME) %(MNTPT) -o
"user=%(USER),domain=...
2017 Feb 21
3
[PATCH 1/3] dib: unset all temporary dirs envvars in fake-sudo
The real sudo does it as well, and leaving them when preserving the
environment (-E) maybe breaks the applications, as e.g. chroot will have
a TMPDIR path pointing outside of it.
---
dib/dib.ml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dib/dib.ml b/dib/dib.ml
index df83ba1..d15cd19 100644
--- a/dib/dib.ml
+++ b/dib/dib.ml
@@ -301,6 +301,11 @@ if [ -z \"$preserve_env\" ];
2018 Aug 24
1
login a Linux client to a Samba NT4 style domain
...="srv3"
path="%(DOMAIN_USER)" mountpoint="/home/PM/%(DOMAIN_USER)/H"></volume>
<path</sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin</path>
<logout wait="0" hup="0" term="0" kill="0" />
<mkmountpoint enable="1" remove="true" />
</pam_mount>
net join runs correctly, but after reboot, I can login only with the local
account.
Portion from the auth.log:
Aug 23 14:06:01 localhost lightdm: pam_unix(lightdm:auth): check pass; user
unknown
Aug 23 14:06:01 localhost lightdm...
2012 May 19
1
Fwd: pam_mount configuration for users home directories from server to client
...ons allow="*" />
<mntoptions deny="*" />
-->
<mntoptions require="nosuid,nodev" />
<logout wait="0" hup="0" term="0" kill="0" />
<!-- pam_mount parameters: Volume-related -->
<mkmountpoint enable="1" remove="true" />
<smbmount> mount.cifs //amahoro/users/%(USER) /home/%(USER) -o
user=%(USER)</smbmount>
<umount> umount /home/%(USER) </umount>
</pam_mount>
Thanks
2018 Jun 20
0
Ubuntu 18:04 not getting 'home' directory from DC
...info:
globalconf, user=rachelj <volume fstype="cifs" server="cy-vault"
path="home/rachelj" mountpoint="/mnt/home/rachelj" cipher="(null)"
fskeypath="(null)" fskeycipher="(n$
Jun 20 10:29:35 CY-MKT-10 lightdm[823]: (mount.c:309): mkmountpoint:
checking /mnt
Jun 20 10:29:35 CY-MKT-10 lightdm[823]: (mount.c:309): mkmountpoint:
checking /mnt/home
Jun 20 10:29:35 CY-MKT-10 lightdm[823]: (mount.c:309): mkmountpoint:
checking /mnt/home/rachelj
Jun 20 10:29:35 CY-MKT-10 lightdm[823]: (mount.c:349): mkdir[0]
/mnt/home/rachelj
Jun 20 10:29:3...
2007 Jul 10
1
mounting an AD share upon login
...am_mount.c:360)
pmvarrun says login count is 1
Jul 9 13:03:27 feisty-s86-1 gdm[7393]: pam_mount(pam_mount.c:493) done
opening session
=====================
There are no "mount errors" but still "mount of peter failed".
Here is pam_mount.conf:
=====================
debug 1
mkmountpoint 1
fsckloop /dev/loop7
luserconf .pam_mount.conf
options_allow nosuid,nodev
options_deny suid,dev
options_require nosuid,nodev
lsof /usr/bin/lsof %(MNTPT)
fsck /sbin/fsck -p %(FSCKTARGET)
cifsmount /bin/mount -t cifs //%(SERVER)/%(VOLUME) %(MNTPT) -o
"user=%(USER),uid=%(USERUID),gid=%(USERGI...
2018 Jun 20
4
Ubuntu 18:04 not getting 'home' directory from DC
...nf, user=rachelj <volume fstype="cifs" server="cy-vault"
> path="home/rachelj" mountpoint="/mnt/home/rachelj" cipher="(null)"
> fskeypath="(null)" fskeycipher="(n$
> Jun 20 10:29:35 CY-MKT-10 lightdm[823]: (mount.c:309): mkmountpoint:
> checking /mnt
> Jun 20 10:29:35 CY-MKT-10 lightdm[823]: (mount.c:309): mkmountpoint:
> checking /mnt/home
> Jun 20 10:29:35 CY-MKT-10 lightdm[823]: (mount.c:309): mkmountpoint:
> checking /mnt/home/rachelj
> Jun 20 10:29:35 CY-MKT-10 lightdm[823]: (mount.c:349): mkdir[0]
&g...
2007 Oct 17
4
Pam_mount + cifs
...with SMBFS and
here's the problem... smbfs doesn't support hardlinks or symlinks... a BIG
trouble since the workstations run KDE (dcop)...
i've tryed mounting homes with cifs insted but this is what happens....
-------------------------
pam_mount.conf
-------------------------
debug 1
mkmountpoint 1
luserconf .pam_mount.conf
options_allow nosuid,nodev
options_deny suid,dev
options_require nosuid,nodev
lsof /usr/sbin/lsof %(MNTPT)
fsck /sbin/fsck -p %(FSCKLOOP)
cifsmount /bin/mount -t cifs //%(SERVER)/%(VOLUME) %(MNTPT) -o
"username=%(USER)%(before=\",\" OPTIONS)"
s...
2015 Oct 13
2
[PATCH v2 4/4] v2v: reuse main guestfs for virtio win drivers iso
...gt; (
+ let g2 = new Guestfs.guestfs () in
+ if trace () then g2#set_trace true;
+ if verbose () then g2#set_verbose true;
+ g2#add_drive_opts virtio_win ~readonly:true ~label:label;
+ g2#launch ();
+ g2
+ ) in
+
+ g2#mkmountpoint vio_root;
+ g2#mount_ro ("/dev/disk/guestfs" // label) vio_root;
let paths = g2#find vio_root in
Array.iter (
fun path ->
@@ -315,10 +327,18 @@ echo uninstalling Xen PV driver
printf "Copying virtio driver bits: '%s:%s'...