Re: partimage partition size
On Tue, Jul 12, 2011 at 12:31 PM, Hugo Vanwoerkom <hvw59601@care2.com> wrote:
>
> I created a 20GB partition:
>
> Model: SAMSUNG HD502HJ (scsi)
> Disk /dev/sdb: 500GB
> Sector size (logical/physical): 512B/512B
> Partition Table: msdos
>
> Number Start End Size Type File system Flags
> 1 32.3kB 20.0GB 20.0GB primary ext2
> 2 20.0GB 40.0GB 20.0GB primary ext2
>
> Then I restored with partimage a partition to /dev/sdb2 that was originally
> 13GB.
>
> Now df shows that /dev/sdb2 is only 13GB:
>
> debian:/var/cache/apt/archives# df
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/sdb2 13456580 7654296 5118720 60% /
> tmpfs 1033084 0 1033084 0% /lib/init/rw
> udev 10240 824 9416 9% /dev
> tmpfs 1033084 0 1033084 0% /dev/shm
> /dev/sdb1 19228276 3808488 14443040 21% /sdb1
>
> How do I get that pack to 20GB?
I'm not familiar with partimage but I suspect that you have to resize
the filesystem with "resize2fs -p /dev/sdb2" - preferably with sdb2
unmounted (my preference!) but it's not necessary for resizing up.
Reply to: