search for: losetup

Displaying 20 results from an estimated 247 matches for "losetup".

2019 Nov 05
0
[klibc:master] losetup: Fix char signedness mismatches with <linux/loop.h>
...git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=8443e57e5ba71e462e31e3b5aad9f7dd1b4736f5 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Tue, 5 Nov 2019 00:39:53 +0000 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Tue, 5 Nov 2019 00:44:32 +0000 [klibc] losetup: Fix char signedness mismatches with <linux/loop.h> For some reason the kernel's definition of struct loop_info64 defines string fields as arrays of __u8 (unsigned char) instead of char. Add the necessary casts to avoid compiler warnings. Signed-off-by: Ben Hutchings <ben at decaden...
2011 Jul 05
0
[PATCH] losetup: use stdout and return 0 for -h
From: Karel Zak <kzak at redhat.com> ported to klibc losetup version from util-linux 108591d2b7860ca0b8d27d114bed1e504a31fa72, also add -h option. -maks Reported-by: Kamalesh Babulal <kamalesh at linux.vnet.ibm.com> Signed-off-by: Karel Zak <kzak at redhat.com> Signed-off-by: maximilian attems <max at stro.at> --- Other patches might be u...
2019 Nov 05
0
[klibc:master] losetup: Delete fallbacks to LOOP_{GET, SET}_STATUS
...git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=209676c9a3d057c0eba48f633eb541b17c7d1eba Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Tue, 5 Nov 2019 00:33:37 +0000 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Tue, 5 Nov 2019 19:55:37 +0000 [klibc] losetup: Delete fallbacks to LOOP_{GET,SET}_STATUS The LOOP_{GET,SET}_STATUS64 ioctls were added in Linux 2.5.68, and klibc is not intended to support old kernel versions. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/utils/losetup.c | 65 ++----------------------------------------...
2019 Nov 05
0
[klibc:master] losetup: Use LOOP_CTL_GET_FREE to find free device
...git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=333ef3af1dcef61a6bc5dba531453e5e0cb27da1 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Tue, 5 Nov 2019 19:52:19 +0000 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Tue, 5 Nov 2019 20:03:26 +0000 [klibc] losetup: Use LOOP_CTL_GET_FREE to find free device Since Linux 3.1, the loop driver creates a /dev/loop-control device node which supports ioctls to allocate and free devices. When the loop driver is modular, udev creates this in advance, and opening it causes the driver to be loaded. (The same is not t...
2009 Aug 05
2
Unable to start domU because losetup fails
...on Debian with 2.6.26-2-xen-amd64 kernel and I had to "xm destroy" my domU. Now when I try to start it again it fails like this: # xm list | grep n39 # # xm create -c /xen/conf/n39 Using config file "/xen/conf/n39". ROOT xen1:~> Error: Device 4 (vbd) could not be connected. losetup -r /dev/loop1 /xen/iso/amd64-netbsd-6.iso failed # losetup -a /dev/loop0: [0012]:3039235 (/xen/iso/i386-netbsd-5.iso) /dev/loop100: [0012]:3039235 (/xen/iso/i386-netbsd-5.iso) /dev/loop101: [0012]:3039235 (/xen/iso/i386-netbsd-5.iso) /dev/loop102: [0012]:3039235 (/xen/iso/i386-netbsd-5.iso) /dev/...
2002 Mar 08
1
Using smbmount and losetup
I have problem with smbmount and losetup working together. The data seems to be corrupted. Description: I have an NT4 server with a share. On my linux box i use smbmount to mount the share. I have created a big file on the share and use losetup to configure a loop-back device on which i try to create/use a filesystem. It seems to work a...
2011 Aug 14
3
cant mount degraded (it worked in kernel 2.6.38.8)
# uname -a Linux dhcppc1 3.0.1-xxxx-std-ipv6-64 #1 SMP Sun Aug 14 17:06:21 CEST 2011 x86_64 x86_64 x86_64 GNU/Linux mkdir test5 cd test5 dd if=/dev/null of=img5 bs=1 seek=2G dd if=/dev/null of=img6 bs=1 seek=2G losetup /dev/loop2 img5 losetup /dev/loop3 img6 mkfs.btrfs -d raid1 -m raid1 /dev/loop2 /dev/loop3 btrfs device scan btrfs filesystem show Label: none uuid: d7ba6c4e-04ed-49f5-88cd-8432c948e822 Total devices 2 FS bytes used 28.00KB devid 1 size 2.00GB used 437.50MB path /dev/loop4...
2011 Jul 12
1
after mounting with -o degraded: ioctl: LOOP_CLR_FD: Device or resource busy
dd if=/dev/null of=img5 bs=1 seek=2G dd if=/dev/null of=img6 bs=1 seek=2G mkfs.btrfs -d raid1 -m raid1 img5 img6 losetup /dev/loop4 img5 losetup /dev/loop5 img6 btrfs device scan mount -t btrfs /dev/loop4 dir umount dir losetup -d /dev/loop5 mount -t btrfs -o degraded /dev/loop4 dir umount dir losetup -d /dev/loop4 ioctl: LOOP_CLR_FD: Device or resource busy mkfs.ext3 /dev/loop4 mke2fs 1.39 (29-May-2006) /dev/loop4 i...
2011 Jan 22
32
Bug in mkfs.btrfs?!
Hi, I wanted to create a new btrfs fs for my backups. When trying to mkfs.btrfs for that device, I''m getting "error checking /dev/loop2 mount status" With strace I see where the problem is: lstat("/dev/disk/by-id/ata-INTEL_SSDSA2M160G2GC_CVPO939201JX160AGN-par", 0x7fffa30b3cf0) = -1 ENOENT (No such file or directory) The problem is there is something missing
2005 Jan 31
0
cryptoloop enabled losetup package
Hi, I have a legacy AES excrypted file system with a 256 key size. RHEL kernel is cryptoloop enabled but the losetup package is not. It needs additional patch. Does anybody have a patched losetup rpm I could use? Thank you! A. Georgiev
2008 Jan 24
5
Can''t boot from ISO image...
...+ ''/xen/bin/qemu-dm'' boot="d" vncunused=0 vncconsole=1 vncpasswd=''secret'' stdvga=0 serial=''pty'' usb=1 usbdevice=''mouse'' I run "xm create symbiosis" and get: Error: Device 5632 (vbd) could not be connected. losetup -r /dev/loop0 /root/RHEL4.6-x86_64-AS-disc1.iso failed But, I can manually attach the loop device like so: losetup -r /dev/loop# /root/RHEL4.6-x86_64-AS-disc1.iso No problem. If I do: losetup -r /dev/loop5 /root/RHEL4.6-x86_64-AS-disc1.iso and then in the config file use this: disk = [ '...
2012 Nov 04
1
syslinux installation problem
...nstall the bootloader on the virtual machine image. The image contains the MBR and the only partition with the file system ext4. The file system contains all the files for the guest OS. To install bootloader into the image of the guest OS, I use the following procedure (guest OS is not running): 1. losetup -f --show /tmp/guest_os.img #map guest OS image to, e.g., /dev/loop0. So, "file -s /dev/loop0" shows: "/dev/loop0: x86 boot sector; partition 1: ID=0x83, starthead 32, startsector 2048, 2095104 sectors, extended partition table (last)\011, code offset 0x0" 2. loset...
2009 Nov 18
1
To loop or not to loop with btrfs
Hi, This left me puzzled for a while: 22:29 borg:/ # losetup /dev/loop1 /.B.disk 22:29 borg:/ # mount /dev/loop1 /B mount: /dev/loop1: can''t read superblock 22:29 borg:/ # blkid /dev/loop1 /dev/loop1: UUID="e19fe89b-cde3-4ccc-bc70-b759a57bd1c9" UUID_SUB="f29c6218-d040-4546-a227-4dd2d2142817" TYPE="btrfs" 22:29 borg:/ #...
2013 Oct 21
11
swapfile on btrfs, temporary solution for wiki
Hello list, i know what btrfs don''t support swap files. I read arch wiki and when i reading about systemd addon for auto create swapfile on btrfs, i invent the way, how create and using swap file, just see following sh code: swapfile=$(losetup -f) #free loop device truncate -s 8G /swap #create 8G sparse swap file losetup $swapfile /swap #mount file to loop mkswap $swapfile swapon $swapfile i just adding this to rc.local and this just work. May be, add it to Wiki as temporary solution to using swap file? (sorry for my bad english) --...
2009 Feb 25
3
HVM Linux DomU doesn''t start
..._poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''preserve'' Hvmloader and qemu-dm exists, but xm create fails with: Using config file "/var/xen/domains/hvmtest/hvmtest.cfg". Error: Device 2080 (vbd) could not be connected. losetup -r /dev/loop1 /var/xen/ubuntu-6.06.2-server-i386.iso failed but: # losetup -a /dev/loop0: [0901]:278531 (/var/xen/ubuntu-6.06.2-server-i386.iso) I am a bit confused now. What are we doing wrong? Best regards, Fabian _______________________________________________ Xen-users mailing list Xen-use...
2010 Aug 11
3
Failure when mounting Lustre
...when I try to mount lustre on the clients. Permanent disk data: Target: lustre-OSTffff Index: unassigned Lustre FS: lustre Mount type: ldiskfs Flags: 0x72 (OST needs_index first_time update ) Persistent mount opts: errors=remount-ro,extents,mballoc Parameters: mgsnode=164.107.119.231 at tcp sh: losetup: command not found mkfs.lustre: error 32512 on losetup: Unknown error 32512 mkfs.lustre FATAL: Loop device setup for /dev/sdb failed: Unknown error 32512 Connection to wci70 closed. mount.lustre: mount /dev/sdb at /tmp/ost failed: Block device required Do you need -o loop? Connection to wci70 clos...
2010 Mar 14
0
[patches] klibc review unsorted patch queue
...hem they didn't land yet in todays pull request. thanks max git clone git://git.debian.org/users/maks/klibc.git test Thomas B?chler (1): klcc: compile shared by default jeremy buisson (1): [klibc] sparc64: fix bad 32 bits socket syscalls maximilian attems (1): [klibc] add losetup utils the klcc one should be ok, the sparc patch looks like a wild hack (need to test if it fixes the referenced sparc bug) and the losetup may need refinments, tested it out, seems to work. afaik the encrypted loops are deprecated due to security vuln.. git diff --stat --summary master...test...
2003 Jun 13
1
jbd count incremented *even* if volume is mounted RO?
Continuing on with my earlier post . . . after looking through code of JBD, is the following perhaps the difference in why the md5 values differ; When a journalled filesystem that uses jbd is mounted the journal b_count is incremented by one? *EVEN* if the volume was mounted read only, this b_count is still increased by one? curious as ever! lt __________________________________ Do you
2008 Dec 26
7
Installing domU from ISO image file
...tOS installer indicates "Unable to find any devices of the type needed for this installation type." Then it prompts with "[Select driver] [Use a driver disk] [Back]". I have tried several variations of the "disk" paramater, all with the same results. I also used losetup to attach the imate to /dev/loop0 and tried the commented out "disk" parameters with the same results. xen is 3.3 OS is Ubuntu 8.04 1 name = "cos52" 2 memory = 128 3 4 disk = [ ''file:/etc/xen/iso/COS52.iso,ioemu:hdc:cdrom,r'', ''phy:/dev/vg00...
2019 Oct 31
0
[PATCH 2/2] loop: switch to linux/loop.h
.../klibc/+bug/1850184 Signed-off-by: Michael Hudson-Doyle <michael.hudson at ubuntu.com> Signed-off-by: Adam Conrad <adconrad at ubuntu.com> Signed-off-by: Dimitri John Ledkov <xnox at ubuntu.com> --- usr/utils/loop.h | 49 --------------------------------------------- usr/utils/losetup.c | 3 +-- 2 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 usr/utils/loop.h diff --git a/usr/utils/loop.h b/usr/utils/loop.h deleted file mode 100644 index 667f7dc0..00000000 --- a/usr/utils/loop.h +++ /dev/null @@ -1,49 +0,0 @@ -#define LO_CRYPT_NONE 0 -#define LO_CRYPT_XOR...