LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-20-2004, 08:34 AM   #1
thenebula
LQ Newbie
 
Registered: Oct 2003
Location: Atlanta, GA
Distribution: Red Hat 9
Posts: 22

Rep: Reputation: 15
Transferring OS to new Hard Drive


Greetings,

I have a Toshiba Magnia Server running RH7.x on a 20GB hard drive.

I am getting several more of these without hard drives.

I want to transfer (copy) the existing OS to new hard drives (probably 40 or 60GB capacity) and install them in the new servers. The image includes a lot of other data files and the server setup.

The server is already set up to create an "image" of one hard disk to another in a separate slot provided. But because of the way it creates a "snapshot," the hard disk will then be a 20 GB partition, wasting the rest of the space.

I also have Red Hat 9.0 running on another computer on the network. I have plenty of space to back up the entire system on that computer...and then copy it on to a blank HD connected via USB 2.0

I am not all that familiar with Linux...but I would appreciate any guidance anyone can offer about the best way to get the OS off a 20GB drive onto a larger drive intact...with more space available for files.

Thanks!
 
Old 04-20-2004, 09:21 AM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
The easiest way would be to install the new hard drive, boot up from a live cd, copy the entire contents over to the new partition/drive, chroot the partition and reinstall the boot loader.

Assuming /dev/sdb is the new drive and /dev/sda is existing:

1. fdisk /dev/sdb

2. mkfs.xfs /dev/sdb1

3. mkdir /newdrv /olddrv

4. mount -t xfs /dev/sdb1 /newdrv

5. mount -t xfs /dev/sda1 /olddrv

6. cp -Rp /olddrv/ /newdrv/

7. chroot /newdrv /bin/bash

8. Write lilo or grub to mbr
 
Old 04-20-2004, 10:27 AM   #3
thenebula
LQ Newbie
 
Registered: Oct 2003
Location: Atlanta, GA
Distribution: Red Hat 9
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks, I really appreciate it but it's WAY OVER MY HEAD in Linux right now.

Add to that, the server has no CD/disk, so you have to boot from the harddisk...no keyboard, monitor, etc.; it has to be accessed via the web or telnet.

Maybe I can install the RH9 system via the network, and start over configuring the servers.

I DO APPRECIATE the reply!
 
Old 04-20-2004, 10:37 AM   #4
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Then create a tar archive of the drive and copy it across the network:
Code:
tar -cvjpf /path/to/archive.bz2 /
Then extract it to the new partition:
Code:
tar -xvjpf /path/to/archive.bz2 -C /path/to/partition
 
Old 04-20-2004, 11:21 AM   #5
thenebula
LQ Newbie
 
Registered: Oct 2003
Location: Atlanta, GA
Distribution: Red Hat 9
Posts: 22

Original Poster
Rep: Reputation: 15
OK...that makes sense...and I can make THAT WORK!

Thank You!
 
Old 10-29-2004, 11:00 AM   #6
dayala
LQ Newbie
 
Registered: Oct 2004
Location: Guatemala
Distribution: fedora, redhat
Posts: 2

Rep: Reputation: 0
Clean Linux Install

Hi, I have a Magnia SG10 server. I would like to know if someone knows if is possible to make a clear install of any standard linux distribution (particulary Red Hat 9 or Fedora) on this server and if a standard linux distribution has all the drivers needed to make the server work?

Thanks.
 
Old 10-29-2004, 09:06 PM   #7
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Welcome to LQ. Please create a new thread when posting a new question. Mods...
 
  


Reply


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
Transferring Hard Drive to Newer Computer kaplan71 Suse/Novell 2 11-04-2005 04:11 PM
Transferring Hard Drive to Newer Computer kaplan71 Fedora 1 11-04-2005 01:32 PM
transferring linux to an external hard drive martha123 Linux - Newbie 1 09-21-2005 09:48 AM
Transferring data from a WinXP Hard drive satimis Linux - Hardware 3 08-19-2004 06:34 AM
Transferring build to new hard drive NickC Mandriva 16 07-09-2004 08:59 PM


All times are GMT -5. The time now is 10:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration