LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-27-2007, 05:27 AM   #1
nics
Member
 
Registered: Mar 2007
Posts: 31

Rep: Reputation: 15
Add an extra hard disk to an existing one without data loss and use them as single???


hello everybody!!!
i just like to inquire if we could add an extra hardisk to an existing one and make them work as single hard disk without making raid 0.coz as far as i know if we make raid 0 we need to format both hard disks causing data loss...
the existing harddisk is nearly full containing significant data..so we can't lose the data in it anyway...
is any other solution possible
 
Old 04-27-2007, 05:27 AM   #2
nics
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Add an extra hard disk to an existing one without data loss and use them as single???

hello everybody!!!
i just like to inquire if we could add an extra hardisk to an existing one and make them work as single hard disk without making raid 0.coz as far as i know if we make raid 0 we need to format both hard disks causing data loss...
the existing harddisk is nearly full containing significant data..so we can't lose the data in it anyway...
is any other solution possible
 
Old 04-27-2007, 06:38 AM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Yes you can with the use of LVM partitions. Check that out. Not knowing your distro and current setup, it can be easy or take some time. If current drive is not LVM then you will need to make the second drive one large LVM partition and create LVM volumes with in it matching or larger than current used linux partitions. Then copy the data over to them. Next unmount old partitions and bring the new volumes up as the same directory as the old. Now you can repartition the old drive and either move them back or leave them where they are. One thing to leave as a standard ext2/3 partition is the /boot partition and leave on the main drive.

Brian
 
Old 04-27-2007, 10:03 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The only way to use them as a "single" is to either do RAID or LVM and in either case to maximize usage you'd have to "reformat" (not actually what you do but close enough for this discussion) unless it was already in a RAID or LVM setup. Some distros automatically lay out things as LVM if the drive is large enough.

Run "df -h" to see what you have mounted. If you see "VolGroup" somewhere the device side of the df then it means you're using LVM already and can expand the Volume Group fairly easily.

However you don't have to use them as a "single". You can add the second disk and add its space to the system. You could then migrate your important files to that space leaving your OS, swap, /tmp on the original disk. So if you had a single mount (/) but all the key files you want are in a directory called /importantstuff you could setup the new drive. mv /importantstuff /importantstuff.old then mount the partition (or logical volume) from the new drive as /importantstuff then copy all the files from /importantstuff.old to /importantstuff. Once you were sure everything were operational on the new /importantstuff you could remove /importantstuff.old to free up the space on the original drive.
 
Old 04-27-2007, 03:57 PM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I merged the duplicate threads...
 
  


Reply

Tags
disk, hard



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
Want to add an extra hard drive ? Babe963 Linux - Newbie 6 09-04-2006 05:47 PM
how to add a hard disk with data? Joan Murt Linux - Enterprise 10 07-24-2006 03:36 AM
extra hard disk space ic_torres Linux - Hardware 7 11-03-2005 07:56 PM
moving hard drive with existing data to FC3 supra92 Linux - General 6 12-28-2004 03:09 PM
Add a new hard drive to existing RH 7.2 guanyu Linux - Software 1 02-27-2002 10:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:51 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