Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: 163 GB data at 4.7 GB DVD

  1. #11
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: 163 GB data at 4.7 GB DVD

    Quote Originally Posted by Wim Sturkenboom View Post
    Read up on sparse files

    Step 1
    Check diskspace before creating a 1GB file
    Code:
    wim@i3-2120:/mnt$ du --max-depth=1
    32	./boot-sav
    219602196	./photos
    219602232	.
    wim@i3-2120:/mnt$ df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda5       138G  4,9G  126G   4% /
    udev            3,7G  4,0K  3,7G   1% /dev
    tmpfs           1,5G  856K  1,5G   1% /run
    none            5,0M     0  5,0M   0% /run/lock
    none            3,7G  216K  3,7G   1% /run/shm
    /dev/sda6       532G   14G  491G   3% /home
    /dev/sdc1       925G  210G  706G  23% /mnt/photos
    Step 2
    Create a 1GB file
    Code:
    wim@i3-2120:/mnt$ cd photos/wim/
    wim@i3-2120:/mnt/photos/wim$ dd if=/dev/null of=sparse-file bs=1k seek=1000000 count=1
    0+0 records in
    0+0 records out
    0 bytes (0 B) copied, 2,112e-05 s, 0,0 kB/s
    wim@i3-2120:/mnt/photos/wim$ ls -l
    total 33016
    -rwxr-xr-x 1 wim wim    6068196 Jan 11  2011 IMGP2310 (copy).jpg
    -rwxr-xr-x 1 wim wim   10801944 Jan 11  2011 IMGP2310 (copy).PEF
    -rwxr-xr-x 1 wim wim    6068196 Jan 11  2011 IMGP2310.jpg
    -rwxr-xr-x 1 wim wim   10801944 Jan 11  2011 IMGP2310.PEF
    -rw-rw-r-- 1 wim wim 1024000000 Nov 30 16:05 sparse-file
    Step 3
    Check available diskspace after creating 1GB file
    Code:
    wim@i3-2120:/mnt/photos/wim$ du --max-depth=1 /mnt
    32	/mnt/boot-sav
    219602196	/mnt/photos
    219602232	/mnt
    wim@i3-2120:/mnt/photos/wim$ df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda5       138G  4,9G  126G   4% /
    udev            3,7G  4,0K  3,7G   1% /dev
    tmpfs           1,5G  856K  1,5G   1% /run
    none            5,0M     0  5,0M   0% /run/lock
    none            3,7G  216K  3,7G   1% /run/shm
    /dev/sda6       532G   14G  491G   3% /home
    /dev/sdc1       925G  210G  706G  23% /mnt/photos
    Note that the disk usage / free space did not change
    Of course it didn't change, you created the 1GB file on sdc1 partition, NOT the / partition.

  2. #12
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: 163 GB data at 4.7 GB DVD

    Quote Originally Posted by dannyboy79 View Post
    Of course it didn't change, you created the 1GB file on sdc1 partition, NOT the / partition.
    Please explain

    I create a sparse file on /dev/sdc1 (mounted on /mnt/photos), check the diskspace on sdc1 with df and the disk usage on /mnt/photos with du. A 100% valid test (and proof) in my opinion.
    If you don't make backups of your important data, your data is obviously not important to you.

  3. #13
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: 163 GB data at 4.7 GB DVD

    Quote Originally Posted by ramakanta View Post
    what does it mean . please explain with details . i am not export in programme.
    thank you.
    I can not explain more; it just shows that you can create files that seem to be 1GB in size but actually don't occupy that much space.
    If you don't make backups of your important data, your data is obviously not important to you.

  4. #14
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: 163 GB data at 4.7 GB DVD

    Quote Originally Posted by Wim Sturkenboom View Post
    Please explain

    I create a sparse file on /dev/sdc1 (mounted on /mnt/photos), check the diskspace on sdc1 with df and the disk usage on /mnt/photos with du. A 100% valid test (and proof) in my opinion.
    I thought you were trying to say that / partition didn't change in size BUT I see now that you meant that /dev/sdc1/ didn't change in size. It still remained 706GB available. df -h must not be very exact. A 1GB file will take up 1GB, there's no way around that IMO.

    This is getting off topic IMO. I am done with this thread but would like to say that 163GB of data will NOT fit on a 4.7GB dvd.

  5. #15
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: 163 GB data at 4.7 GB DVD

    Quote Originally Posted by dcottingham View Post
    That screen shot appears to be from Windows, not Ubuntu. Am I missing something?
    I don't think so. The OP has posted screenshots from Windows in two posts.

    @ramakanta, it would appear that you are trying to copy a copy-protected DVD in Windows. That is not something that we can help you with here. I suggest you try a Windows forum.

    Thread moved to Other OS/Distro Talk, and closed.
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •