LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2010, 08:30 AM   #1
limdel
Member
 
Registered: May 2009
Location: Ho Chi Minh City, Vietnam
Distribution: CentOS 6.4, FEDORA 18 x64, Linux Mint 15 x64
Posts: 57

Rep: Reputation: 15
how to reclaim original disk space after misused of clonezilla


Hi,

Here my problem:
I wanted, on my laptop, to clone a 60GB HDD into a 500GB HDD using clonezilla (Parted Magic live cd). So i used the option disk2image, create the image file to an USB Drive. Everything was fine, i get my image file on that ext HDD.
After i change the HDD on my laptop for the brand new 500GB but i think i make a mistake when restoring the image file using image2disk instead of image2partition.
Now my 500gb is recognised as a 60GB hdd on gparted.
How can i reclaim original HDD space on my 500GB ?

Thanks for your help.
Laurent

Last edited by limdel; 07-10-2010 at 08:55 AM. Reason: change title
 
Old 07-10-2010, 06:09 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Might depend on the OS. I never could fix a system that we have. The problem is when you take the entire disk it gets carried away as you see.

You might try gparted live cd to see if it will expand. Be sure to note any warnings. At some point if it fails you can backtrack at that moment usually. If you reboot you are lost.
 
Old 07-10-2010, 07:49 PM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Maybe you have the "Host Protected Area" problem that is discussed in this thread
http://www.linuxquestions.org/questi...6/#post3415276
with reference to this one:
http://forum.hddguru.com/disk-resize...nis-t6774.html
 
Old 07-10-2010, 08:09 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,834

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
I don't think it's an HPA problem - the disk geometry is written into the sector zero. By copying the entire disk you overwrote that - people seem to do it a lot on USB keys. If it were me I'd zero the first sector, reboot it and see if something like fdisk or grub will get the geometry from the device itself (from a liveCD).
Of course that will (likely) cause a re-install unless you're careful, and have some experience with recovery.
 
Old 07-11-2010, 07:45 AM   #5
limdel
Member
 
Registered: May 2009
Location: Ho Chi Minh City, Vietnam
Distribution: CentOS 6.4, FEDORA 18 x64, Linux Mint 15 x64
Posts: 57

Original Poster
Rep: Reputation: 15
thanks guys for your answer, i will try syg00 proposal, how can i "zero the first sector" ?
 
Old 07-11-2010, 08:50 AM   #6
limdel
Member
 
Registered: May 2009
Location: Ho Chi Minh City, Vietnam
Distribution: CentOS 6.4, FEDORA 18 x64, Linux Mint 15 x64
Posts: 57

Original Poster
Rep: Reputation: 15
i have found this command:

Code:
dd if=/dev/zero of=/dev/hda bs=512 count=1
on this thread ...http://www.linuxquestions.org/questi...-query-606489/

will it do the trick ? have done enough mistake don't want to ruine my HDD

Thanks
Laurent
 
Old 07-11-2010, 05:48 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,834

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
/dev/hda likely won't be correct these days - probably /dev/sda. This covers SATA disk, but now also IDE due to changes in the kernel a while back.
Be warned this is the first (primary) disk. Normally this is a concern, but if this has been installed as the primary disk in your case you should be o.k.
Everything will be gone - you do understand that ?.

Do a "sudo fdisk -l" to check you are hitting the correct disk.
 
Old 07-12-2010, 09:13 AM   #8
limdel
Member
 
Registered: May 2009
Location: Ho Chi Minh City, Vietnam
Distribution: CentOS 6.4, FEDORA 18 x64, Linux Mint 15 x64
Posts: 57

Original Poster
Rep: Reputation: 15
Zero the first Sector didn't do the job.
But i did used testdrive to change the HDD geometry to the original one.

Everything is ok now. Thanks to all for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clonezilla can't find disk image cmplet-noobie Linux - Software 15 10-08-2016 10:02 PM
how to extract hard disk image (hdb1.ext2-ptcl-img.gz) given by clonezilla laginagesh Linux - Software 1 09-10-2009 01:56 AM
disk imaging, clonezilla or partimage fenixbtc Linux - Software 4 08-10-2009 01:24 PM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 07:19 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM


All times are GMT -5. The time now is 04:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration