- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: hard disk clonning!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2005 04:06 PM
тАО08-21-2005 04:06 PM
i want to clone my mail server hard disk in to a new hard disk as like we can do with norton ghost for windows. in linux is there any way to copy entire hardisk in to a new one?
example:
1.i have 20 GB hardisk A(linux installed) with important data.
2.i have one more harddisk B(20 GB). i want to copy each and every file and directory from harddisk A to harddisk B.
3.can i boot from the harddisk B with out installing anything after copying entire disk.?
please advise me the steps to do that.
thanks in advance..
ajay
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2005 06:29 PM
тАО08-21-2005 06:29 PM
Re: hard disk clonning!
You should be able to copy the disk using the dd command (check man dd), but first take a look at the next url: http://www.mondorescue.org this softwarepackage will work like Ghost is doing for Window$.
HTH,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2005 11:35 PM
тАО08-21-2005 11:35 PM
Re: hard disk clonning!
dd is one method but it requires both hard disks to be exactly of same size (including geometry).
* otherwise you can connect the backup harddisk as secondary to the mail server.
* Boot with a rescue CD (you can use RH or SUSE installation CD 1 and enter in to rescue mode)
* create partitions on it in exactly same way as the primary hard disk.
* copy corresponding partitions from primary hard disk to secondary hard disk (remember to use cp with options -avxf which will handle links)
* run lilo/grub boot loader on the secondary hard disk (chroot
now you should be able to boot back with ur backup harddisk.
You can also use any rescue utilities like Ghost has its own linux edition. you can also use HP's RDP product which can do this and much more.
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2005 05:05 AM
тАО08-22-2005 05:05 AM
Re: hard disk clonning!
Mondorescue has good long term possibilities as well.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2005 10:23 AM
тАО08-22-2005 10:23 AM
SolutionFor cloning linux disk , you can use own dd command , thats best for linix and unix.
Example:
-------
If you have filesystems like that :
Device Boot Start End Blocks Id System
/dev/sda1 1 9 72261 83 HPFS/NTFS
/dev/sda2 10 75 530145 82 Linux swap
/dev/sda3 76 467 3148740 fd Linux raid autodetect
/dev/sda4 468 2200 13920322+ 83 Linux
---------------------------------
And if you have a similar 2nd disk connected as sdb (IDE or SCSI).
you can do as follows:
1. Partition second disk sdb identical :
Device Boot Start End Blocks Id System
/dev/sdb1 1 9 72261 83 HPFS/NTFS
/dev/sdb2 10 75 530145 82 Linux swap
/dev/sdb3 76 467 3148740 fd Linux raid autodetect
/dev/sdb4 468 2200 13920322+ 83 Linux
2. Run the dd command:
a. copy MBR.
dd if=/dev/sda of=/dev/sdb bs=446 count=1
b. clone rest partition except swap , no need to copy swap , as its raw.
dd if=/dev/sda1 of=/dev/sdb1
dd if=/dev/sda3 of=/dev/sdb3
------------------------------
This may help you.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2005 10:28 AM
тАО08-22-2005 10:28 AM
Re: hard disk clonning!
Simply dd it and check if it works , Data will transfer not not sure about booting..
1. Create identical partition.
2. dd if=/dev/sda of=/dev/sdb bs=446 count=1 ( MBR copy).
3.
dd if=/dev/sda1 of=/dev/sdb1
skip sda2 ( swap )
dd if=/dev/sda3 of=/dev/sdb3
dd if=/dev/sda4 of=/dev/sdb4.
-------------------------------
Remember it will take time to clone..
HTH.
RajD.
-----
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2005 01:43 AM
тАО08-23-2005 01:43 AM
Re: hard disk clonning!
Have you done the disk cloning in linux , got any luck.
Pls update ..
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2005 05:33 PM
тАО08-23-2005 05:33 PM
Re: hard disk clonning!
I really appreciate your help.
1st of all i followed RAJ&RAJD's solution .that works gr8.
I created identical partitions as like my 1st harddisk using fdisk coammand in my 2nd harddisk .
After that I used dd command to copy MBR and other partitions to the 2nd harddisk.
i booted through 2nd harddisk. It was successfully booted. but what about swap partition? Anyway i created swap partition manually.
Gopi! what are the benefits in the way you suggested instead of using dd command. Here also I need to create the partitions exactly same way, as the primary hardisk isn├в t it? I need a bit clarity.
Next I will try Gopi,peter and stevens suggestions and get back to you guys.
If you help me in this way for a few months I will be an expert in Linux soon. LOL.
Thanks a lot guys.
ajay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2005 05:55 PM
тАО08-23-2005 05:55 PM
Re: hard disk clonning!
The only and main distinctive advantage of my suggestion is the procedure can be used on any type and size of the hard disk. Incase of dd if you are having 40GB source disk then you should have 40GB destination disk (minimum) for replication to work successfully.
In my suggestion you can have 80 GB or 20GB destination disk and it will work properly.
Hope i am clear this time,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2005 06:14 PM
тАО08-23-2005 06:14 PM
Re: hard disk clonning!
I had used ghost for clonning linux disks and was successful. You need to do a disk to disk clone.
Sudeesh