www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Change CF Image size

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Embedded Devices
View previous topic :: View next topic  
Author Message
marcus



Joined: 25 Mar 2009
Posts: 2

PostPosted: Wed Mar 25, 2009 8:07 pm    Post subject: Change CF Image size Reply with quote

Hi

I searched the Forum, but I canīt find an answer. Is it possible to use an 512MB CF with the actual beta11? The image file is 1GB, but it contains only round about 120MB, so maybe I can use my existing 512MB CF?

Thanks for any helpful hint and sorry for this noob-question! Embarassed

Greets
Marcus
Back to top
View user's profile Send private message
marcus



Joined: 25 Mar 2009
Posts: 2

PostPosted: Sat Mar 28, 2009 12:36 pm    Post subject: Reply with quote

Ok, I answered my question for myself and bought an 1GB CF.
_________________
ALIX 2D3, Huawei E169G, TP-Link TL-WN660G
Back to top
View user's profile Send private message
lennart



Joined: 03 Jul 2009
Posts: 7
Location: Bergen, Norwaw

PostPosted: Sat Jul 04, 2009 3:44 pm    Post subject: my answer Reply with quote

If i were to shrink the image i would do the following:

1. Mount the partition that has the most extra space under some folder
2. Tar the contents into a tarbal, (remebering the -p option)
3. Unmount the partition
4. fdisk the image and remove the partition
5. create a new partition with a more suitable size
6. create a new filesytem on the new partition
7. mount the new partiton under some folder
8. uncompress the tar backup (remembering the -p option)


Smile
Back to top
View user's profile Send private message
aseques



Joined: 16 Jun 2009
Posts: 51

PostPosted: Mon Jul 06, 2009 8:28 am    Post subject: Reply with quote

You could also try some graphic tool like gparted, it allows you to resize your partitions with no problem.
1.- Backup you data (just in case)
2.- Connect the CF to your computer (using standard card reader should work)
3.- Just tell gparted to resize the partition, after some minutes everything should be done.
Back to top
View user's profile Send private message
KLGIT



Joined: 09 Jul 2009
Posts: 22
Location: Canada

PostPosted: Tue Jul 14, 2009 10:30 pm    Post subject: Reply with quote

I did the opposite. I could only get a 2GB CF. I imaged it as usual, then plugged it into a card reader on one of my SuSE boxes and used the partition tool there to expand the partition. I now have 1.4GB for profile / log storage instead of 400MB.

The same should certainly work in reverse. Use your Linux distro's partition tools to shrink/grow the partition.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Embedded Devices All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group