Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 08-16-2005, 03:51 AM   #1
LQ Newbie
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Moving all data to different HD

I've outgrown my current HD. I did a search on moving data to a completely different disk, but only saw info on using 'cp -a'.

What about doing something like this:

1) Create new filesystem on 2nd (new) HD & mount somewhere
2) Use 'find . -depth -print | cpio -pdlmv' to copy everything from root to mounted 2nd HD (excluding /mnt, /proc, /cdrom & /floppy)

Now what about the lilo boot loader? I'll be removing the original HD, so the HD assignments in fdisk will be the same (no worries about fstab or anything).
If I run lilo to install the MBR on the 2nd disk, that should work, right?

Anything else I missed?

Old 08-16-2005, 04:32 AM   #2
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Yeah, it looks like cp -a is what you want. What you described should work.

As an aside, while you're moving stuff, you might want to consider GRUB (GRand Unified Bootloader) as a replacement for lilo - it's generally replacing lilo as the standard bootloader and is a bit more customisable.
Old 08-16-2005, 06:06 AM   #3
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Rep: Reputation: 30
You could also try this.

Add the new Harddisk.
For example i will asume you have 2 IDE drivers. /dev/hda and /dev/hdb

Boot Slackware as usual and then run the following commands

init 1
dd if=/dev/hda of=/dev/hdb

This will copy everyting , bit by bit, from /dev/hda to /dev/hdb including the bootsector and everything.

Remove the original harddrive, and boot the new harddrive.

Worked for me a while ago, but i don't know what effect this will have with harddrives of different sizes. (anyone ?)

You could also make a partition on hdb around the size of hda and only dd the partition

dd if=/dev/hda1 of=/dev/hdb1

Anyway, you get the idea


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
Moving data around -- cp=scp mv=? mijohnst Linux - General 3 09-22-2005 06:19 PM
Moving Evolution data ejbest Linux - Software 1 09-04-2005 09:53 PM
moving evolution data to kmail stefane321 Linux - Software 1 12-16-2004 11:50 AM
copying/moving stalls when moving a lot of data to a usb stick =X= Linux - Hardware 10 07-30-2004 06:29 AM
Moving data from old computer to new one? pilot1 Linux - General 11 05-10-2003 07:15 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:05 PM.

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