LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Move OS to Another Hard Disk (https://www.linuxquestions.org/questions/linux-software-2/move-os-to-another-hard-disk-760454/)

k_oudom 10-09-2009 04:53 AM

I have question. If OS error file system and can not boot up, I insert installation DVD and boot it up but I can't find any option to repair OS. What do we when OS can not boot up?

Wim Sturkenboom 10-09-2009 12:50 PM

Boot from a live CD and inspect your system (by mounting the hard disks). Check disk space, check error logs. Next fix it.

And can you just stick to one subject, please? You're not answering to questions that were asked for your initial post but only come with new (and different) questions.

snowtigger 10-09-2009 01:04 PM

i have one thing to say, http://www.sysresccd.org

ok, i have another thing, don't worry about its homepage going on about rescuing crashed systems. That it does very well. But you can also just use the tools for cloning and resizing partitions, i've used it for that many times.

:)

Widgeteye 10-09-2009 02:20 PM

I have done this in the past by simply wrapping the whole thing up with tar and copying the tar file to the new partition.

Man tar.

ramram29 10-09-2009 02:46 PM

I've done this many times.

You can dd from small disk to big disk then use resize2fs to extend.

Another altenative is to format the big disk, copy everything over then create the MBR with grub.

The last one is a much faster alternative, since dd takes a very long time. Also dd copies every block, including the blocks with deleted data.

mostlyharmless 10-09-2009 03:44 PM

If it's your data then reread post #4. If it's your OS, then you'd be better off making proper backups of your data (which you're doing anyway, right?), installing your new disk, installing your new OS, restoring your data and keeping the old disk mounted on a separate point until you are sure you've got everything working the way you want with nothing missing.

You can certainly clone your system and move it to a larger disk, but that's a bit like moving from one house to a bigger one but just shovelling the contents of your cabinets and probably unwashed laundry in boxes and dumping them in the cabinets or on the floor when you've put them in the new rooms.

MrCode 10-09-2009 03:53 PM

Dunno if this will be exactly what you need, but I had a situation where my primary hard disk was bad, but I didn't want to have to re-install the OS on the new drive.

I found a disk-cloning utility called Clonezilla, a bootable disc that simply walks you through making an exact block-for-block copy of your existing hard disk onto a new one (or in an image file). It worked just fine for me, and I didn't have to go through all of the processes of formatting or partitioning the empty drive, because (presumably) it copies that data along with everything else.

Like I said, may not be exactly appropriate, but it seems like that's something you could consider.

wfh 10-10-2009 12:51 AM

Quote:

Originally Posted by k_oudom (Post 3713029)
I'm not yet turning on the OS but what I want to make sure is:
This can be use to resize of the current-use-partition just like using Partition Magic in Microsoft Windows XP, right?

Partition Magic will resize (shrink) your XP partition. I have found that you need to defragment multiple times after turning off your graphical interface (is that called "safe mode" or the other mode?) and additionally killing your swap space. Multiple reboots into XP are required. In some cases, you will be defragmenting for a day or two to get enough clean disk to begin your resizing. Work with it. You may give up on this, at least I have given up more than once on defragmenting a messy partition.

In Linux, you can use 'parted' to shrink the Windows partition. I like this one: QTParted.

Parted does not take the place of defragmenting. If your Windoze partition is a jumble of sectors, you'll have problems.


All times are GMT -5. The time now is 01:21 PM.