Re: Replacing a HD
Joe Hart wrote: > [snip] > > I will add to your confusion and tell you another way. You can use > partimage to take a snapshot of a whole partition and then restore that > snapshot to a new drive. > > As for booting the new drive, you need to write a MBR on the new drive > so that it knows which partition to boot. One advantage of the clone method on NewbieDOC is that you get an exact clone - including all partitions and the MBR. No need to write a new MBR or a new Grub configuration. Backing up to CDs first with partimage would be a good idea though. -- Chris. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Replacing a HD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe Hart wrote: > Frank McCormick wrote: > [snip] >>> I have had suggestions ranging from dd to pcopy and even rsync on >>> mounted drives. Still not sure the way to go. But thanks to all for the >>> suggestions. > > You can expect that. There are a multitude of ways to accomplish the > same tasks, and people have preferences that are different than others. > If you don't know what you're doing, and don't know the commands, then > I can see how it would be difficult to know which path of advice to > take. You have a choice, research the commands given and pick one, or > blindly pick one and hope that it is good for you. I've been running various flavors of Linux for a couple of years...but without some previous experience it's tough to know which way has the best chances of no-problem success. I am told dd is slow...and can be error prone..so I am leaning towards Pcopy. > > I will add to your confusion and tell you another way. You can use > partimage to take a snapshot of a whole partition and then restore that > snapshot to a new drive. I thought of this way but it **seemed** to simple :) > > Now if I were you, I'd keep the old drive and use it as a slave so that > you have even more space. Good luck. Good idea - you can never have too much HD space :) Thanks Cheers Frank -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGGTel8Rvr3Tn207ARAjYkAKCAY5hOsYsy5rbpG/ErknpsMxf3kgCfdiYV WuVZrwNLcldXDNINvdACMIU= =2tM+ -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Replacing a HD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank McCormick wrote: [snip] > I have had suggestions ranging from dd to pcopy and even rsync on > mounted drives. Still not sure the way to go. But thanks to all for the > suggestions. > > Cheers > > Frank > You can expect that. There are a multitude of ways to accomplish the same tasks, and people have preferences that are different than others. If you don't know what you're doing, and don't know the commands, then I can see how it would be difficult to know which path of advice to take. You have a choice, research the commands given and pick one, or blindly pick one and hope that it is good for you. I will add to your confusion and tell you another way. You can use partimage to take a snapshot of a whole partition and then restore that snapshot to a new drive. As for booting the new drive, you need to write a MBR on the new drive so that it knows which partition to boot. Lilo instructions were given earlier in this thread. You didn't say which you used so I will give you instructions for grub (the # and grub> are prompts): #grub grub>root (hd0,0) grug>setup (hd0) grub>quit # This is assuming that /dev/hda1 is what you want to boot. Increase the second number accordingly for other partitions, for example /dev/hda3 would be (hd0,2). Now if I were you, I'd keep the old drive and use it as a slave so that you have even more space. Good luck. Joe - -- Registerd Linux user #443289 at http://counter.li.org/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGGS00iXBCVWpc5J4RArCuAJ97SqupJu3AedlRQb28azrgLrniiQCcDzGH ZDgaYzvepGzMfyx8aYa51ys= =HNon -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Replacing a HD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 08 Apr 2007 17:45:11 +0200 Matus UHLAR - fantomas <[EMAIL PROTECTED]> wrote: > On 07.04.07 17:40, Frank McCormick wrote: > > I am planning to replace my 30 gig HD with a bigger drive. At the > > moment this is the way hda is setup: > > > > ~ ---Starting--- EndingStart Number of > > ~ # Flags Head Sect Cyl ID Head Sect Cyl SectorSectors > > - -- - --- > > --- ~ 1 0x00110 0x82 14 63 416 > > 63 394002 ~ 2 0x0001 417 0x83 14 63 1023 > > 39406531444875 ~ 3 0x80 14 63 1023 0x83 14 63 1023 > > 3183894025597215 ~ 4 0x00 14 63 1023 0x05 14 63 > > 102357436155 1163295 ~ 5 0x00 14 63 1023 0x82 14 > > 63 1023 63 1163232 > > hda5 is only one partition in hda4, which is an extended partition. > This is quite useless, I would set up hda4 directly and avoid using > extended partition... At the time I paritioned the drive it had one parition on it already and as I recall ( I may be wrong here ) using an extended partition was the only way to create the second. > > > My system boots from hda3 using grub. hda1 and hda5 are swap > > partitions. > > but two swap partitions are useless, so 3 partitions will be enough > for you I agree, the second swap came about as a way to use up extra hd space :) > > > Whats the best way to get an exact copy of my two Linux systems > > onto the new drive? I am not so concerned with the two swap > > partitions, as I can create merge them into one on the new HD later. > > yes, do it. Simply create partitions, configure filresystems on them > and copy data using dump or tar... the only problem might be setting > up boot from new drive. I use hacks like setting up 'disk=' and > 'bios=' in lilo.conf. I have had suggestions ranging from dd to pcopy and even rsync on mounted drives. Still not sure the way to go. But thanks to all for the suggestions. Cheers Frank - -- Change the world one loan at a time - visit Kiva.org to find out how -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGGRIwzWG7ldLG6fIRAnYoAJ0dCYMEsi1ZA6fiCym4J3Nn1eQgZACdH82t lXLPdc3JxjC5jlW6zBomfa8= =U5Ae -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Replacing a HD
On 07.04.07 17:40, Frank McCormick wrote: > I am planning to replace my 30 gig HD with a bigger drive. At the moment > this is the way hda is setup: > > ~ ---Starting--- EndingStart Number of > ~ # Flags Head Sect Cyl ID Head Sect Cyl SectorSectors > - -- - --- --- > ~ 1 0x00110 0x82 14 63 416 63 394002 > ~ 2 0x0001 417 0x83 14 63 1023 39406531444875 > ~ 3 0x80 14 63 1023 0x83 14 63 10233183894025597215 > ~ 4 0x00 14 63 1023 0x05 14 63 102357436155 1163295 > ~ 5 0x00 14 63 1023 0x82 14 63 1023 63 1163232 hda5 is only one partition in hda4, which is an extended partition. This is quite useless, I would set up hda4 directly and avoid using extended partition... > My system boots from hda3 using grub. hda1 and hda5 are swap partitions. but two swap partitions are useless, so 3 partitions will be enough for you > Whats the best way to get an exact copy of my two Linux systems onto the > new drive? I am not so concerned with the two swap partitions, as I can > create merge them into one on the new HD later. yes, do it. Simply create partitions, configure filresystems on them and copy data using dump or tar... the only problem might be setting up boot from new drive. I use hacks like setting up 'disk=' and 'bios=' in lilo.conf. -- Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. One OS to rule them all, One OS to find them, One OS to bring them all and into darkness bind them -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Replacing a HD
On Sun, Apr 08, 2007 at 12:07:35AM +0200, Mathias Brodala wrote: > > My system boots from hda3 using grub. hda1 and hda5 are swap partitions. > > > > Whats the best way to get an exact copy of my two Linux systems onto the > > new drive? > > Put the new drive into your PC and use dd to copy the whole 30GB disk to the > new > one. You can resize partitions afterwards using fdisk or parted. Bah. This isn't windows. Just partition the new hd however you like. Mount the new root partition in a nice location (like /mnt) and then mount the rest on top of that and then rsync from one hd to the other excluding /mnt, /tmp, /sys, /dev/pts and /proc. udev may complicate things with /dev so you may need to temporarily umount that before rsyncing. It sounds complicate but it really isn't. It's the way I've done it (including across the network) and it's not failed me yet. -- "To the extent that we overreact, we proffer the terrorists the greatest tribute." - High Court Judge Michael Kirby -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Replacing a HD
Frank McCormick wrote: > > I am planning to replace my 30 gig HD with a bigger drive. At the moment > this is the way hda is setup: > > ~ ---Starting--- EndingStart Number of > ~ # Flags Head Sect Cyl ID Head Sect Cyl SectorSectors > -- - --- --- > ~ 1 0x00110 0x82 14 63 416 63 394002 > ~ 2 0x0001 417 0x83 14 63 1023 39406531444875 > ~ 3 0x80 14 63 1023 0x83 14 63 10233183894025597215 > ~ 4 0x00 14 63 1023 0x05 14 63 102357436155 1163295 > ~ 5 0x00 14 63 1023 0x82 14 63 1023 63 1163232 > > > > > My system boots from hda3 using grub. hda1 and hda5 are swap partitions. > > Whats the best way to get an exact copy of my two Linux systems onto the > new drive? I am not so concerned with the two swap partitions, as I can > create merge them into one on the new HD later. > You can clone your HDD using Pcopy (or Ddrescue, although I have not tried this). First, copy the partition table using Cfdisk. Details at http://newbiedoc.berlios.de/wiki/Cloning_a_hard_disc . -- Chris. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Replacing a HD
Hello Frank. Frank McCormick, 07.04.2007 23:40: > I am planning to replace my 30 gig HD with a bigger drive. At the moment > this is the way hda is setup: > > ~ ---Starting--- EndingStart Number of > ~ # Flags Head Sect Cyl ID Head Sect Cyl SectorSectors > -- - --- --- > ~ 1 0x00110 0x82 14 63 416 63 394002 > ~ 2 0x0001 417 0x83 14 63 1023 39406531444875 > ~ 3 0x80 14 63 1023 0x83 14 63 10233183894025597215 > ~ 4 0x00 14 63 1023 0x05 14 63 102357436155 1163295 > ~ 5 0x00 14 63 1023 0x82 14 63 1023 63 1163232 > > > > > My system boots from hda3 using grub. hda1 and hda5 are swap partitions. > > Whats the best way to get an exact copy of my two Linux systems onto the > new drive? Put the new drive into your PC and use dd to copy the whole 30GB disk to the new one. You can resize partitions afterwards using fdisk or parted. Regards, Mathias -- debian/rules signature.asc Description: OpenPGP digital signature