[opensuse] Help -- Anybody solved the gparted ntfs bug issue or have a cli workaround?
Guys, Girls: I need help -- again. The problem is the ntfs bug in gparted. It is frustrating, because I have read this guy solved it, that guy solved it, but there isn't any details of what they did. Grrr. A synopsis of the bug is here: http://gparted.sourceforge.net/download.php (the main gparted d/l page) What I am trying to do is add a lager hd to my son's computer that he has outgrown the windows partition on. The drive is presently partitioned as follows: sda sda1 - 40G Primary with XP sda5 - 2G swap sda6 - 20G / sda7 - 53G /home What I am trying to do is install a new 250G drive. The plan is to install the new drive as hd0 and then copy the 40G primary too the new drive and then grow it to 210G leaving roughly 30G unpartitioned at the end for whatever. Upon attempting the copy with gparted (0.52-9) the copy fails with an error saying that sda1 has a bad sector and that you need to boot into windows, run chkdsk /r (implies /f), reboot TWICE, and then the partition can be resized using the ntfsresize '--bad-sector' option. OK, great, so I unplug the new drive and boot into windows and run chkdsk -r, then hour later, I try gparted again -- same result. That's when I started poking around and ran into the gparted ntfs bug issue. How in the heck to I copy the partition and resize it if gparted is tanked? Copy it with dd and then just use the ntfsresize to hopefully force a resize. Any of you devs got a better work-around? One big frustration with gparted is that it doesn't (that I can find) provide a place to enter any extra options for the copy or resize. Anybody know any? That's where I'm stuck. If I'm going to go the dd route, does anybody have a quick cheat-sheet that tells how to optimize the copy blocksize working with ntfs? That one area I haven't mucked around a lot and God forbid I mess up my son's Steam Counter-Strike install trying to do this. What say the experts? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 [Sent later] On 2010-06-24 08:00, David C. Rankin wrote:
What I am trying to do is add a lager hd to my son's computer that he has outgrown the windows partition on. The drive is presently partitioned as follows:
sda sda1 - 40G Primary with XP sda5 - 2G swap sda6 - 20G / sda7 - 53G /home
What I am trying to do is install a new 250G drive. The plan is to install the new drive as hd0 and then copy the 40G primary too the new drive and then grow it to 210G leaving roughly 30G unpartitioned at the end for whatever.
That's where I'm stuck. If I'm going to go the dd route, does anybody have a quick cheat-sheet that tells how to optimize the copy blocksize working with ntfs? That one area I haven't mucked around a lot and God forbid I mess up my son's Steam Counter-Strike install trying to do this.
As long as you don't write to the old disk, you are safe. I think you have to clone first the partition table, with dd, then the first partition (just give the blocksize a very big size that is smaller than your available ram, considering what is used by the rest of the programs). Then you have to repair the partition table so that the real size of the entire disk is seen. Or create a partition sdb1 of 40G (or better, the exact number of sectors sda1 has), and dd it. But you have to get the MBR there too, perhaps, in order to boot it. Then boot windows in the new disk, and use windows to resize itself, to 200GB. It should work. In theory. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iF4EAREIAAYFAkwkRMMACgkQja8UbcUWM1xVEAD8Cb/6oI+tDilHfp1YtZahvjuG oxhGUZYDBRAk8ckeYCEA/1lBRgWlAu5XtdP5hJM9VFlx1xPKJqfvahX2wbIL7tKr =P4ky -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 06/25/2010 12:55 AM, Carlos E. R. wrote:
Or create a partition sdb1 of 40G (or better, the exact number of sectors sda1 has), and dd it. But you have to get the MBR there too, perhaps, in order to boot it.
This is what I did and it worked fine. Instead of moving the mbr, I just chrooted the install after booting from the gparted live cd and re-installed grub to hd0 (the new drive). The weird thing is there were ~ 18 bad sectors on the old drive in the XP volume. I don't understand it, but when dd copied (and nul padded any bad sectors), gparted still sees the sectors as bad on hd0. Windows checks them and there is no error. I posted this to the gparted forums where there were a lot of other XP volume/sector issues with gparted. Hopefully gparted will get fixed in that regard. Installing grub to both drives actually works fine. Now each drive has grub installed on it with the default OS being XP on hd0 and suse on hd1. Now if I pull either drive it will still boot. The only difference is if I pull hd1, I have no gfxboot menu and just let it default to windows on that drive. I know copying the mbr would have accomplished the same thing, but as long as I had the install chrooted .......
Then boot windows in the new disk, and use windows to resize itself, to 200GB. It should work. In theory.
Now that's a good idea :-) -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Carlos E. R.
-
David C. Rankin