Results 1 to 5 of 5

Thread: Partimage - confused over file sizes

  1. #1
    Join Date
    Jul 2007
    Beans
    147

    Partimage - confused over file sizes

    I'm trying to use partimage to create an archive of an Ubuntu version I'm no longer using.

    When I run partimage, it tells me that the used space on the partition is 6.10 Gigs. This seems odd because other tools (df, du, disk usage analyzer) say that used space is around 2.5 Gig. The compressed (with gzip) partimage file is 861M, which of course isn't meaningful. So I ran it again uncompressed, and the result was 6282M - consistent with what partimage told me.

    Does this make sense? Why the big difference? Is this caused by thousands of files each with large block sizes? I'd like to know that I have a good archive before I go to the next step - replacing the Ubuntu version with a later one.

    Thanks
    Mike
    Lucid Lynx 10.04

  2. #2
    psusi is offline Ubuntu addict and loving it
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Beans
    3,980
    Distro
    Ubuntu Development Release

    Re: Partimage - confused over file sizes

    Could be... what does sudo du -bsh say?

  3. #3
    Join Date
    Jul 2007
    Beans
    147

    Re: Partimage - confused over file sizes

    Quote Originally Posted by psusi View Post
    Could be... what does sudo du -bsh say?
    2.1G.

    (For the partition I'm running the OS from, I get
    Code:
    du: cannot access `./.gvfs': Permission denied
    before the result. That's always confused me.
    Lucid Lynx 10.04

  4. #4
    psusi is offline Ubuntu addict and loving it
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Beans
    3,980
    Distro
    Ubuntu Development Release

    Re: Partimage - confused over file sizes

    du says 2.1 gigs with, or without the -b?

    The .gvfs directory is a virtual directory created by the gnome filesystem and is only accessible to you, so when you run du as root it can't look in there.

  5. #5
    Join Date
    Jul 2007
    Beans
    147

    Re: Partimage - confused over file sizes

    Quote Originally Posted by psusi View Post
    du says 2.1 gigs with, or without the -b?
    Code:
    sudo du -bsh
    2.1G	.
    Quote Originally Posted by psusi View Post
    The .gvfs directory is a virtual directory created by the gnome filesystem and is only accessible to you, so when you run du as root it can't look in there.
    Thanks for the reminder. I find it confusing that there are files that are inaccessible to root.
    Lucid Lynx 10.04

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
  •