Menu

unshrink target drive to orig physical size ?

Help
Urs Rau
2010-09-24
2013-04-05
  • Urs Rau

    Urs Rau - 2010-09-24

    I have a 120GB disk that is only recognised as a 40GB disk after device to device clone.

    No matter what I use sfdisk sfdisk fdisk or parted can make this disk bigger again. All of the tools report a new , and wrong. geometry.

    They all report the disk size to be 40GB, there is no unallocated space on the target.

    How can I revert the target back to it's original actual physical size of 120GB and then retry the clone again?

    I have used clonezilla 1.2.5-35 (i486) [or 1.2.6-24 (i486) - sorry I can't be sure which of the two was in the drive, to clone device<->device from a 40GB disk to a 120GB disk.

    Unfortunatly I only used the -r but not the -k1 option, thought that -r would do what's needed and didn't twek that proportional expansion of partitions woudl have been a good idea.

    the source disk says
    cyl 4681 heads 255 sectors 63 => capacity 38.2 GB

    the target disk now also says
    cyl 4681 heads 255 sectors 63 => capacity 38.2 GB instead of the 120Gb it shouldhave

    I did not save the original params of the 120GB dsk but it likely was around
    cyl 14593 heads 255 sectors 63

    I have tried using sfdisk called up with the following
    sfdisk -f -C 14593 -H 255 -S 63 < sda-120GB-sfdisk-dump.txt

    it creates a partition that is bigger than the size that cfdisk fdisk or sfdisk detect. How can I get linux to detect the original physical size and geometry again?

    BTW hdparm -v /dev/sda also detects the new and way too small geometry of only 4681 cyls 255 hds 63 sec

    The 120 GB disk is a Fujitsu MHW2120BJ 7200 rpm drive. The label also says LBA 234441648 .

    Any hints, or ideas how to unshrink my 120 Gb disk form it's current tiny 40GB?

    Regards.

     
  • Steven Shiau

    Steven Shiau - 2010-10-02

    If it's ext3 or ext4, you can use "resize2fs" to make the file system size to match the partition size.
    If it's ntfs, use ntfsresize to do that.

    Steven.

     
  • Urs Rau

    Urs Rau - 2010-10-02

    Thanks Steven,
    But I obviously didn't explain my dilemma clear enough.

    My 120 GB disk now thinks it is a 38.5 GB disk. !!! and no partition program or disk resizer wants to offer me more than those measly 40GB. I can delete all partitions and start afresh but all three diskpartitioners under windows, Mac OS and linux all tell me I am now looking at a 38.5 GB disk.

    I have no idea how clonezilla could teach the hard drive it had only 4681 cylinders.

     
  • Steven Shiau

    Steven Shiau - 2010-10-06

    So what exactly is the problem there?
    If it's the partition size, then gparted live can help you to resize the partition size. If it's the file system size is smaller than partition size, as I mentioned, resize2fs, ntfsresize or similar file system tuning program is what you need.
    If it's beyond this… then I have no idea actually.

    Steven.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.