View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Clone of HDD quesetion
PostPosted: Wed Jun 20, 2007 10:25 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
OK so I had a small SATA hdd that I replaced with a large SATA. I cloned the small disk using the dd if=.. command and everything went well. I'm currently using the new hdd.

My problem is that the smaller hdd size shows up.

Thinking swiftly... I thought I'd change the files system to xfs (as I was thinking of this anyway) and maybe this would 'fix' things. Well it didn't. I still see the smaller size, but no worse for the ware.

So how can I 'recover' the unused hdd space? would a backup and upgrade (F1 to F1) work? Is there an easier way?

TIA


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 20, 2007 10:59 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
I've never done this before, but have you tried to "grow" the filesystem?

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 20, 2007 11:16 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
I'll looking into xfs_growfs, I take it this is what your speaking of? Anyone use xfs_growfs?


This is my partitions. Seems I'm missing a bit here...

Code:
# cat /proc/partitions
major minor  #blocks  name

   8     0  488386584 sda
   8     1    4891761 sda1
   8     2    1959930 sda2
   8     3   32218357 sda3


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 21, 2007 5:14 am 
Offline
Joined: Fri May 21, 2004 11:55 pm
Posts: 1206
Location: Silicon Valley, CA
I think growfs is what you want. The other alternative is to nuke the /myth partition, create a new empty one on the big disk, and use tar to copy the data from the old disk to the new big disk. My tar skills are rusty but I think it's something like:

Code:
tar -cf - . | (cd /newmythpartition) && tar -xf -


But by all means consult someone who knows what he's doing...

_________________
Do you code to live, or live to code?
Search LinHES forum through Google


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 21, 2007 5:57 am 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
There is also Gparted Live CD which can resize partitions on the fly.

http://gparted.sourceforge.net/features.php

Question is does the live cd contain XFS kernel drivers.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 21, 2007 8:48 am 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
thanks for the assistance. isn't GParted included with Ubuntu? I remember playing around with it at one point, I have Ubuntu 6.1(?) at home, I'll see what I can do with that.

I should also mention that I've moved any recordings of value, so the /myth partition is basically empty if I need to change the filesystem or something. I just don't fancy doing a complete re-install as there are a number of tweaks that I forget how to do... until I need to do them again.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 21, 2007 5:24 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
spalVl wrote:
There is also Gparted Live CD which can resize partitions on the fly.

http://gparted.sourceforge.net/features.php

Question is does the live cd contain XFS kernel drivers.


This did the trick! gparted took 7 seconds to repartition and find my 'lost' space. and yes it worked fine with XFS.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu