LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2009, 07:44 PM   #1
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Rep: Reputation: 24
Easy way to clone my hard drive


On my Mac, I am able to create a bootable clone of my hard drive using an application called Superduper. Same goes for my PC as well. I use Norton Ghost to clone my PC drive without having to boot from a CD to do it.

Is there a way to do this in Ubuntu so that if anything happens to my main drive, I can quickly boot up from an external cloned USB drive? Right now I am cloning my drive using a Clonezilla CD which I find kind of cumbersome after using the above methods for Mac and PC.

I am running Ubuntu 9.04.
 
Old 10-05-2009, 08:27 PM   #2
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Wink

Quote:
Originally Posted by rmcellig View Post
On my Mac, I am able to create a bootable clone of my hard drive using an application called Superduper. Same goes for my PC as well. I use Norton Ghost to clone my PC drive without having to boot from a CD to do it.

Is there a way to do this in Ubuntu so that if anything happens to my main drive, I can quickly boot up from an external cloned USB drive? Right now I am cloning my drive using a Clonezilla CD which I find kind of cumbersome after using the above methods for Mac and PC.

I am running Ubuntu 9.04.
Clonezilla is simple as norton ghost .. Online tutorial will help you dude
 
Old 10-06-2009, 08:15 AM   #3
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Original Poster
Rep: Reputation: 24
I booted from the Clonezilla CD and tried to clone my Ubuntu drive to my external USB partition. I was successful but I can't seem to mount the USB partition or even boot from it. What should I do. Here is a screenshot. SDB2 is the one I am trying to mount on my desktop and also the partition I would like to be able to boot from in case I ever need to. Is it because the mount point is the same as my Ubuntu main drive? If so, what should I set the mount point to?

Last edited by rmcellig; 11-10-2010 at 02:06 PM.
 
Old 10-06-2009, 08:35 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I suggest doing this in a terminal. You'll need to use "su" to become root---or if using Ubuntu, put "sudo" in front of all the commands.

First, run "fdisk -l" and "mount" and post the results here. Assuming that the USB (sdb2) is not already mounted, then try mounting and viewing it like so:

mkdir mypartition
mount /dev/sdb2 mypartition
cd mypartition
ls

Note that filesystems** can be mounted anywhere on the main tree, and they can be mounted in more than one place. You can also mount 2 or more at the same mount point. (The system will see only the last one mounted.)

**You do not mount partitions---you mount the filesystem contained on a partition. If the partition is not formatted, it cannot be mounted.
 
Old 10-06-2009, 08:41 AM   #5
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Original Poster
Rep: Reputation: 24
Here is the screenshot you requested.

Last edited by rmcellig; 11-10-2010 at 02:06 PM.
 
Old 10-06-2009, 08:54 AM   #6
freelinuxtutorials
Member
 
Registered: Oct 2009
Posts: 70

Rep: Reputation: 21
you can try G4u to clone your hard drive. you can try the steps here
clone via g4u
 
Old 10-06-2009, 09:23 AM   #7
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
http://www.partimage.org/Main_Page
Or try:
dd if=/dev/h(s)dXY of=/path/file.img
Replace the h(s)dXY with the correct device and partition number. Note that this copy everything, including blank space.
 
Old 10-06-2009, 11:07 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,128

Rep: Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328
I haven't used Clonezilla for a while but it does give you options to clone drive to drive or partition to partition. If you clone and copy a partition to a second drive and want to boot it from the first drive, you will need to manually make entries for it in the first drive menu.lst file of Grub. If you want to boot the second drive, if for example the first drive fails, you will have to install Grub to the mbr of the second drive and then set the second drive as first boot priority in your BIOS.

Your attachment shows no valid partition table on the second drive. Did you create the partition and format it before cloning to it? I don't recall if you can do this in Clonezilla. I would suggest you create partition and format and try again.

Your fdisk output shows no partitions on sdb and your mount output shows sdb3 on /media/disk as a 367GB partition?

Last edited by yancek; 10-06-2009 at 11:12 AM.
 
Old 10-06-2009, 11:27 AM   #9
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Original Poster
Rep: Reputation: 24
I didn't create a partition as you suggested. I will try reformatting and create a new partition as you suggested. The other 300+ partition you are seeing is part of the 500GB USB drive that I have. What is the GUI tool that I use in Ubuntu to create a new partition. I can't remember the name at the moment. Should I boot up from the Ubuntu 9.04 live CD to do this?

I'm not sure what you are talking about when you mention the Master boot record and grub on the external partition. Like I said in a previous post, I am a Mac user that finds it pretty easy to do this kind of stuff and I was hoping I could do the same in Ubuntu. Even using Norton Ghost from my wife's PC to clone her drive is easy. I don't have to boot from an external CD. I just launch Norton Ghost in XP Pro and clone the drive. I know that this works because I tested it out so like I said before, I am looking for a similar solution so that newbies to Ubuntu will find it painless to make a bootable USB clone of the main drive.

I have some Mac friends who are eager to give Ubuntu a try but they want to have the same kind of ease of use (or close to it ), that you have with a Mac.
 
Old 10-06-2009, 04:21 PM   #10
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Original Poster
Rep: Reputation: 24
OK. Here is the latest. I booted from my Partition Magic Live CD and partitioned my USB drive with a partition that was the exact same size as my main drive. I then used Clonezilla to do a partition to local partition clone. Everything went fine. When I rebooted back into my main drive, I opened MountManager and I can see all of my USB partitions, but when I go under the Places menu, I only see two of the three USB partitions. I can't see the clone partition I made. What should I do?

Can someone let me know step by step how to mount this USB partition on my desktop, and also how (step by step) to make this USB partition bootable so that when I start up my PC, I can choose between my main drive and my USB cloned drive.

Thanks!!
 
Old 10-06-2009, 07:24 PM   #11
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Original Poster
Rep: Reputation: 24
When I boot into Xubuntu, I can see the clone partition on the desktop but I cannot open it (see attached). What should I do, and why is this happening? When I am able to view this partition, I just need to know how to boot up from it if I need to.

Thanks!!

Last edited by rmcellig; 11-10-2010 at 02:06 PM.
 
Old 10-06-2009, 08:15 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,047

Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333
Might be easier to learn dd and use any live cd/usb/pxeboot that you like.
 
Old 10-06-2009, 08:18 PM   #13
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Original Poster
Rep: Reputation: 24
OK. Thanks for that option. Any videos/ tutorials you know of on how to use the dd command?
 
Old 10-06-2009, 10:32 PM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,128

Rep: Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328Reputation: 1328
Quote:
What is the GUI tool that I use in Ubuntu to create a new partition
I expect you are referring to GParted. Don't use Ubuntu so I don't know how to access it but you should be able to find it from the menu at the top of your screen?

Quote:
Should I boot up from the Ubuntu 9.04 live CD to do this?
Partitioning from the Live CD would be good.

From your last posts, I'm not sure if you are trying to clone the entire drive or just a partition. If you do just a partition, you won't include the master boot record. Also, are you meaning to boot the partition on the second drive from the first drive or do you want to be able to boot the second (cloned) drive on its own?

The permission denied error means you are not logged as root, use sudo in Xubuntu. What bootloader are you using or do you wish to use?

You refer in your post to using Norton Ghost to clone a drive on your wife's computer, are you talking about drives or partitions.

Quote:
I'm not sure what you are talking about when you mention the Master boot record and grub on the external partition.
Every physical hardrive has an area on it on the outer track, sector 1, where the master boot record can reside. That doesn't mean there is anything in it if you have multiple drives. Only one drive needs info in it to boot the computer.

Reading over your last two posts, I'm still not sure exactly what it is you want to do. It seems like you want to clone the entire drive and that would include the mbr so cloning a partition wouldn't help in that case. Clonezilla does have the option to clone drive to drive.

I used Clonezilla about a year ago and found it pretty easy after reading a little documentation. That having been said, I've never used a Mac and suppose I would have difficulty doing anything with one.

So what exactly is your goal. Do you want to clone the entire drive to the external drive so that you can boot the external in case of a failure on the internal? That is pretty simple to do with Clonezilla.
 
Old 10-07-2009, 06:22 AM   #15
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Original Poster
Rep: Reputation: 24
Yancek,

Thanks so much for your post. I really appreciate this! Regarding your questions, I hope my answers shed some light on what I want to do.

1. My internal HD (ihd) is 76GB in size

2. My external USB drive (eud) is 500GB in size

3. I want to clone my ihd to my eud so that I can boot from the eub if need be.

4. See attached file. This is how I clone my drive on my Mac without having to boot from a CD to do it. On my Mac, I have a 250GB ihd and a 250 eud so that the ihd and eud are exactly the same.

5. My Dell Dimension 3000 computer is kind of old now (circa 2002), so I am pretty limited as to what I can do as well as the size of HD I can put in it. All I have for now is the 76GB drive I mentioned above (it is actually an 80GB drive but the real size is 76GB). This is all I have to work with for now.

6. The only way I could figure out how to clone my ihd was to create a partition that is the same size as my ihd, otherwise I will be wasting space if I clone to the entire 500GB eud?

7. As far as my wife's PC, I am using Norton Ghost to clone her C drive to an image file. I guess that would be my only option in my case with my Ubuntu computer?

8. Sorry for all the confusion regarding my cloning issues. On the Mac, it is pretty easy to do this kind of thing and I was looking for a similar thing in Ubuntu. For the average user who wants to try out Ubuntu, it should be about the same as it is with a Mac if possible.


So now that I have posted more info on my setup etc..., where do I go from here? What are my options. Keep in mind that I am looking for a user friendly solution, that I can pass on to my friends considering using Ubuntu who have been using Macs for years and are interested in trying something new that is appealing in light of our current economic situation where price is an issue and this is where Ubuntu really sounds appealing. It's free. You can install it on almost any computer and it is updated regularly. Although my main computer is my iMac, I find myself spending a great deal of time using and exploring Ubuntu trying to find easy user friendly solutions so that I can pass them along to people considering using Ubuntu.

These forums are an invaluable resource for me!

If there is anything I missed or you require more clarification, pleae let me know. Enclosed is a screen shot of Superduper, the excellent cloning tool for the Mac just to give you an idea of how I clone on the Mac, and why it is so simple for the average user to use.

Last edited by rmcellig; 11-10-2010 at 02:06 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clone Hard Drive lindylex Linux - General 8 03-05-2009 01:58 PM
clone hard drive to smaller hard drive digity Linux - Newbie 8 01-11-2009 06:29 PM
Clone a dual booting IDE hard drive to a SATA hard drive namida12 Linux - Distributions 1 07-14-2008 10:01 AM
Clone a hard drive twantrd Solaris / OpenSolaris 10 02-05-2005 02:15 AM
Easy way to clone linux installed hard drive mobassir Linux - Software 6 01-12-2004 05:34 PM


All times are GMT -5. The time now is 09:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration