I did the following steps to expand the original 512mb image to a 2G card. This
should also work with a larger SD card. This was using a Fedora Core 11
machine. I'm cutting and pasting from my notes:
SD Card partitions
1 - Fat32, usually empty
2 - linux kernel image
3 - initrd busybox
4 - Linux JFS, Debian root filesystem
Building a new card SD card
dd if=512mbsd-latest.dd of=/dev/sdc
NB: this may take a little over 5 minutes, as dd a is fairly slow, low-level
process. Also, your mount point for the SD card may NOT be /dev/sdc. Be careful!
Resizing the 4th (Debian root) partition when using a card larger than 512MB
The user manual states that after building a new card you can expand the 4th
partition (debian root) by using fdisk, but doesn't say how. Here's how:
1 - Install jfs-utils
yum install jfsutils
2- Install gparted (or parted)
yum install gparted
3 - Insert the SD card but don't mount it
4 - Open the card with gparted or parted, select the 4th partition and then
under Tools > Resize, resize the 4th partition to fill the remaining space on
the SD card.
--- In tom campbell <> wrote:
>
>
> On Tue, 2010-09-21 at 16:44 +0000, MichaelE wrote:
> >
> > I have been trying to copy my 512 MB running SD card to a 16 GB one
> > but nothing seems to work. I have tried the grow_sd, but that does not
> > work. I have a CentOS desktop.
> >
> > Has anyone done this on CentOS or Red Hat and can give me the steps?
> >
> > Thanks,
> >
> > Michael Eder
> >
>
> >
>
> Michael:
>
> It can be painful depending on your circumstance.
> Are you booting from the SD card or are you just mounting it?
>
> I went thru this a while back on a TS-7260 doing a fastboot from the
> SD and it was painful, but I've got a toolset that makes it easier.
> To complicated to explain at the moment.
>
> If you aren't booting from SD, it should just be a matter of putting a
> filesystem on the 16G on your centos, tar'ing off the 512M on centos,
> and un-tar'ing back onto 2G.
>
> That all assumes that the cards read natively on your TS-xxx and Centos.
> I had issues with some SD card makers on my Debian laptop. I never got
> to the bottom of it and just found an SD card vendor that worked.
>
> I did it all with a 2G card and ext2 filesystem. I don't think the 16G
> is a problem.
>
> BTW... I'm local in Falmouth. If you want, we can speak by voice or
> face-to-face.
>
> tom campbell
>
------------------------------------
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/
|