Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-17-2013, 01:06 AM   #1
Registered: Jun 2013
Location: California
Distribution: Ubuntu, Fedora
Posts: 75

Rep: Reputation: Disabled
what is /dev/loop0 for?


I am using Ubuntu. Today when I try to install a new package, Ubuntu notify me that I am running out of disk space.
I therefore did a df -h to take a look at the disk usage. What I notice is that it's the /dev/loop0 device getting full.
My question is, does /dev/loop0 work like the C:/ drive in windows. In other words, am I using space in /dev/loop0 when I install a package? I thought I am always using space in /dev/sdax, am I wrong about that?

Thank you
Dave Xu
Old 11-17-2013, 05:29 AM   #2
Registered: Nov 2013
Location: Egypt
Distribution: Fedora
Posts: 32

Rep: Reputation: Disabled
check this out
Old 11-17-2013, 06:09 AM   #3
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,920
Blog Entries: 28

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Member Response


Look at:Loop device - Wikipedia
In Unix-like operating systems, a loop device, vnd (vnode disk), or lofi (loopback file interface) is a pseudo-device that makes a file accessible as a block device.
Before use, a loop device must be connected to an existing file in the filesystem. The association provides the user with an API that allows the file to be used in place of a block special file (cf. device file system). Thus, if the file contains an entire file system, the file may then be mounted as if it were a disk device.
Files of this kind are often used for CD ISO images and floppy disc images. Mounting a file containing a filesystem via such a loop mount makes the files within that filesystem accessible. They appear in the mount point directory.
A loop device may allow some kind of data elaboration during this redirection. For example, the device may be the unencrypted version of an encrypted file. In such a case, the file associated with a loop device may be another pseudo-device. This is mostly useful when this device contains an encrypted file system. If supported, the loop device is in this case the decrypted version of the original encrypted file and can therefore be mounted as if it were a normal filesystem.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reg: /dev/loop0 alphy Linux - General 0 08-05-2011 01:58 AM
unable to seek on /dev/loop0 ankit_justdoit Linux - Newbie 2 11-01-2010 07:40 AM
SLE11 mount -o loop displays /dev/loop0 instead of iso file name wendycray SUSE / openSUSE 4 03-22-2010 11:20 AM
Trying to install Mint 8 but cannot mount /dev/loop0 dflo404 Linux - Laptop and Netbook 2 02-14-2010 12:13 PM
How can I attach a compressed file to /dev/loop0 (for filesystem image recovery)? rjlee Linux - General 0 09-26-2004 05:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration