[NTLUG:Discuss] Need a little more elbow room.

Greg Edwards greg at nas-inet.com
Wed Dec 15 00:07:22 CST 1999


Stephen Klein wrote:
> 
> Howdy all, :)
> 
> I'm getting a little short on space on my 4.3GB drive (too much source
> code lying around I guess ;-) ), I have a new 13GB drive that I decided
> to use for an upgrade.  Anyone know a quick and relatively way to
> transfer the contents of the old drive to a new larger drive. I need to
> end up with an exact duplicate of the old filesystem.
> 


[snip]


> 
> Any help would be greatly appreciated.
> 
> Thanks,
> Stephen
> 
> TI DMOS4/5 ADSM Project
> DFW Technology
> 

Since you've got the drive to boot I assume it's installed and
partitioned?
If not get it setup with fdisk and get an MBR transferred to it.

Mount the drive (/newdrive on /dev/hdb1 for example) and do a 

  "find / -print | grep -v newdrive | cpio -pdvm /newdrive"

You'll need to be root to insure that all devices, links, files, etc get
built on the new drive.  Also make sure you don't have any files or
directories named "newdrive" (or whatever you select) to insure they
don't get missed.  The -pdvm insures that all permissions, dates, file
type, etc gets created correctly.

Shutdown your system and take out the old drive moving this drive to be
your primary.  You should be all done at this point and ready to rock,
that is except for maybe having to reinstall lilo.

The MBR is the only part of the disk that is not (for all intense and
purposes) a simple file.

-- 
Greg Edwards
New Age Software, Inc.
http://www.nas-inet.com
(972)393-4907




More information about the Discuss mailing list