Skip to main content
edited tags; edited tags
Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k
Source Link
Trevor
  • 211
  • 1
  • 2
  • 6

Resize partition after image using dd to another drive

I have a smaller 120GB drive which has run out of space, which I have imaged to a larger 500GB drive using:

dd if=/dev/sdb1 of=/dev/sda4 bs=32M

After mounting to /R500 df shows me 100% in use which I expected

/dev/sda4            117214656 117214656         0 100% /R500

I then ran parted /dev/sda4 and it shows me:

Disk /dev/sda4: 460GB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End    Size   File system  Flags
 1      0.00B  460GB  460GB  reiserfs

I am a bit lost as to why the partition is showing the full drive size. I thought at this point I would have to resize the partition to fill the entire disk.

Can anybody shed some light?