[opensuse] Ideas on disk cloning?
I usually use dd and ssh to clone disks from one machine to another, but that only works when the target is equally big or larger than the source. Is there any easy way to do it from a 13% filled 60GB disk to a remote disk that's only 16GB? Obviously dd won't work... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Norrbring wrote:
I usually use dd and ssh to clone disks from one machine to another, but that only works when the target is equally big or larger than the source.
Is there any easy way to do it from a 13% filled 60GB disk to a remote disk that's only 16GB?
As you're really just copying the filesystem, maybe rsync or tar. I use tar'ed filesystem images for installing new machines. /Per Jessen, Zürich -- http://www.spamchek.com/ - your spam is our business. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 07/03/2007 06:15 AM somebody named Per Jessen wrote:
Anders Norrbring wrote:
I usually use dd and ssh to clone disks from one machine to another, but that only works when the target is equally big or larger than the source.
Is there any easy way to do it from a 13% filled 60GB disk to a remote disk that's only 16GB?
As you're really just copying the filesystem, maybe rsync or tar. I use tar'ed filesystem images for installing new machines.
/Per Jessen, Zürich
The "tar" command isn't good to use for cloning, or even most backups. It skips so-called "hidden" files, those whose filenames begin with a period. Somebody should add in an option to tar so these are included... would be a major improvement. This info should at least be included in the tar manpage. -- Abstinence-Only sex education is a little like Just-Hold-It potty training. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
ken wrote:
The "tar" command isn't good to use for cloning, or even most backups. It skips so-called "hidden" files, those whose filenames begin with a period.
Tar works just fine as long as you use it correctly. It has no problems with .files Instead of #tar -cvf /dev/st0 * use #tar -cvf /dev/st0 . Regards Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
ken wrote:
The "tar" command isn't good to use for cloning, or even most backups. It skips so-called "hidden" files, those whose filenames begin with a period.
You're joking, right? Which version of tar are you using? -- Bob Kline http://www.rksystems.com mailto:bkline@rksystems.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Jul 03, 07 08:21:45 -0400, ken wrote:
The "tar" command isn't good to use for cloning, or even most backups. It skips so-called "hidden" files, those whose filenames begin with a period.
tar includes hidden files.
Somebody should add in an option to tar so these are included... would be a major improvement. This info should at least be included in the tar manpage.
This needs no option or docu, it is expected default behaviour. But: tar cvf archive.tar $HOME/* won't include $HOME/.profile, because it does not match $home/* tar cvf archive.tar $home will include $HOME/.profile, Was this your catch? cheers, Jw. -- o \ Juergen Weigert paint it green! __/ _=======.=======_ <V> | jw@suse.de wide open suse_/ _---|____________\/ \ | 0911 74053-508 (tm)__/ (____/ /\ (/) | __________________________/ _/ \_ vim:set sw=2 wm=8 SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) "Oral agreements are worth about as much as the paper they are written on." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 03 July 2007 12:06, Anders Norrbring wrote:
I usually use dd and ssh to clone disks from one machine to another, but that only works when the target is equally big or larger than the source.
Is there any easy way to do it from a 13% filled 60GB disk to a remote disk that's only 16GB?
Obviously dd won't work...
You can use: dd if=/dev/sda1 | gzip > some_file.img.gz This compress the image on the fly. Best regards, Christopher -- Christopher Stender, R&D Team Mobile Devices SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Christopher Stender skrev:
On Tuesday 03 July 2007 12:06, Anders Norrbring wrote:
I usually use dd and ssh to clone disks from one machine to another, but that only works when the target is equally big or larger than the source.
Is there any easy way to do it from a 13% filled 60GB disk to a remote disk that's only 16GB?
Obviously dd won't work...
You can use: dd if=/dev/sda1 | gzip > some_file.img.gz
This compress the image on the fly.
True, but when extracted it will still be a bit-by-bit copy of the source disk and will occupy the original space. Partition table would be wrong etc. What I'm looking at is to move fully operational system to another machine with small system disk. Anders. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Norrbring wrote:
What I'm looking at is to move fully operational system to another machine with small system disk.
Does that also mean a "fully operational system" from a "fully _operating_" system? Coz' that makes it a little different. /Per Jessen, Zürich -- http://www.spamchek.com/ - your spam is our business. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen skrev:
Anders Norrbring wrote:
What I'm looking at is to move fully operational system to another machine with small system disk.
Does that also mean a "fully operational system" from a "fully _operating_" system? Coz' that makes it a little different.
Yes it does.. ;) I know there'll be some adjustements, but operational target, yes. Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Christopher Stender wrote:
On Tuesday 03 July 2007 12:06, Anders Norrbring wrote:
I usually use dd and ssh to clone disks from one machine to another, but that only works when the target is equally big or larger than the source.
Is there any easy way to do it from a 13% filled 60GB disk to a remote disk that's only 16GB?
Obviously dd won't work...
You can use: dd if=/dev/sda1 | gzip > some_file.img.gz
This compress the image on the fly.
And then, when you try to unzip it on a disk that's too small??? Whether you zip it or not, you can't use an image to move to a smaller disk. -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 03 July 2007 13:33, James Knott wrote:
Christopher Stender wrote:
On Tuesday 03 July 2007 12:06, Anders Norrbring wrote:
I usually use dd and ssh to clone disks from one machine to another, but that only works when the target is equally big or larger than the source.
Is there any easy way to do it from a 13% filled 60GB disk to a remote disk that's only 16GB?
Obviously dd won't work...
You can use: dd if=/dev/sda1 | gzip > some_file.img.gz
This compress the image on the fly.
And then, when you try to unzip it on a disk that's too small???
Whether you zip it or not, you can't use an image to move to a smaller disk.
Well, I assumed that he wanted to do a backup only. Of course you can not unzip a compressed disc image which is bigger than your hdd. Best regards, Christopher -- Christopher Stender, R&D Team Mobile Devices SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Christopher Stender skrev:
On Tuesday 03 July 2007 13:33, James Knott wrote:
Christopher Stender wrote:
I usually use dd and ssh to clone disks from one machine to another, but that only works when the target is equally big or larger than the source.
Is there any easy way to do it from a 13% filled 60GB disk to a remote disk that's only 16GB?
Obviously dd won't work... You can use:
On Tuesday 03 July 2007 12:06, Anders Norrbring wrote: dd if=/dev/sda1 | gzip > some_file.img.gz
This compress the image on the fly. And then, when you try to unzip it on a disk that's too small???
Whether you zip it or not, you can't use an image to move to a smaller disk.
Well, I assumed that he wanted to do a backup only. Of course you can not unzip a compressed disc image which is bigger than your hdd.
Exactly... What I'm looking for is to move a working system to another computer with smaller disk... Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Norrbring wrote:
Christopher Stender skrev:
On Tuesday 03 July 2007 13:33, James Knott wrote:
Christopher Stender wrote:
I usually use dd and ssh to clone disks from one machine to another, but that only works when the target is equally big or larger than the source.
Is there any easy way to do it from a 13% filled 60GB disk to a remote disk that's only 16GB?
Obviously dd won't work... You can use:
On Tuesday 03 July 2007 12:06, Anders Norrbring wrote: dd if=/dev/sda1 | gzip > some_file.img.gz
This compress the image on the fly. And then, when you try to unzip it on a disk that's too small???
Whether you zip it or not, you can't use an image to move to a smaller disk.
Well, I assumed that he wanted to do a backup only. Of course you can not unzip a compressed disc image which is bigger than your hdd.
Exactly... What I'm looking for is to move a working system to another computer with smaller disk...
Yes, but just so no-one forgets, if I remember correctly, the used disk space on the current large HDD is smaller than the avaioable size of the new HDD? Hylton -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hylton Conacher (ZR1HPC) skrev:
Anders Norrbring wrote:
Christopher Stender skrev:
On Tuesday 03 July 2007 13:33, James Knott wrote:
Christopher Stender wrote:
I usually use dd and ssh to clone disks from one machine to another, but that only works when the target is equally big or larger than the source.
Is there any easy way to do it from a 13% filled 60GB disk to a remote disk that's only 16GB?
Obviously dd won't work... You can use:
On Tuesday 03 July 2007 12:06, Anders Norrbring wrote: dd if=/dev/sda1 | gzip > some_file.img.gz
This compress the image on the fly. And then, when you try to unzip it on a disk that's too small???
Whether you zip it or not, you can't use an image to move to a smaller disk. Well, I assumed that he wanted to do a backup only. Of course you can not unzip a compressed disc image which is bigger than your hdd.
Exactly... What I'm looking for is to move a working system to another computer with smaller disk...
Yes, but just so no-one forgets, if I remember correctly, the used disk space on the current large HDD is smaller than the avaioable size of the new HDD?
Exactly. The used space on the source drive will occupy ca half of the new, SMALLER, drive. Anyway, I did a couple of attempt with piping a tar archive of the file system, but it resulted in a non-bootable system that lacked quite a few things, like /proc for example. Finally I tested Acronis disk copy and it worked perfectly fine, resizing the partition on the fly when recreating on the new system. Just reconfig the bootloader from IDE to SCSI disks and I was up and running. Anders. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Norrbring wrote:
Anyway, I did a couple of attempt with piping a tar archive of the file system, but it resulted in a non-bootable system that lacked quite a few things, like /proc for example.
Yes, virtual filesystems are not handled by tar. You just need to create the mount points. /Per Jessen, Zürich -- http://www.spamchek.com/ - your spam is our business. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Norrbring wrote:
I usually use dd and ssh to clone disks from one machine to another, but that only works when the target is equally big or larger than the source.
Is there any easy way to do it from a 13% filled 60GB disk to a remote disk that's only 16GB?
Obviously dd won't work... Any method that can copy all the files, such as cp -a, tar, rsync etc. should be able to do it.
-- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (9)
-
Anders Norrbring
-
Bob Kline
-
Christopher Stender
-
Hylton Conacher (ZR1HPC)
-
James Knott
-
Juergen Weigert
-
ken
-
Mark Hounschell
-
Per Jessen