Results 1 to 4 of 4

Thread: Change Disk portition and reload image file

  1. #1
    Join Date
    Dec 2006
    Beans
    Hidden!

    Change Disk portition and reload image file

    Hi All
    My ubuntu partition is 19GB on 80GB hard disk. Then Reformat Hard Disk to 50GB and reload partimage image file. After reload the image file, using df to check Still 19GB.

    How to fix my problem ?

    moonhk@hex:~$ df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda1 19061872 9667720 8433468 54% /
    none 1540188 328 1539860 1% /dev

  2. #2
    Join Date
    Jun 2008
    Location
    New York
    Beans
    139
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Change Disk portition and reload image file

    Can you be more specific as to how you created and 'reloaded' the image?
    on freenode as Zeike or brandonj, depending on my mood.

  3. #3
    Join Date
    Dec 2006
    Beans
    Hidden!

    Re: Change Disk portition and reload image file

    Hi All

    Step 1.
    For Create partimage file by
    YMD=`date +%Y%m%d`
    TAR=/mnt/image/ubuntu104_${YMD}.gz
    partimage -z1 -o -d save /dev/sda1 $TAR

    Step 2.
    Reformat HD
    About 50G for Linux, 30GB for NTFS

    Step 3.
    Reload /mnt/image/ubuntu104_${YMD}.gz to HD.

    Found that by df -k, the size remain 19GB.

  4. #4
    Join Date
    Dec 2006
    Beans
    Hidden!

    Re: Change Disk portition and reload image file

    For Partimage, I get the answer as below
    http://www.partimage.org/Partimage-F..._partition_.3F

    You can't restore to a smaller partition (you will have an error), but it's possible to restore to a lager one. In this case, some space will be lost (I suppose the OS cannot use all the size). Partimage don't have a resize feature, but you can use other tools. I'd like to add this in the future too. It will allow to restore into a smaller or larger partition. Indeed, as Partimage is low level it uses data blocks. So resizing is possible, but that's a complex feature to implement. With some File Systems made to be easily resizable (as NTFS, ext2, ReiserFS), it may be easy, but with FAT, it's hard to do. For example, when resizing from 1,5 GB to 3 GB, you must change FAT16 into FAT32... You can use GNU Parted to do it.

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
  •