Move OS to Another Hard Disk
While the data is increasing, my hard disk is going to run out of space. I want to move OS to another bigger hard disk and extend the space without having to brick my OS. Is there any solution?
|
Quote:
Did you make partitions for home, boot, var, etc? Can you post the result of this: # df -h Also, what OS? What kind of disk is it running on (i.e. SCSI, SATA, IDE, etc.) What are you running...a big web server, for instance? Do you have masses of personal data? What's important to preserve *BEFORE* you potentially brick your system : ) |
I only created 2 partition for CentOS 5.3. Swap and other one for all such as /, /home, /var, /tmp, ....
|
Putting the OS on a bigger disk does not make sense; you should put the data on a bigger disk.
Not sure what you're all running. Assuming that this is a webserver with a MySQL database:
After everything is done, reboot. This will make sure that the new partitions will be mounted during a reboot. Once you're happy that everything works, you can delete the originals. Notes: 1) I assume that your webpages are somewhere in /var. If they are in /home, the procedure for apache will be slightly different. 2) I've done this on Slackware; not sure how it all works under Centos and where configs are stored. Therefore this is only a general description. |
Quote:
For practical reasons, about three partitions is best: 1. The system root (/), containing /var, /usr, /etc, /tmp, etc. etc. -- all the system directories. 2. Swap, twice the size of system RAM 3. Everything else. Reasonable arguments can be made for a few more partitions, but creating partitions for each of /boot, /var, /usr, /opt, /tmp and the usual cast of characters, as is so often suggested here, is unremittingly stupid and leads to unnecessary failures as one partition inevitably fills up and kills the system while there is plenty of free space elsewhere. |
Did you experience resize partition in Windows XP. That's what I want.
|
First it's centos, now WinXP is added to the mix. Do you mind to elaborate? ANd maybe the output of df-h as requested by wfh might help us to advise.
|
Can we clone Linux OS to another Hard Disk?
|
Quote:
|
Clone OS without shutting down? No way!
|
Quote:
|
Type "dd" in command line?
|
yes, and read man dd
|
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? |
Quote:
|
All times are GMT -5. The time now is 03:45 PM. |