Re: a conceptual confusion -- loop device

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

 



On Mon, Mar 8, 2010 at 7:39 AM, nidhi mittal hada
<nidhimittal19@xxxxxxxxx> wrote:
>
> Even after umount file doesnt disappear
>
> 1)mount -t ext4 /dev/loop4 /mnt/
> 2)cd /mnt
> 3)ls
>           a.c  lost+found
>
> 4)cd -
> 4)umount /mnt
> 5)mount -t ext4 /dev/loop4 /mnt/
> 6) cd /mnt/
>
> 7)
> [root@localhost mnt]# ls
> a.c  lost+found
>
>
> I m guessing ...is this somewhere related to that its showing data
> from page cache but not from disk ?

I'm pretty sure the real issue is that umount does NOT disassociate
/dev/loop4 with the image file you associated it with.  Thus your
image file is still open via the loopback association.

You need to terminate the loopback.

losetup -d /dev/loop4

Greg

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux