LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-16-2005, 02:51 AM   #1
supersalo
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?

Sal
 
Old 08-16-2005, 03:32 AM   #2
cdhgee
Member
 
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, 05:06 AM   #3
nukey
Member
 
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:28 PM.

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