LinuxQuestions.org
Review your favorite Linux distribution.
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 03-09-2007, 09:52 AM   #1
DjRakso
LQ Newbie
 
Registered: Nov 2006
Posts: 12

Rep: Reputation: 0
Clone HDD to increase Storage


Hi,
I recently cloned an old 5GB linux old HDD to a newer 70GB HDD. I used G4U to clone the image to the new HDD and using this new HDD and throwing out the old 5GB HDD.
My question is that the cloned image set the volume as 5GB instead of 70 GB is there any way I can incrase this volume size so it takes full advantage of this HDD space.
Thanks for reading my email.
 
Old 03-09-2007, 10:48 AM   #2
BogusTrumper
Member
 
Registered: May 2006
Posts: 77

Rep: Reputation: 15
That's a consequence of cloning; you copy things bit for bit, including the partition table. But you should be able to increase the partition size nonetheless; but hopefully you've kept that 5G hard drive at least for a little while longer.

First of all, it's always helpful to know what version of Linux you're using, what filesystem, etc.

I'm running Fedora Core 4, with an ext3 partition. Typing "man resize2fs" gives me a little guide to doing this, which basically involves unmounting my partition, starting fdisk, writing down EXACTLY which cylinder my partition starts on, deleting the partition, and re-making it to start on the EXACT cylinder as before. This should then let me then grow my filesystem on that now larger parition.

You should be able to google around for better instructions, but definitely check out the "man" pages on fdisk and resize2fs before getting started.

Of course, if you don't have your old 5G disk anymore, I might recommend doing something a little safer/easier. In Linux, it's relatively straightforward to link together different partitions within the same user-observable filesystem (ie, there's no C: and D: drives to worry about, just folders). So, you could make a new partition on the unformatted 65G, mount that as /home or something, and then you're at least using your full 70G. Check out the manpages for mount and fstab, and things should work pretty well.
 
Old 03-09-2007, 11:22 AM   #3
DjRakso
LQ Newbie
 
Registered: Nov 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Well I am using RHEL AS 4.0 version.
I did it differently with the 5GB HDD now, instead I want to do what I said for a nice 8GB computer unit.
This is the output of df -h:

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
7.2G 6.9G 14M 100% /
/dev/sda1 99M 13M 82M 14% /boot
none 252M 0 252M 0% /dev/shm

Disk /dev/sda: 73.3 GB, 73398878208 bytes
255 heads, 63 sectors/track, 8923 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1106 8779522+ 8e Linux LVM

Now, how do i make another partition or extend the volume of the current one so it doesnt overflow....
thanks for reading my reply
 
Old 03-12-2007, 12:25 PM   #4
mether
Member
 
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
below process might help you :

1. create a PV on new /dev/sda

#pvcreate /dev/sda2

2. Now extend the existing Vg on this newly create Pv

#vgextend VolGroup00 /dev/sda2

3. Once you make sure its added ( vgdisplay VolGroup00 ) go ahead and increase the size of the LV

#lvextend LogVol00 VolGroup00

4. To confirm

#lvdisplay LogVol00

5. If everything works

#ext2online LogVol00

Hope this helps
 
  


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
any way to increase CD-ROM buffer, increase spindown delay, XMMS buffer r00tb33r Linux - Hardware 5 06-12-2009 12:10 AM
Dynamically increase storage glowe Linux - Enterprise 1 07-02-2006 12:08 PM
Gentoo test on virtual pc - can I clone HDD? solomage Linux - Distributions 1 01-15-2006 07:10 AM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 01:50 PM
USB time out value (to increase or not increase) lynxgogo Linux - Hardware 0 07-24-2003 10:14 AM

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

All times are GMT -5. The time now is 12:37 AM.

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