Re: Mounting partitions of a loopback device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 20, 2008 at 08:12:34PM -0700, Sean Bruno wrote:
> I found today, that I was unable to mount or detect partitions in a loop
> back device that I had configured via losetup.  
> 
> Was there any discussion on the LKML about this patch or is there anyone
> "championing" it into the kernel?
> http://lwn.net/Articles/274113/

 I see the patch in Linus's tree:

         commit 476a4813cfddf7cf159956cc0e2d3c830c1507e3
         Author: Laurent Vivier <Laurent.Vivier@xxxxxxxx>
         Date:   Wed Mar 26 12:11:53 2008 +0100

         loop: manage partitions in disk image


 and it works for me:

         # ./losetup -f -s /root/kzak/disk.img
         /dev/loop0

         # ls -la /dev/loop0*
         brw-r----- 1 root disk 7, 0 2008-08-21 11:34 /dev/loop0
         brw-r----- 1 root disk 7, 1 2008-08-21 11:56 /dev/loop0p1
         brw-r----- 1 root disk 7, 2 2008-08-21 11:56 /dev/loop0p2
         brw-r----- 1 root disk 7, 3 2008-08-21 11:56 /dev/loop0p3

         # mount /dev/loop0p1 /mnt

         # ls -la /mnt
         total 21
         drwxr-xr-x  3 root root  1024 2008-08-21 11:52 .
         drwxr-xr-x 23 root root  4096 2008-07-14 10:07 ..
         drwx------  2 root root 12288 2008-08-21 11:52 lost+found


 # uname -a
 Linux ppc03.englab.brq.redhat.com 2.6.26-0.115.rc9.git2.fc10.ppc64 #1
 SMP Mon Jul 7 22:29:44 EDT 2008 ppc64 ppc64 ppc64 GNU/Linux


    Karel


-- 
 Karel Zak  <kzak@xxxxxxxxxx>

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux