Re: [SLUG] Copying HDD
Simply create a new partition and copy the contents. Use cp -r / path /mounted/new/path/ If you have to use dd then create a partition exactly the same size then gparted can grow it afterwards Ken Foskey On the move On 20/01/2010, at 2:00 PM, Mike Andy beatbreake...@gmail.com wrote: I've been thus far unable to do to - maybe you can explain how. for example, if i do a dd from a 120Gb to a 150Gb and then enter into something like gparted or fdisk there seems to be no way i can simply expand the disk beyond the original 120Gb boundaries. If there was unformatted/unpartitioned space within that 120Gb then things can be moved around there but not outside the original disk boundaries. On Tue, Jan 19, 2010 at 10:38 AM, Jake Anderson ya...@vapourforge.com wrote: Mike Andy wrote: from my experience when you use dd you cannot resize after that because it's made an exact bit by bit clone of that hard drive which you then can resize with the numerous partition resizing tools out there. if you're concerned about how much you're downloading use parted magic, much smaller than ubuntu and includes both gparted and clonezilla all in one -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Copying HDD
2010/1/20 Ken Foskey kfos...@tpg.com.au: Simply create a new partition and copy the contents. Use cp -r /path /mounted/new/path/ Preferably cp -a - which should preserve more of the original file's attributes. --Amos -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Copying HDD
I've been thus far unable to do to - maybe you can explain how. for example, if i do a dd from a 120Gb to a 150Gb and then enter into something like gparted or fdisk there seems to be no way i can simply expand the disk beyond the original 120Gb boundaries. If there was unformatted/unpartitioned space within that 120Gb then things can be moved around there but not outside the original disk boundaries. On Tue, Jan 19, 2010 at 10:38 AM, Jake Anderson ya...@vapourforge.com wrote: Mike Andy wrote: from my experience when you use dd you cannot resize after that because it's made an exact bit by bit clone of that hard drive which you then can resize with the numerous partition resizing tools out there. if you're concerned about how much you're downloading use parted magic, much smaller than ubuntu and includes both gparted and clonezilla all in one -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Copying HDD
Use rysnc -a or cp -a dd just brings in issues you don't need to deal with. On Wed, Jan 20, 2010 at 02:00:49PM +1100, Mike Andy wrote: I've been thus far unable to do to - maybe you can explain how. for example, if i do a dd from a 120Gb to a 150Gb and then enter into something like gparted or fdisk there seems to be no way i can simply expand the disk beyond the original 120Gb boundaries. If there was unformatted/unpartitioned space within that 120Gb then things can be moved around there but not outside the original disk boundaries. On Tue, Jan 19, 2010 at 10:38 AM, Jake Anderson ya...@vapourforge.com wrote: Mike Andy wrote: from my experience when you use dd you cannot resize after that because it's made an exact bit by bit clone of that hard drive which you then can resize with the numerous partition resizing tools out there. if you're concerned about how much you're downloading use parted magic, much smaller than ubuntu and includes both gparted and clonezilla all in one -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Copying HDD
Henare Degan wrote: On Tue, Jan 19, 2010 at 01:34, Heracles herac...@iprimus.com.au wrote: Hi All, I have a friend's HDD which has a Slackware server install. It is essential that It stay intact but I need to clone it to another drive. On the original drive the installer fixed the partition at 4 GB but I wish to let it have a bit more space - say 20 GB. Do I need to use dd or is there a simple gui way. I need to copy ALL the files across. Thanks Heracles I think you want Clonezilla: http://clonezilla.org/ Cheers, Henare personally I would use DD to copy then gparted to expand, but I believe that gparted can do the whole copy and resize thing these days in a nice pointy + clicky way. gparted livecd is ~140mb last I looked I think. I usually boot an ubuntu livecd and then install gparted onto the live image. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Copying HDD
On Tuesday 19 January 2010 09:00:04 slug-requ...@slug.org.au wrote: I have a friend's HDD which has a Slackware server install. It is essential that It stay intact but I need to clone it to another drive. On the original drive the installer fixed the partition at 4 GB but I wish to let it have a bit more space - say 20 GB. Do I need to use dd or is there a simple gui way. I need to copy ALL the files across. Your question reveals helpme-howto rather than helpme-bestway. Here is a recipe, change it to suit: install the second disk in the machine, partition and format it. boot the machine from knoppix (or any live CD) (I'm using knoppix as an eg) and as root mkdir /mnt/a mkdir /mnt/b mount /dev/sda1 /mnt/a mount /dev/sdb1 /mnt/b rsync -av /mnt/a/ /mnt/b shutdown and remove the original disk from the machine shuffle connectors so this is the first ATA disk and boot again mkdir /mnt/a mount /dev/sda1 /mnt/a reinstall grub grub-install --root-directory=/mnt/a /dev/sda you might need --recheck too) boot and run from your new disk. This is not a magic spell but rather systematic predictable steps, understand them and you will never need to learn them. The reason for coping a not-live system is that your live disk system populates /proc /sys maybe /dev and you do not want to copy those dynamic entries. Also note the /s in the rsync arguments, they are important James -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Copying HDD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, I have a friend's HDD which has a Slackware server install. It is essential that It stay intact but I need to clone it to another drive. On the original drive the installer fixed the partition at 4 GB but I wish to let it have a bit more space - say 20 GB. Do I need to use dd or is there a simple gui way. I need to copy ALL the files across. Thanks Heracles -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAktUVVEACgkQybPcBAs9CE830gCfc98ccRjhKwDARYrGvR35AoVK iE4AoL9ZV6eby94Ps2C0OT0AcuIve1Br =gdmg -END PGP SIGNATURE- -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Copying HDD
On Tue, Jan 19, 2010 at 01:34, Heracles herac...@iprimus.com.au wrote: Hi All, I have a friend's HDD which has a Slackware server install. It is essential that It stay intact but I need to clone it to another drive. On the original drive the installer fixed the partition at 4 GB but I wish to let it have a bit more space - say 20 GB. Do I need to use dd or is there a simple gui way. I need to copy ALL the files across. Thanks Heracles I think you want Clonezilla: http://clonezilla.org/ Cheers, Henare -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Copying HDD
On 18/01/2010, at 11:34 PM, Heracles wrote: Do I need to use dd or is there a simple gui way. I need to copy ALL the files across. cp (or rsync, depending on your circumstances) would work between filesystems. Just check the manpage for switches to preserve the file attributes. -Chris.-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html