Re: [arch-general] how to migrate installs between hard drives?
I tried a simple 'cp -av' [...] and find that everything is set to root / root if you want to preserve permission, you need to use -p too. Do you know that there exists something called the man pages (the manual pages) for each command on your system ? so if you run 'man cp', you get a list of all the options of cp and how it works. no offense, i am still reading them every day. i think at this point, you really need to read them carefully. otherwise at every new question you will ask you will get back a RTFM.
Re: [arch-general] how to migrate installs between hard drives?
Thanks solsTiCe, no offense taken, but I am one of the people that RTFM. Plus, the -a option gives you -p anyways, so ownership, mode and timestamps are kept by default. This is just a weird coincidence that I can't explain. I've been able to copy a drive before, but never with this much difficulty. On Thu, Jul 30, 2009 at 7:39 AM, solsTiCe d'Hiversolstice.dhi...@gmail.com wrote: I tried a simple 'cp -av' [...] and find that everything is set to root / root if you want to preserve permission, you need to use -p too. Do you know that there exists something called the man pages (the manual pages) for each command on your system ? so if you run 'man cp', you get a list of all the options of cp and how it works. no offense, i am still reading them every day. i think at this point, you really need to read them carefully. otherwise at every new question you will ask you will get back a RTFM.
Re: [arch-general] how to migrate installs between hard drives?
On 07/30/09 at 12:39pm, solsTiCe d'Hiver wrote: I tried a simple 'cp -av' [...] and find that everything is set to root / root if you want to preserve permission, you need to use -p too. Do you know that there exists something called the man pages (the manual pages) for each command on your system ? so if you run 'man cp', you get a list of all the options of cp and how it works. man cp said: -a --archive same as -dR --preserve=all so shouldn't -a work just fine? (-p is --preserve btw) it worked fine for me when i migrated from 32 to 64 bit by reinstalling and restoring /home /etc -- patrick brisbin
Re: [arch-general] how to migrate installs between hard drives?
Just so everyone knows what I'm doing, here is what I'm doing: $ls -al ~ | tail -n 5 -rw-r--r-- 1 myusername users222118 2008-11-28 10:23 untitled.JPG -rwxr-xr-x 1 myusername users 172 2008-03-12 12:14 wmamp3 drwxr-xr-x 4 myusername users 4096 2008-10-05 22:41 workspace -rw-r--r-- 1 myusername users 1041452 2008-11-18 21:29 xine-out.wav -rw-r--r-- 1 myusername users 0 2009-07-21 21:18 zero.trf $cp -a --preserve=all ~ /media/bigdrive/backups/ $ls -al /media/bigdrive/backups | tail -n 5 -rwxrwxrwx 1 root root222118 2008-11-28 10:23 untitled.JPG -rwxrwxrwx 1 root root 172 2008-03-12 12:14 wmamp3 drwxrwxrwx 4 root root 4096 2008-10-05 22:41 workspace -rwxrwxrwx 1 root root 1041452 2008-11-18 21:29 xine-out.wav -rwxrwxrwx 1 root root 0 2009-07-21 21:18 zero.trf I've been using this stuff enough to know what's in the man pages and how to use google. No matter what though, the output is the same whether I'm running it from within my Arch install or from a live cd like ubuntu. On Thu, Jul 30, 2009 at 10:44 AM, Patrick Brisbinpbris...@gmail.com wrote: On 07/30/09 at 12:39pm, solsTiCe d'Hiver wrote: I tried a simple 'cp -av' [...] and find that everything is set to root / root if you want to preserve permission, you need to use -p too. Do you know that there exists something called the man pages (the manual pages) for each command on your system ? so if you run 'man cp', you get a list of all the options of cp and how it works. man cp said: -a --archive same as -dR --preserve=all so shouldn't -a work just fine? (-p is --preserve btw) it worked fine for me when i migrated from 32 to 64 bit by reinstalling and restoring /home /etc -- patrick brisbin
Re: [arch-general] how to migrate installs between hard drives?
On Thu, 2009-07-30 at 11:23 -0300, Will Siddall wrote: Just so everyone knows what I'm doing, here is what I'm doing: $ls -al ~ | tail -n 5 -rw-r--r-- 1 myusername users222118 2008-11-28 10:23 untitled.JPG -rwxr-xr-x 1 myusername users 172 2008-03-12 12:14 wmamp3 drwxr-xr-x 4 myusername users 4096 2008-10-05 22:41 workspace -rw-r--r-- 1 myusername users 1041452 2008-11-18 21:29 xine-out.wav -rw-r--r-- 1 myusername users 0 2009-07-21 21:18 zero.trf $cp -a --preserve=all ~ /media/bigdrive/backups/ $ls -al /media/bigdrive/backups | tail -n 5 -rwxrwxrwx 1 root root222118 2008-11-28 10:23 untitled.JPG -rwxrwxrwx 1 root root 172 2008-03-12 12:14 wmamp3 drwxrwxrwx 4 root root 4096 2008-10-05 22:41 workspace -rwxrwxrwx 1 root root 1041452 2008-11-18 21:29 xine-out.wav -rwxrwxrwx 1 root root 0 2009-07-21 21:18 zero.trf I've been using this stuff enough to know what's in the man pages and how to use google. No matter what though, the output is the same whether I'm running it from within my Arch install or from a live cd like ubuntu. What filesystem is the destination? You're aware of the fact that FAT32 doesn't support permissions and ownership?
Re: [arch-general] how to migrate installs between hard drives?
The hd is ext3, the bigdrive is ntfs On Thu, Jul 30, 2009 at 11:27 AM, Jan de Grootj...@jgc.homeip.net wrote: On Thu, 2009-07-30 at 11:23 -0300, Will Siddall wrote: Just so everyone knows what I'm doing, here is what I'm doing: $ls -al ~ | tail -n 5 -rw-r--r-- 1 myusername users222118 2008-11-28 10:23 untitled.JPG -rwxr-xr-x 1 myusername users 172 2008-03-12 12:14 wmamp3 drwxr-xr-x 4 myusername users 4096 2008-10-05 22:41 workspace -rw-r--r-- 1 myusername users 1041452 2008-11-18 21:29 xine-out.wav -rw-r--r-- 1 myusername users 0 2009-07-21 21:18 zero.trf $cp -a --preserve=all ~ /media/bigdrive/backups/ $ls -al /media/bigdrive/backups | tail -n 5 -rwxrwxrwx 1 root root222118 2008-11-28 10:23 untitled.JPG -rwxrwxrwx 1 root root 172 2008-03-12 12:14 wmamp3 drwxrwxrwx 4 root root 4096 2008-10-05 22:41 workspace -rwxrwxrwx 1 root root 1041452 2008-11-18 21:29 xine-out.wav -rwxrwxrwx 1 root root 0 2009-07-21 21:18 zero.trf I've been using this stuff enough to know what's in the man pages and how to use google. No matter what though, the output is the same whether I'm running it from within my Arch install or from a live cd like ubuntu. What filesystem is the destination? You're aware of the fact that FAT32 doesn't support permissions and ownership?
Re: [arch-general] how to migrate installs between hard drives?
Will Siddall wrote: Just so everyone knows what I'm doing, here is what I'm doing: $ls -al ~ | tail -n 5 -rw-r--r-- 1 myusername users222118 2008-11-28 10:23 untitled.JPG -rwxr-xr-x 1 myusername users 172 2008-03-12 12:14 wmamp3 drwxr-xr-x 4 myusername users 4096 2008-10-05 22:41 workspace -rw-r--r-- 1 myusername users 1041452 2008-11-18 21:29 xine-out.wav -rw-r--r-- 1 myusername users 0 2009-07-21 21:18 zero.trf $cp -a --preserve=all ~ /media/bigdrive/backups/ $ls -al /media/bigdrive/backups | tail -n 5 -rwxrwxrwx 1 root root222118 2008-11-28 10:23 untitled.JPG -rwxrwxrwx 1 root root 172 2008-03-12 12:14 wmamp3 drwxrwxrwx 4 root root 4096 2008-10-05 22:41 workspace -rwxrwxrwx 1 root root 1041452 2008-11-18 21:29 xine-out.wav -rwxrwxrwx 1 root root 0 2009-07-21 21:18 zero.trf I've been using this stuff enough to know what's in the man pages and how to use google. No matter what though, the output is the same whether I'm running it from within my Arch install or from a live cd like ubuntu. Maybe you need to run the cp as root in order to be able to set the owners/groups/modes properly on the new files? i.e.: $ sudo cp -a --preserve=all ~ /media/bigdrive/backups/ HTH, DR
Re: [arch-general] how to migrate installs between hard drives?
I think NTFS is the issue. I don't think that it supports the same permission and ownership capabilities as native *nix file systems. For example, when I mount my windows partition, I have to specify a gid and a umask, else I don't have permissions to access it. From my fstab: /dev/sda2 /mnt/windows ntfs ro,gid=users,umask=0222 0 1 Must the destination be NTFS? DR Will Siddall wrote: The hd is ext3, the bigdrive is ntfs What filesystem is the destination? You're aware of the fact that FAT32 doesn't support permissions and ownership?
Re: [arch-general] how to migrate installs between hard drives?
If the NTFS partition is mandatory, and you're doing a backup, you could just tar everything. It will sure preserve every attribute. Em Thu, 30 Jul 2009 12:08:32 -0300, David Rosenstrauch dar...@darose.net escreveu: I think NTFS is the issue. I don't think that it supports the same permission and ownership capabilities as native *nix file systems. For example, when I mount my windows partition, I have to specify a gid and a umask, else I don't have permissions to access it. From my fstab: /dev/sda2 /mnt/windows ntfs ro,gid=users,umask=0222 0 1 Must the destination be NTFS? DR Will Siddall wrote: The hd is ext3, the bigdrive is ntfs What filesystem is the destination? You're aware of the fact that FAT32 doesn't support permissions and ownership?
Re: [arch-general] how to migrate installs between hard drives?
Adriano de Moura wrote: If the NTFS partition is mandatory, and you're doing a backup, you could just tar everything. It will sure preserve every attribute. Em Thu, 30 Jul 2009 12:08:32 -0300, David Rosenstrauch dar...@darose.net escreveu: I think NTFS is the issue. I don't think that it supports the same permission and ownership capabilities as native *nix file systems. For example, when I mount my windows partition, I have to specify a gid and a umask, else I don't have permissions to access it. From my fstab: /dev/sda2 /mnt/windows ntfs ro,gid=users,umask=0222 0 1 Must the destination be NTFS? DR Will Siddall wrote: The hd is ext3, the bigdrive is ntfs What filesystem is the destination? You're aware of the fact that FAT32 doesn't support permissions and ownership? NTFS certainly doesn't support the same attributes. I'd recommend doing as was suggested (using tar) or some similar archiving method or just use another filesystem for the big drive -- I like to format all of my external drives with a large partition (most of the disk) that is ext3 and a very small partition on the beginning of the disk (20 mb or so) that is fat32 which contains the ext3 filesystem driver for windows machines so that they can install it if necessary to access the other partition on the disk. signature.asc Description: OpenPGP digital signature
Re: [arch-general] how to migrate installs between hard drives?
Why, out of curiosity? dd copy the data of the raw device. i.e the files but also the filesystem data and metadata. which you don't really need or wish to copy to another partition/disk. i said it's the worst, not that it does not work. but you have to take extra step after you have used dd (to resize filesystem and so on)...
Re: [arch-general] how to migrate installs between hard drives?
Here's another update. Using Mike's advice and I tried a simple 'cp -av' on my home directory. After everything was completed, I do a 'ls -al' and find that everything is set to root / root. Modes are intact, but that's it. I've tried this from the Ubuntu livecd and running from my original hard disk. Tonight, I'm going to give it another try and use And Solstice, I understand your point but everything else hasn't worked for me yet. I'm going to do a dd on the whole disk tonight and try a workaround. Thanks again everyone On Wed, Jul 29, 2009 at 7:52 AM, solsTiCe d'Hiversolstice.dhi...@gmail.com wrote: Why, out of curiosity? dd copy the data of the raw device. i.e the files but also the filesystem data and metadata. which you don't really need or wish to copy to another partition/disk. i said it's the worst, not that it does not work. but you have to take extra step after you have used dd (to resize filesystem and so on)...
Re: [arch-general] how to migrate installs between hard drives?
Yes I would dd (or ddrescue or dd_rescue - the rescues give you progress output) the whole drive, not the individual partitions. Then just use Parted Magic Live CD or GParted Live CD and expand the partitions. I've done this many many times without issue.. and usually you don't even have to repair grub afterwards... Another solution is using Clonezilla (use disk to local disk), (which I think might even have a switch to expand at the same time but I've never used that option) and then use Parted Magic Live CD which has Gparted in it to expand. BTW Parted Magic Live CD has Clonezilla as well so it's really all you need (I'm sure all the dd tools are on it too) -Jon - Original Message From: Will Siddall will.sidd...@gmail.com To: General Discusson about Arch Linux arch-general@archlinux.org Sent: Wednesday, July 29, 2009 6:22:08 PM Subject: Re: [arch-general] how to migrate installs between hard drives? And Solstice, I understand your point but everything else hasn't worked for me yet. I'm going to do a dd on the whole disk tonight and try a workaround. Thanks again everyone
Re: [arch-general] how to migrate installs between hard drives?
Hey everyone, After several attempts, I'm still back to trying to resolve this. To explain in more detail, I had a 100G hd with a root partition (with my Arch Install), a data partition and a swap. I managed to run dd on both partitions and in the new hd (200G) apply both. But that only worked partially due to the fact that it copied the ratios of file sizes rather than the actual file size... Copying 80G of data from a 30G partition doesn't quite sit well with me. Next step was to mount the iso images and copy the files. That's what I was in the process of doing of my last message and it worked... until I went to restart and update. What I found that was that my permissions and ownership info was not kept. Because of this, as soon as I went to update anything, the installers would run, but just delete the files (it deleted pacman and yaourt so I had to find a way to compile pacman to install again... until it tried to update all of my bin tools... then everything was gone). Now following all of your suggestions, I tried rsync -arpol and a variety of different other settings but it still doesn't keep the permissions. I tried running tar on the partition, still not working. Does anyone have any other suggestions or know why I'm having this problem? I'm going to try to wipe out the new hard drive and run dd on the whole 100g disk and reapply it to the 200G disk. And by the way, I'm running a ubuntu livecd to run these processes. Thanks, Will On Mon, Jul 27, 2009 at 1:10 PM, David Rosenstrauchdar...@darose.net wrote: solsTiCe d'Hiver wrote: if think dd is the worst way to copy data between disk or partition i used to copy data from one partition to another the old way by using tar and a pipe tar -C /myfirst partition -csSf -|tar -C /mysecondpartition -xSsp rsync is not bad too. I also prefer to handle this type of things using tar, though without the pipe. I generally will generate a full tar archive of the original partition, then copy it over to the other disk and either fully untar it, or untar portions of it. The reason I go for the full archive is because I like to keep the tarball around afterwards in case I need to repeat the process, need to untar additional portions of it, etc. DR
Re: [arch-general] how to migrate installs between hard drives?
On Tue, Jul 28, 2009 at 22:20, Will Siddallwill.sidd...@gmail.com wrote: Hey everyone, After several attempts, I'm still back to trying to resolve this. To explain in more detail, I had a 100G hd with a root partition (with my Arch Install), a data partition and a swap. I managed to run dd on both partitions and in the new hd (200G) apply both. But that only worked partially due to the fact that it copied the ratios of file sizes rather than the actual file size... Copying 80G of data from a 30G partition doesn't quite sit well with me. Next step was to mount the iso images and copy the files. That's what I was in the process of doing of my last message and it worked... until I went to restart and update. What I found that was that my permissions and ownership info was not kept. Because of this, as soon as I went to update anything, the installers would run, but just delete the files (it deleted pacman and yaourt so I had to find a way to compile pacman to install again... until it tried to update all of my bin tools... then everything was gone). Now following all of your suggestions, I tried rsync -arpol and a variety of different other settings but it still doesn't keep the permissions. I tried running tar on the partition, still not working. Does anyone have any other suggestions or know why I'm having this problem? I'm going to try to wipe out the new hard drive and run dd on the whole 100g disk and reapply it to the 200G disk. And by the way, I'm running a ubuntu livecd to run these processes. Did you try the tar method? Also, when you copy files, did you use cp -a? You can also try partimage which makes copies of partitions. Doing full byte-to-byte copy of HDD and then doing partition/fs resize or creating an additional partition in empty space is my preferred method. -- Roman Kyrylych (Роман Кирилич)
Re: [arch-general] how to migrate installs between hard drives?
Roman, I did try the tar method with the same results. The only method I could see working would be the dd, but even looking at the mounted iso afterwards, permissions were not set. I should be seeing at least ownership by my username, or 'user #1000' but after copying (and yes, with 'cp -a') it still returns root. Will On Tue, Jul 28, 2009 at 5:15 PM, Roman Kyrylychroman.kyryl...@gmail.com wrote: On Tue, Jul 28, 2009 at 22:20, Will Siddallwill.sidd...@gmail.com wrote: Hey everyone, After several attempts, I'm still back to trying to resolve this. To explain in more detail, I had a 100G hd with a root partition (with my Arch Install), a data partition and a swap. I managed to run dd on both partitions and in the new hd (200G) apply both. But that only worked partially due to the fact that it copied the ratios of file sizes rather than the actual file size... Copying 80G of data from a 30G partition doesn't quite sit well with me. Next step was to mount the iso images and copy the files. That's what I was in the process of doing of my last message and it worked... until I went to restart and update. What I found that was that my permissions and ownership info was not kept. Because of this, as soon as I went to update anything, the installers would run, but just delete the files (it deleted pacman and yaourt so I had to find a way to compile pacman to install again... until it tried to update all of my bin tools... then everything was gone). Now following all of your suggestions, I tried rsync -arpol and a variety of different other settings but it still doesn't keep the permissions. I tried running tar on the partition, still not working. Does anyone have any other suggestions or know why I'm having this problem? I'm going to try to wipe out the new hard drive and run dd on the whole 100g disk and reapply it to the 200G disk. And by the way, I'm running a ubuntu livecd to run these processes. Did you try the tar method? Also, when you copy files, did you use cp -a? You can also try partimage which makes copies of partitions. Doing full byte-to-byte copy of HDD and then doing partition/fs resize or creating an additional partition in empty space is my preferred method. -- Roman Kyrylych (Роман Кирилич)
Re: [arch-general] how to migrate installs between hard drives?
What's the problem changing back the permitions? Best, Jozsef -- Fear God, and give Him glory, because the hour of His judgment has come; worship Him who made the heaven and the earth and sea and springs of waters. Revelation 14:7 On Wed, Jul 29, 2009 at 12:25 AM, Will Siddall will.sidd...@gmail.comwrote: Roman, I did try the tar method with the same results. The only method I could see working would be the dd, but even looking at the mounted iso afterwards, permissions were not set. I should be seeing at least ownership by my username, or 'user #1000' but after copying (and yes, with 'cp -a') it still returns root. Will On Tue, Jul 28, 2009 at 5:15 PM, Roman Kyrylychroman.kyryl...@gmail.com wrote: On Tue, Jul 28, 2009 at 22:20, Will Siddallwill.sidd...@gmail.com wrote: Hey everyone, After several attempts, I'm still back to trying to resolve this. To explain in more detail, I had a 100G hd with a root partition (with my Arch Install), a data partition and a swap. I managed to run dd on both partitions and in the new hd (200G) apply both. But that only worked partially due to the fact that it copied the ratios of file sizes rather than the actual file size... Copying 80G of data from a 30G partition doesn't quite sit well with me. Next step was to mount the iso images and copy the files. That's what I was in the process of doing of my last message and it worked... until I went to restart and update. What I found that was that my permissions and ownership info was not kept. Because of this, as soon as I went to update anything, the installers would run, but just delete the files (it deleted pacman and yaourt so I had to find a way to compile pacman to install again... until it tried to update all of my bin tools... then everything was gone). Now following all of your suggestions, I tried rsync -arpol and a variety of different other settings but it still doesn't keep the permissions. I tried running tar on the partition, still not working. Does anyone have any other suggestions or know why I'm having this problem? I'm going to try to wipe out the new hard drive and run dd on the whole 100g disk and reapply it to the 200G disk. And by the way, I'm running a ubuntu livecd to run these processes. Did you try the tar method? Also, when you copy files, did you use cp -a? You can also try partimage which makes copies of partitions. Doing full byte-to-byte copy of HDD and then doing partition/fs resize or creating an additional partition in empty space is my preferred method. -- Roman Kyrylych (Роман Кирилич)
Re: [arch-general] how to migrate installs between hard drives?
On Wed, Jul 29, 2009 at 6:25 AM, Will Siddallwill.sidd...@gmail.com wrote: Roman, I did try the tar method with the same results. The only method I could see working would be the dd, but even looking at the mounted iso afterwards, permissions were not set. I should be seeing at least ownership by my username, or 'user #1000' but after copying (and yes, with 'cp -a') it still returns root. Will This sounds weird. I have used cp -av to copy entire installs from partition to partition and from disk to disk many times in the past and permissions were always maintained. You mentioned you are using a ubuntu live cd to do this. Is there any chance your destination disk is being mounted with options that would interfere with permissions ? Maybe try the Arch live cd? Mike
Re: [arch-general] how to migrate installs between hard drives?
if think dd is the worst way to copy data between disk or partition i used to copy data from one partition to another the old way by using tar and a pipe tar -C /myfirst partition -csSf -|tar -C /mysecondpartition -xSsp rsync is not bad too.
Re: [arch-general] how to migrate installs between hard drives?
Excerpts from solsTiCe d'Hiver's message of Mon Jul 27 10:16:21 -0400 2009: if think dd is the worst way to copy data between disk or partition Why, out of curiosity? -- Andrei Thorp, Developer: Xandros Corp. (http://www.xandros.com)
Re: [arch-general] how to migrate installs between hard drives?
solsTiCe d'Hiver wrote: if think dd is the worst way to copy data between disk or partition i used to copy data from one partition to another the old way by using tar and a pipe tar -C /myfirst partition -csSf -|tar -C /mysecondpartition -xSsp rsync is not bad too. I also prefer to handle this type of things using tar, though without the pipe. I generally will generate a full tar archive of the original partition, then copy it over to the other disk and either fully untar it, or untar portions of it. The reason I go for the full archive is because I like to keep the tarball around afterwards in case I need to repeat the process, need to untar additional portions of it, etc. DR
[arch-general] how to migrate installs between hard drives?
I know this isn't particularly an arch question, but I know Arch people are better off to ask then most. I'm in the process of upgrading my hard drive in my laptop but with the amounts of customizations I've done to my setup, I don't want to have to set it all up again. I know about running dd to copy the partition information, but the problem with that is that it also copies that partition information over. So, if I copy my root partition that started as a 40G partition with 90% used and now I have a 60G parition, the used portion will be kept at 90% so, it'll show something like 50G of data... which doesn't make sense. I've also just tried copying the partitions to an external, mount the iso's in a livecd session then copy the data over, but for some reason after I modified the menu.lst and fstab files to match my new setup and then restart, the computer doesn't boot. Is there something I'm missing in the second instance that I didn't change a file that should be changed? Is there a better way of copying the partitions so I don't run into this problem? Thanks, Will
Re: [arch-general] how to migrate installs between hard drives?
On Sun, Jul 26, 2009 at 1:06 PM, Will Siddallwill.sidd...@gmail.com wrote: I know this isn't particularly an arch question, but I know Arch people are better off to ask then most. I'm in the process of upgrading my hard drive in my laptop but with the amounts of customizations I've done to my setup, I don't want to have to set it all up again. I know about running dd to copy the partition information, but the problem with that is that it also copies that partition information over. So, if I copy my root partition that started as a 40G partition with 90% used and now I have a 60G parition, the used portion will be kept at 90% so, it'll show something like 50G of data... which doesn't make sense. What about a dd followed by using parted/gparted or whatever to resize things as necessary? They have a good LiveCD too that you should be able to use to get things copied and then resized. I think gparted even has built in support for copying partitions; not sure if it can do it across drives. -Dan
Re: [arch-general] how to migrate installs between hard drives?
That's what I wanted to do, but since I'm working in a laptop, I can only have one drive in at a time, which is making things really labour intensive. 1 question I do have is if I dd the entire disk (parition table and all) then reapply to a larger disk, would that keep everything intact or am I gonna run into the same problem? On Sun, Jul 26, 2009 at 6:12 PM, Dan McGeedpmc...@gmail.com wrote: On Sun, Jul 26, 2009 at 1:06 PM, Will Siddallwill.sidd...@gmail.com wrote: I know this isn't particularly an arch question, but I know Arch people are better off to ask then most. I'm in the process of upgrading my hard drive in my laptop but with the amounts of customizations I've done to my setup, I don't want to have to set it all up again. I know about running dd to copy the partition information, but the problem with that is that it also copies that partition information over. So, if I copy my root partition that started as a 40G partition with 90% used and now I have a 60G parition, the used portion will be kept at 90% so, it'll show something like 50G of data... which doesn't make sense. What about a dd followed by using parted/gparted or whatever to resize things as necessary? They have a good LiveCD too that you should be able to use to get things copied and then resized. I think gparted even has built in support for copying partitions; not sure if it can do it across drives. -Dan
Re: [arch-general] how to migrate installs between hard drives?
I think clonezilla could help you here. On Sun, Jul 26, 2009 at 1:12 PM, Dan McGee dpmc...@gmail.com wrote: On Sun, Jul 26, 2009 at 1:06 PM, Will Siddallwill.sidd...@gmail.com wrote: I know this isn't particularly an arch question, but I know Arch people are better off to ask then most. I'm in the process of upgrading my hard drive in my laptop but with the amounts of customizations I've done to my setup, I don't want to have to set it all up again. I know about running dd to copy the partition information, but the problem with that is that it also copies that partition information over. So, if I copy my root partition that started as a 40G partition with 90% used and now I have a 60G parition, the used portion will be kept at 90% so, it'll show something like 50G of data... which doesn't make sense. What about a dd followed by using parted/gparted or whatever to resize things as necessary? They have a good LiveCD too that you should be able to use to get things copied and then resized. I think gparted even has built in support for copying partitions; not sure if it can do it across drives. -Dan
Re: [arch-general] how to migrate installs between hard drives?
Another option is using rsync to copy all files to the other disk. This can be done with a temporary server storage if necessary. If you use the -a switch, it keeps permissions intact and works perfectly for Linux, not for Windows, but who uses that anyway? ;) Greetings! Erwin On Sunday 26 July 2009, Nergar wrote: I think clonezilla could help you here. On Sun, Jul 26, 2009 at 1:12 PM, Dan McGee dpmc...@gmail.com wrote: On Sun, Jul 26, 2009 at 1:06 PM, Will Siddallwill.sidd...@gmail.com wrote: I know this isn't particularly an arch question, but I know Arch people are better off to ask then most. I'm in the process of upgrading my hard drive in my laptop but with the amounts of customizations I've done to my setup, I don't want to have to set it all up again. I know about running dd to copy the partition information, but the problem with that is that it also copies that partition information over. So, if I copy my root partition that started as a 40G partition with 90% used and now I have a 60G parition, the used portion will be kept at 90% so, it'll show something like 50G of data... which doesn't make sense. What about a dd followed by using parted/gparted or whatever to resize things as necessary? They have a good LiveCD too that you should be able to use to get things copied and then resized. I think gparted even has built in support for copying partitions; not sure if it can do it across drives. -Dan
Re: [arch-general] how to migrate installs between hard drives?
On Sun, Jul 26, 2009 at 2:17 PM, Will Siddall will.sidd...@gmail.comwrote: 1 question I do have is if I dd the entire disk (parition table and all) then reapply to a larger disk, would that keep everything intact or am I gonna run into the same problem? Okay: A - The disk that already has an installation but is smaller B - The disk that that you want to put the installation on if you dd A onto B, B will get the partition structure from A and appear smaller. However, you can edit the partition sizes using gparted like Dan said, and make the partitions fill up the whole B disk. -- Alexander Lam
Re: [arch-general] how to migrate installs between hard drives?
Thanks everyone for their suggestions. I'm really tempted to give each of these methods a try. For the time being, I did get it finished. Without having to take all the hardware apart, I just made a clean base install of arch onto the disk and use the livecd, mounted the iso and copied everything over. I'm up and running, but whenever this happens again, I'll be sure to give your suggestions a try (and at least it's documented). Thanks so much. Will On Sun, Jul 26, 2009 at 4:58 PM, Rafa Grimanrafagri...@gmail.com wrote: Hi :) On Sunday 26 July 2009 20:34:12 Van de Velde Erwin wrote: Another option is using rsync to copy all files to the other disk. This can be done with a temporary server storage if necessary. If you use the -a switch, it keeps permissions intact and works perfectly for Linux, not for Windows, but who uses that anyway? ;) I agree. I use rsync to migrate between drives. Haven't had any problems yet. As Erwin wrote, you can use the -a switch and also the -v and --progress. I do this booting with a LiveCD/USB image - rsync to the temp server/system - rsync back. Once you rsync back to your laptop with the new drive. Boot with the LiveCD/USB image and check things like fstab or /boot/grub/menu.lst because the ID will have changed. Maybe you have to boot a couple of times with the LiveCD/USB image because you forgot to edit this or that file. HTH Rafa On Sunday 26 July 2009, Nergar wrote: I think clonezilla could help you here. On Sun, Jul 26, 2009 at 1:12 PM, Dan McGee dpmc...@gmail.com wrote: On Sun, Jul 26, 2009 at 1:06 PM, Will Siddallwill.sidd...@gmail.com wrote: I know this isn't particularly an arch question, but I know Arch people are better off to ask then most. I'm in the process of upgrading my hard drive in my laptop but with the amounts of customizations I've done to my setup, I don't want to have to set it all up again. I know about running dd to copy the partition information, but the problem with that is that it also copies that partition information over. So, if I copy my root partition that started as a 40G partition with 90% used and now I have a 60G parition, the used portion will be kept at 90% so, it'll show something like 50G of data... which doesn't make sense. What about a dd followed by using parted/gparted or whatever to resize things as necessary? They have a good LiveCD too that you should be able to use to get things copied and then resized. I think gparted even has built in support for copying partitions; not sure if it can do it across drives. -Dan -- We cannot treat computers as Humans. Computers need love. rgri...@skype.com rgri...@jabberes.org
Re: [arch-general] how to migrate installs between hard drives?
Will Siddall 提到: Is there something I'm missing in the second instance that I didn't change a file that should be changed? Is there a better way of copying the partitions so I don't run into this problem? Thanks, Will Not only dd, you could also simply use archive mode of rsync or cp. I've done this before, and the system I'm using now is migrated from a 250g to 500g. At that time I used rsync and skipped directory /dev, /proc and /sys. After a successful re-setup of grub, the system boots like a charm. regards, b4283.
Re: [arch-general] how to migrate installs between hard drives?
On Sun, 26 Jul 2009 14:34:35 -0400 Alexander Lam lambchop...@gmail.com wrote: ... A - The disk that already has an installation but is smaller B - The disk that that you want to put the installation on if you dd A onto B, B will get the partition structure from A and appear smaller. However, you can edit the partition sizes using gparted like Dan said, and make the partitions fill up the whole B disk. You can also dd a single partition from A onto B, then run fdisk, DELETE the partition and recreate it with bigger size, then run resize2fs to extend the file system to fill the whole new partition. (Of course resize2fs works only with ext2/ext3/ext4). Cheers, Sergey