Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Linux Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Linux Support Linux - Operating Systems and Applications Support

Reply
 
Thread Tools
Old 06-30-2008, 07:41 PM   #1 (permalink)
Registered User
 
Join Date: May 2008
Location: NORTHERN New York
Posts: 385
OS: Windows XP SP2/Ubuntu 8.04


Send a message via AIM to wmorri
[SOLVED] Converting HDD

I recently got a 500BG HDD for my birthday. I need to know how to convert all of my data from my current HDD which is only 80GB to my new 500GB HDD. I am currently running Ubuntu 8.04. Any help that you can give me is much appreciated.

Cheers!
__________________
Linux Forever!

Learning is doing, not being able to follow steps put forth by others.
wmorri is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 07-01-2008, 11:42 AM   #2 (permalink)
Registered User
 
Join Date: Jul 2008
Posts: 26
OS: XP_SP2, Debian, Server 2003, Freebsd


Re: Converting HDD

When you say convert what do you actually mean? If you mean transfer then I would hook them both up.

one should be on /dev/sdax and the other on /dev/sdax where x will represent some number. I believe Ubuntu should auto mount them.
samuraitux is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 07-01-2008, 12:59 PM   #3 (permalink)
Registered User
 
Join Date: May 2008
Location: NORTHERN New York
Posts: 385
OS: Windows XP SP2/Ubuntu 8.04


Send a message via AIM to wmorri
Re: Converting HDD

Samuraltux, you are right I actually ment transfer. When I hook the new one up and it reads it, how do I transfer all my files from one to the other?

Cheers!
__________________
Linux Forever!

Learning is doing, not being able to follow steps put forth by others.
wmorri is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 07-02-2008, 04:12 PM   #4 (permalink)
Registered User
 
Join Date: Jul 2008
Posts: 26
OS: XP_SP2, Debian, Server 2003, Freebsd


Re: Converting HDD

mount both of the drives then do a cp So an example would be

Code:
cp /dev/sda1/*.* /dev/sda2/*.*
or if you mounted them both under I believe /media you could do

Code:
cp /media/usbdisk/*.* /media/usbdisk2/
samuraitux is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 07-03-2008, 06:07 PM   #5 (permalink)
Moderator
 
shuuhen's Avatar
 
Join Date: Sep 2004
Location: Colorado
Posts: 690
OS: Mac OS 9.1, Mac OS X 10.5.4, WinXP Pro, FreeBSD 6.0, Gentoo Linux


Re: Converting HDD

cp -r might work, but it might have issues with symlinks. What I did when moving a Gentoo install from an external drive to an internal one was use rsync.

Something like
Code:
sudo rsync -avh old_drive_partition new_drive_partition
Use the mount points, not the device files (if /dev/sda1 is mounted on /mnt/drive_point, use /mnt/drive_point instead of /dev/sda1).

Make sure the install is working fine from the new drive before deleting stuff from the old one.
__________________


Has it been a few days since I replied to your thread? Don't panic! I'm a busy college student and may forget a post if I'm extra busy (or it might just take me a while to be able to do a decent reply). If you still need help and are awaiting my reply after a few days, PM me about it.

When posting what errors you get, please give the full message. It makes helping you much easier.
shuuhen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 07-04-2008, 06:47 AM   #6 (permalink)
Registered User
 
Join Date: Jul 2008
Posts: 26
OS: XP_SP2, Debian, Server 2003, Freebsd


Re: Converting HDD

Shuuhen I have to agree. I forgot all about rsync. That would be the best utility to use.
samuraitux is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 07-07-2008, 07:08 PM   #7 (permalink)
Registered User
 
Join Date: Oct 2007
Location: Littleton, Colorado USA
Posts: 385
OS: xp 64 sp2 Fedora Core 8 (vmware xp core 8 x32) Minix


Re: Converting HDD

For a really obscure copy of directories use the following:

#to copy an entire directory tree.

1) mkdir <TARGET DIR>
2) cd <FROM DIR>
3) tar cf - . | ( cd <TARGET DIR> ; tar xBf - )

This series of command was used before the cp command had "-R" option that would recurse down directory trees. The 3rd line pipes one tar command into another tar command after changing into the target directory. The tar command preserves file dates.

I would suggest if you use the cp command to use the -Rp to recurse directories AND preserve time stamps on the files.

None of these commands will make the new disk bootable. You will have to re-register the GRUB with the kernel image and the boot file system.

I think your 80 Gbyte disk has two partitions on it. One is /boot and the other is / (root). If you set up the new disk with /boot EXACTLY the same as the old one, then run the "dd" command on /boot, I think you will preserve the booting ability. Use "dd in=/dev/sda1 of=/dev/sdb1. Note: that you are copying RAW disk sectors and not file systems. "dd" will read raw disk sectors and write them to the output. Once the boot has been copied, then the root file system can be copied with "cp" or tar or backup and restore. GRUB has to be able to find the root file system when it boot the kernel. If it doesn't find the root file system the kernel panics and the boot will hang. You can edit all the parameters when the initial GRUB screen is seen.

I hope this helps a little.
lensman3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 10:21 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81