LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-09-2015, 12:13 PM   #1
cdvries
LQ Newbie
 
Registered: Jun 2012
Location: Netherlands
Distribution: Mint, Debian and Ubuntu are my favorites
Posts: 7

Rep: Reputation: Disabled
impossible large file on filesystem


One file on my filesystem is larger than my volume.
My SSD in my laptop is only 128G big but the file /var/lib/libvirt/images/Windows7.img is 256G
How is this possible? Anyone?

Code:
energize images # pwd
/var/lib/libvirt/images
energize images # ls -hal
total 32G
drwx--x--x 2 root         root 4,0K jan  5 21:53 .
drwxr-xr-x 8 root         root 4,0K nov 16 20:47 ..
-rw------- 1 libvirt-qemu kvm  256G jan  9 19:01 Windows7.img
energize images # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             110G   55G   49G  53% /
none                  4,0K     0  4,0K   0% /sys/fs/cgroup
udev                  3,9G  4,0K  3,9G   1% /dev
tmpfs                 785M  1,6M  784M   1% /run
none                  5,0M     0  5,0M   0% /run/lock
none                  3,9G  2,0M  3,9G   1% /run/shm
none                  100M   28K  100M   1% /run/user
/dev/sda1             511M  3,4M  508M   1% /boot/efi
/home/chris/.Private  110G   55G   49G  53% /home/chris
/dev/sdc1             1,8T   96G  1,7T   6% /media/chris/144e75c7-04c0-4965-aad2-7bb75155c611
energize images #

Last edited by cdvries; 01-09-2015 at 12:19 PM.
 
Old 01-09-2015, 12:39 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Because it may be using sparse file. In sparse file the space is not allocated fully but grows as data is filled.
 
1 members found this post helpful.
Old 01-09-2015, 12:57 PM   #3
cdvries
LQ Newbie
 
Registered: Jun 2012
Location: Netherlands
Distribution: Mint, Debian and Ubuntu are my favorites
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by veerain View Post
Because it may be using sparse file. In sparse file the space is not allocated fully but grows as data is filled.
Thank you. I didn't know sparse files existed. Never heared of those kind of files.
I looked it up...
http://en.wikipedia.org/wiki/Sparse_file
 
Old 01-09-2015, 02:01 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Don't look at /proc/kcore then!
 
Old 01-10-2015, 10:41 AM   #5
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by Habitual View Post
Don't look at /proc/kcore then!
Code:
# ls -lh /proc/kcore
-r-------- 1 root root 128T Jan 10 10:12 /proc/kcore
I can get my M$ friends jealous of how much storage space I have
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sort large data in large file - commands smithy2010 Linux - Newbie 7 02-03-2013 09:01 AM
Shell Session Crashing when cat'ing a large file, tar'ing a large file, etc. newmanium2001 Linux - General 3 12-22-2012 10:32 PM
Filesystem for large disks, What to use? Strider_Max Linux - Server 8 08-27-2008 12:34 PM
[quick] trying to split a large file but linux says it's to large steve51184 Linux - General 16 05-06-2008 07:40 AM
Filesystem for a large partition. jaakkop Linux - Software 2 04-04-2008 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:24 AM.

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