pfSense Support Subscription

Author Topic: Transfer image from one CF to another  (Read 33743 times)

0 Members and 1 Guest are viewing this topic.

Offline mastermindpro

  • Full Member
  • ***
  • Posts: 115
  • Karma: +0/-0
    • View Profile
Transfer image from one CF to another
« on: August 04, 2006, 01:19:26 pm »
I found the Wiki page for resizing images.  I have successfully resized the RC2 image to 128MB using the automatic script (Thanks to the author!).

I've finalized my config on that image, and now I want to extract an image from it so I can write it to ~9 other devices.  I tried using RawDisk to read the finalized image back to my hard drive.  I then wrote that image back to another CF card using physdiskwrite.  There were no errors reported along the way.

I took the CF copy and put it in a WRAP board.  It booted and appeared to work just fine until about half-way through the boot process.  It got to the point where it was trying to mount /dev/ufs/pfSenseCfg, and then it claimed that didn't exist.  The rest of the boot was a series of "thrown rods".   ;D

Has anyone else used RawDisk successfully?  What's the secret?

Offline sullrich

  • Hero Member
  • *****
  • Posts: 5110
  • Karma: +3/-0
    • View Profile
    • pfSense
Re: Transfer image from one CF to another
« Reply #1 on: August 04, 2006, 01:59:39 pm »
Take a look at this page for installation help:

http://doc.pfsense.org/index.php/Installing_pfSense


Offline mastermindpro

  • Full Member
  • ***
  • Posts: 115
  • Karma: +0/-0
    • View Profile
Re: Transfer image from one CF to another
« Reply #2 on: August 04, 2006, 02:57:30 pm »
I wasn't exactly asking about installation.  I can do an install just fine, it's just that I haven't been able to extract an image from a functioning install to use to clone a device.  Nothing on the install page discusses this.

Offline sullrich

  • Hero Member
  • *****
  • Posts: 5110
  • Karma: +3/-0
    • View Profile
    • pfSense
Re: Transfer image from one CF to another
« Reply #3 on: August 04, 2006, 03:18:03 pm »
You don't need to extract a functioning image.  You can simply start with the images that we posted.

Or maybe I don't really understand.  Either way you do know that this is not supported.

Offline mastermindpro

  • Full Member
  • ***
  • Posts: 115
  • Karma: +0/-0
    • View Profile
Re: Transfer image from one CF to another
« Reply #4 on: August 04, 2006, 03:38:57 pm »
I could start with the provided images, but I'd have to:

1) Install an expanded image on a CF
2) Boot it and set the interfaces so I could get to the GUI
3) Restore settings from a backup of the master system
4) Change interface parameters after restore
5) Copy additional files (captive portal) from master system CF to clone CF

If I could read a fully-configured image off of a CF card as the Wiki indicates I can, then I could reduce the above process to this:

1) Write custom expanded image to CF
2) Boot it and re-assign interfaces in clone device

While the first method doesn't take too long, I have to do this to 15 devices.  That coupled with the fact that my 15 device network is purely a small testbed for a 50-200 device network.  As you can see, that'd add up pretty fast.

Besides, why would copying a fully functional image from one CF card to another not be supported?  Seems like a no-brainer to me...it's like hard drive cloning.  Given the Wiki topic on this is rather small (as it should be), I wouldn't think there's any voodoo going on.

Offline sullrich

  • Hero Member
  • *****
  • Posts: 5110
  • Karma: +3/-0
    • View Profile
    • pfSense
Re: Transfer image from one CF to another
« Reply #5 on: August 04, 2006, 03:44:41 pm »
Its not supported meaning the developers are not going to go out of our way to make sure that what you are doing works.

We have limited resources and our hands are full already supported the official releases.  We just don't have the manpower to support custom environments at the present time.

Offline mastermindpro

  • Full Member
  • ***
  • Posts: 115
  • Karma: +0/-0
    • View Profile
Re: Transfer image from one CF to another
« Reply #6 on: August 04, 2006, 04:31:31 pm »
I realize all of that, but what makes this a custom environment?

Offline hoba

  • Administrator
  • Hero Member
  • *****
  • Posts: 5837
  • Karma: +3/-0
  • What was the problem to this solution again?
    • View Profile
    • pfSense
Re: Transfer image from one CF to another
« Reply #7 on: August 04, 2006, 05:22:55 pm »
You somehow want to roll out your own image and that is not supported by the devs. However, maybe somone else can answer this as we don't have time to test this out.

Offline mastermindpro

  • Full Member
  • ***
  • Posts: 115
  • Karma: +0/-0
    • View Profile
Re: Transfer image from one CF to another
« Reply #8 on: August 04, 2006, 05:30:58 pm »
Then I suggest someone remove the topic "HowTo: Read Flash Image" from the Wiki, since it's clear the devs don't want anyone to do this.  :-[

Offline hoba

  • Administrator
  • Hero Member
  • *****
  • Posts: 5837
  • Karma: +3/-0
  • What was the problem to this solution again?
    • View Profile
    • pfSense
Re: Transfer image from one CF to another
« Reply #9 on: August 04, 2006, 05:39:12 pm »
It's not supported, but anybody can do anything with it. If you want to swim in the deep water you have to know how to swim  ;D

Offline mastermindpro

  • Full Member
  • ***
  • Posts: 115
  • Karma: +0/-0
    • View Profile
Re: Transfer image from one CF to another
« Reply #10 on: August 04, 2006, 06:12:01 pm »
Please mail me a gun so I can shoot myself.  Also, please promote use of the gun in your documentation but don't explain it's proper use.  Also, when someone asks about proper use of the gun, please inform them they are on their own.

See how frickin' stupid that sounds?  Notice any parallels to your statement(s) above?  I'm not trying to be mean, I'm trying to point out some easily-resolvable issues with mentioning RawDisk in the Wiki.  It only has 3 or 4 command-line options, so it can't be too easy to screw up.   :o  Read, write, disk enumeration...  What's not to understand about that?

If there's something that may (even theoretically) need to be done following such a cloning process, such as change a disk label or something, then clue me in.  I'm assuming this CAN work, since it's on the Wiki.  I'm looking for those who can help explain what needs to happen to make it work.

So, please don't reply to me if you:

1) Think I'm stupid
2) Don't have a solution or any thoughts that might begin to point me in the direction of a solution
3) Want to respond saying how busy you are
4) Can't definitively say "this will never work"

Cause guess what?  None of those help anyone.  If you don't have a solution, don't waste your time replying to me.  Please ignore me.  I don't want to spoil any more dev time than this thread has already done.

Offline lsf

  • Wireless Expert
  • Administrator
  • Hero Member
  • *****
  • Posts: 3262
  • Karma: +0/-0
    • View Profile
Re: Transfer image from one CF to another
« Reply #11 on: August 04, 2006, 09:11:40 pm »
Free software comes with no implied warranty what so ever. The wiki has tons of experimental stuff, so has HEAD code, if you like to use it, by all means do so. But do not complain about stuff not working, and do not expect others already sharing their work for free, to actually comply to the demands of users !!

A lot of devs feels like, hey I give something away, so that others may benefit from my research/work, and what I get in return is more "work".

Why should we even support pfSense at all ? We do aprechiate bug reports, but lately everything seems to change into demands !

If you really need help then post a bounty and put your money where your mouth is.
I'm sure that your need to put the same setup on 9 boxes means this is somehow connected to a comercial project of some sort, so take the money you saved by getting a free firewall and put some of them up as a bounty and see if you can get help.
-lsf

Offline mastermindpro

  • Full Member
  • ***
  • Posts: 115
  • Karma: +0/-0
    • View Profile
Re: Transfer image from one CF to another
« Reply #12 on: August 04, 2006, 09:45:10 pm »
You guys just don't get what I'm trying to say, do you?  I ask a few questions, and it devolves into "everyone's picking on me" whining.

I'm not demanding anything, and I never have.  The devs are wasting everyone's time by replying "That's not supported" or similar.  Whether a dev will support it or not is actually COMPLETELY IRRELEVANT to the issue.  I don't expect support from the devs.  I post here because this is typically referred to as a "user forum".  I'm posting to see if another "user" has done something similar to what I'm trying to do.  If none has, then so be it...maybe I'll be the first to post the method here.

Seriously, you devs need to take a chill pill and quit trying to be Superman.  You're burning yourselves out.  I may post a bounty just so some of you can raise some beer money.   ;)

My advice to the devs, if any of them gave a flyin' rip, would be to NOT try to be the pfSense tier 1 support department.  Spend your precious time on true problems or issues with the software, not on average joe's like me just trying to get things to work.  In short, if it ain't broke, shut up and walk away.  Believe me, I mean this with all possible respect.

Offline jeroen234

  • Sr. Member
  • ****
  • Posts: 505
  • Karma: +0/-0
    • View Profile
Re: Transfer image from one CF to another
« Reply #13 on: August 05, 2006, 03:07:40 am »
on windows xp open the pfsense image with winrar
make youre chanes now close winrar
and burn youre chaned image to cd or cf as normal

« Last Edit: August 05, 2006, 03:09:20 am by jeroen234 »

Offline rsw686

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 520
  • Karma: +0/-0
    • View Profile
    • The Reptile File
Re: Transfer image from one CF to another
« Reply #14 on: August 19, 2006, 09:07:06 pm »
Why don't you just use dd to read the image and write it back. Theres a version for windows xp if you need that. I've used it before to backup an image and write it back when I was testing out some things.

Just did a quick google search and this looks like the page I used.

http://www.chrysocome.net/dd
« Last Edit: August 19, 2006, 09:11:04 pm by rsw686 »