PlugPBX Forums
May 19, 2012, 03:43:06 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: SD card image?  (Read 785 times)
WindowsDevPro
Newbie
*
Posts: 3


« on: December 10, 2011, 01:25:31 AM »

It looks like out of 5 different SD cards, none of them can be properly imaged. It looks like the stock "4 GB" SD card image provided is just a hair too big. It fails at about 97% along while writing it, which I can only assume is because it runs out of room.

Is there any chance I could get a *slightly* smaller copy? It doesn't have to be perfect, just you know ... work.  Smiley
Logged
ehjay
Newbie
*
Posts: 20


« Reply #1 on: December 10, 2011, 05:54:12 AM »

If I recall correctly, I think there was a swap partition on that image.  I just deleted that partition to make the image smaller.  At least I think that is what I did. Fire up fdisk on the image to see what's there.  A swap partition isn't desirable as you want to limit the amount of writes to the card.
Logged
WindowsDevPro
Newbie
*
Posts: 3


« Reply #2 on: December 10, 2011, 11:23:27 AM »

A swap partition that resides on the SD card? That seems unsafe, at least to the life of the card.

So if I delete the swap partition then it'll work without any further mucking around, or will I have to add in a swap partition to the NAND?
Logged
ehjay
Newbie
*
Posts: 20


« Reply #3 on: December 10, 2011, 04:20:00 PM »

I think you will have to remove the entry from fstab for the swap partition.  Run fdisk on the image to double check.  Here's what mine looks like

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1   *           1          28      224878+  83  Linux
/dev/mmcblk0p2              29         471     3558397+  83  Linux
Logged
WindowsDevPro
Newbie
*
Posts: 3


« Reply #4 on: December 10, 2011, 06:02:59 PM »

Hmm, I removed the swap partition but it seems like its still too big? It finished at 98.7%  (I was on the edge of my seat as it neared the end)

Is there any chance that some kind person with a working image could send me a copy of it? Thanks!  Smiley
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 426



« Reply #5 on: December 11, 2011, 08:24:03 AM »

Just make your own partitions, and copy the files out onto yours. Match the UUID's used and you are all set. I've done it before, just never released it.

Remove the swap sure, i had swap on as a short term thing, but it never needed swap, so most users just remove the swap entry from /etc/fstab and live their life.

I tell most people now just to flash the 4 gig image onto an 8 gig card, its like $3 dollars difference whoodee do.

I haven't had much time to spend on PlugPBX as of late, and the thing works flawlessly  with good SD media, so I am not hugely motivated. The bigger saver for flash card usage is the application of the flashybrid setup, which is detailed deeply on the forums here.

You could also likely re-size the partitions for a smaller SD card - if someone does that and removes the swap mount / partitions, i'm happy to host the 'modified' SD card image here - I always hoped that more than just myself would perhaps contribute back to what I started - I can't do all the bloody work all the bloody time ya know Wink

The images, the site, the content, the hosting  - its all my time and costs, donations are not exactly covering my out of pocket costs... I hope that if people see room to help, they can contribute back - im not complaining, im happy to have shared this hobby out... just saying feel free to get your hands dirty and help.

I'm sure I'll get motivated again some day to redo all this stuff, but when something works as well as the first release, I tend now to fart around with it - its been running flawlessly for 2 years in my home off the same SD card now (minus the sheeva needing a new PS since it was a first gen unit)

Logged

-Greg
ehjay
Newbie
*
Posts: 20


« Reply #6 on: December 11, 2011, 05:38:42 PM »

It's been a while since did it so I don't remember the details.   I probably created a new disk image, then using fdisk, created the two partitions to match the size of the first two of the original image and then dd the paritions from one disk image to the other.

Logged
Li7h
Newbie
*
Posts: 3


« Reply #7 on: April 20, 2012, 01:49:47 PM »

Might I suggest you update the imaging guides on your website to mention this? I wasted a couple hours and dollars trying to get a 4 gig card to work before finding this.
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 426



« Reply #8 on: April 24, 2012, 05:26:19 PM »

Well... I've done all this *points around* but lately time is rather sparse. Alot has changed, and alot may change yet before I spin a whole new setup, but its better than nothing what i've done already right?

I'd love to have others add / contribute content or changes, or help keeping the legacy alive, so I'm happy to give you edit access to the site if you want to make the changes *shrug*

Think of all the SD cards i've purchased over the years to just do this stuff as much as I have already? Let alone all the Sheeva units and my out of pocket costs like the domains and hosting for this site (notice no ads?)

Sorry you lost a few hours, I can't prevent that from happening no matter how much I pour into this, so I do hope you did gain something out of this! Smiley

*nudges donation jar*
Logged

-Greg
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Install SimpleMachinesForum web hosting Valid XHTML 1.0! Valid CSS!