On 03.03.2010 02:37, Jason Forester wrote:
>
> On Tue, Mar 2, 2010 at 2:06 AM, bassplyr647 <
> <>> wrote:
>
>> I've downloaded and placed the new kernal on a new card and
>> everything works. What is the best way to create a larger partition
>> for Debian (currently it's at 512MB and I'd like to create a 2GB
>> partiton). Thanks in advance.
Hello,
well, I'm not sure if it's the best way, but at least it worked for me.
On a linux machine with the card pluged in a card-reader, I'd first
saved the *files* of the 4th parition, using fsarchiver (or something
else, like partimage; even tar should be ok...)
Backup - with dd - the content of the second and third partitions too.
Then, using fdisk, note the size (in bytes) of your key (fdisk -l)
Decide of a suitable set of heads and sectors (eg 255, 64 - but
can be completely different) knowing that you will have 512 bytes
per sector, and found the number of "cylinders" of your card.
For example, I splitted the 1977614336 bytes of my 2Gb card into
128 heads, 32sectors/track, 512bytes per sect, which gaves me
943 cylinders.
Still with fdisk, in 'advanced mode' (x), fixe these settings (h,s,c);
you can then delete and re-creates the partitions; make 2 and 3
large enough for the saved data (but you will certainly have some
space wasted).
Once you're done (be sure that the kernel has reloaded the
partition table - if not, you can try with partprobe), reformat the
4th partition (I'm not sure that is needed with fsarchiver, but),
and restore the data on each of them.
On my side, I started with gparted, but the result was not
really good (non-bootable sd).
Hope it will help
>
> I'd like to know this too, if anyone has any suggestions.
>
> Also it's a little disappointing that the partitions don't fall on the
> right boundaries out of the box so fdisk complains. Still, it seems to
> work okay....
>
Yeap, the fact is that with linear memory, notion of cylinder, heads, etc.
are not really adapted...
flo
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|