nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Backup/Upgrade of Harddisk

This is a discussion on Backup/Upgrade of Harddisk within the Linux software forums, part of the Linux Getting Started category; I want to upgrade my HDD of 20 GB to 80 GB. I have a dual boot system with XP ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 10-07-2005, 12:58 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default Backup/Upgrade of Harddisk

I want to upgrade my HDD of 20 GB to 80 GB.
I have a dual boot system with XP ( on FAT32) and SuSE9.3. How do I go about doing the upgrade of the Harddisk without going for a reinstall.

I want to preserve the same slices.....like / ; /home ; /var ; swap. Just that the size of the individual slices will increase.

I know it is possible to dump the entire partition info into a file, in SOLARIS, using prtvtoc.
But is there any such thing in Linux.

How do I go about it.?!!

rc
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-08-2005, 12:38 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Well you don't need any special tools.

Use fdisk to parition second disk, and then copy files from first disk to second disk, once you are done then modify grub.conf to point correct partition and reboot system.

1) fdisk /dev/newdisk and reboot
2) Format new parition using mk2fs
3) Mount new partiton and init 1 i.e. single mode
4) Copy data using cp command
5) modify grub/lilo.conf
6) Not sure how to do with windows xp

Here is step by step guide which uses same method: http://www.tldp.org/HOWTO/Hard-Disk-Upgrade/

be careful otherwise you could loss the data

if you have more question comment back
Reply With Quote
  #3 (permalink)  
Old 10-10-2005, 12:36 AM
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default

Thanks monk,

Well...!!. I do understand that cp will do. But, will it preserve all the user/group rights of a particular file. I doubt that. I think if we copy it using the user root from say /home to /newhome..... the files that are copied to /newhome will have root as the owner.

I may be wrong too. But if what I say is right, how shall we go about it.

rc
Reply With Quote
  #4 (permalink)  
Old 10-10-2005, 01:25 AM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Hmm.. Sometime we upgrade or copy client hosting data stored in /wwwroot/a/abc.com to other partition and we use cp -p option which keep the all permission as it is and then we just change config in httpd.conf and other files...
so -p should do a work but never did upgrade hard disk this way. Other choice is to use Linux LVM; We use Logical Volume Management on a Large System where disk requirment keeps increasing day by day. But for that you need to have LVM on first hard drive ... better solution is as pointed by monk, IMPO.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #5 (permalink)  
Old 02-14-2008, 09:41 PM
Junior Member
User
 
Join Date: Feb 2008
My distro: SUSE
Posts: 2
Rep Power: 0
dklima is on a distinguished road
Default

Quote:
Originally Posted by ricc View Post
... will it preserve all the user/group rights of a particular file. I doubt that. I think if we copy it using the user root from say /home to /newhome..... the files that are copied to /newhome will have root as the owner.
You can do that with the rsync command like this:

Code:
rsync -a --stats --progress /oldroot /newroot
It's a good idea to exclude some dirs, so your rsyn command become:

Code:
rsync -a --stats --progress --exclude=/mnt/* --exclude=/proc/* --exclude=/sys/* /oldroot /newroot
Reply With Quote
  #6 (permalink)  
Old 02-14-2008, 09:44 PM
Junior Member
User
 
Join Date: Feb 2008
My distro: SUSE
Posts: 2
Rep Power: 0
dklima is on a distinguished road
Default

The command
Code:
cp -a
will do the same, but with rsync you have some advantages like if for some reason you cp command fail you'll have no way to continue where it stopped but will have to start it again, with rsync it will start where it stopped.
Reply With Quote
  #7 (permalink)  
Old 03-24-2008, 08:04 PM
Member
User
 
Join Date: Mar 2008
My distro: Debian, Slackware, LFS
Posts: 83
Rep Power: 1
Tux-Idiot is on a distinguished road
Default

disk clone? drive clone? part clone? then resize the cloned stuff?
rsync is complicated IMHO. clonezilla or gparted for GUI kind of click -> select -> cut -> copy -> paste
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How To Upgrade PHP sweta Ubuntu / Debian 0 05-03-2008 12:18 AM
upgrade fedora7 to fedora8 with yum shabakeh CentOS / RHEL / Fedora 1 11-18-2007 09:17 AM
Upgrade Apache Server sweta Ubuntu / Debian 0 11-01-2007 03:53 AM
Harddisk driver install Ramesh Linux software 1 11-29-2006 10:45 PM
How to solve apt-get upgrade problem sweta Getting started tutorials 3 01-19-2006 07:21 PM


All times are GMT +5.5. The time now is 08:42 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36