Jump to content


  • 0
fsmith@neverware.com

Deploying Linux Using OSD - Error 80070057 - Help?

Question

Hi All,

 

I'm using the following group of products:

 

Windows 2012 (not R2)

SCCM 2012 R2

Win PE 4.0

 

My goal is to deploy a Linux distribution by created an OSD task sequence, following these model:

http://blogs.msdn.com/b/steverac/archive/2014/01/02/osd-for-linux-imaging-yes-really.aspx

http://systemcenter.no/?p=509

 

I recognize that this is not supported by design, but dd is a simple enough tool that I am hoping I can make this work easily.

 

So the Order of operations is:

1) Attach to remote location with dd executable and image we're trying to deploy

2) Clean disk on client

3) run command : "dd if=image.bin of=\\?\harddisk0\partition0 bs=4M --progress"

 

However I'm running into the error 80070057, among others you'll see in the logs.

 

Some details: for reasons outside the scope of this task, I am aiming to deploy to the entire disk. Reserving a partition will, I think, break the update system on my linux distro.

Willing to try anything - would love to get some help!

 

 

Here's the log (also attached):

https://gist.github.com/smithforrestr/a83d6b154bc459eea62e#file-smsts-log

smsts.txt

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

the 80070057 error means

 

The parameter is incorrect.

Source: Windows
-----

 

 

so are you using a command incorrectly, i havn't tried what you are trying to do so i cannot offer advice sorry

 

at what point is yours failing, 1,2,3 ?

Share this post


Link to post
Share on other sites

  • 0

Thanks for the reply!

 

I *believe* I'm failing at step 3. However, the dd command I'm running definitely works - I've confirmed as much by running it manually while live-booted into WinPE and the installation works.

 

Based on the logs near the end, it would appear that there is something else causing step 3 to fail - I think it is that none of my files are present somehow. If you look at the log-section below, you can see that after disk cleanup finished successfully there is another error (perhaps more telling) : "nPos != String::npos, HRESULT=800700a1"

 

 

 

<![LOG[successfully completed the action (Disk Clean up) with the exit win32 code 0]LOG]!><time="09:33:26.860+240" date="08-24-2015" component="TSManager" context="" type="1" thread="292" file="instruction.cxx:830">
<![LOG[MP server http://SCCM-R720-W12.methacton.org. Ports 80,443. CRL=false.]LOG]!><time="09:33:26.860+240" date="08-24-2015" component="TSManager" context="" type="1" thread="292" file="utils.cpp:5881">
<![LOG[setting authenticator]LOG]!><time="09:33:26.907+240" date="08-24-2015" component="TSManager" context="" type="1" thread="292" file="utils.cpp:5903">
<![LOG[set authenticator in transport]LOG]!><time="09:33:26.907+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="libsmsmessaging.cpp:7734">
<![LOG[sending StatusMessage]LOG]!><time="09:33:27.110+240" date="08-24-2015" component="TSManager" context="" type="1" thread="292" file="libsmsmessaging.cpp:4023">
<![LOG[setting message signatures.]LOG]!><time="09:33:27.130+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="libsmsmessaging.cpp:1295">
<![LOG[setting the authenticator.]LOG]!><time="09:33:27.130+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="libsmsmessaging.cpp:1325">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: SCCM-R720-W12.methacton.org:80 CCM_POST /ccm_system/request]LOG]!><time="09:33:27.130+240" date="08-24-2015" component="TSManager" context="" type="1" thread="292" file="libsmsmessaging.cpp:8604">
<![LOG[Request was successful.]LOG]!><time="09:33:27.161+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="libsmsmessaging.cpp:8939">
<![LOG[set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="09:33:27.161+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="executionenv.cxx:668">
<![LOG[set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="09:33:27.161+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="executionenv.cxx:668">
<![LOG[Expand a string: %_SMSTSMDataPath%\Logs]LOG]!><time="09:33:27.161+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="executionenv.cxx:782">
<![LOG[nPos != String::npos, HRESULT=800700a1 (e:\nts_sccm_release\sms\framework\core\ccmcore\path.cpp,101)]LOG]!><time="09:33:27.176+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="path.cpp:101">
<![LOG[RecursiveCreatePath(sPath.substr(0, nPos), psa), HRESULT=800700a1 (e:\nts_sccm_release\sms\framework\core\ccmcore\path.cpp,104)]LOG]!><time="09:33:27.176+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="path.cpp:104">
<![LOG[RecursiveCreatePath(sPath.substr(0, nPos), psa), HRESULT=800700a1 (e:\nts_sccm_release\sms\framework\core\ccmcore\path.cpp,104)]LOG]!><time="09:33:27.176+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="path.cpp:104">
<![LOG[RecursiveCreatePath( sNormalizedPath, psa ), HRESULT=800700a1 (e:\nts_sccm_release\sms\framework\core\ccmcore\path.cpp,159)]LOG]!><time="09:33:27.176+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="path.cpp:159">
<![LOG[Path::Create( destDirectory, Security::SecurityAttributes(LogSecurity) ), HRESULT=800700a1 (e:\qfe\nts\sms\framework\tscore\tslogging.cpp,987)]LOG]!><time="09:33:27.176+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="tslogging.cpp:987">
<![LOG[Clear local default environment]LOG]!><time="09:33:27.176+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="executionenv.cxx:807">
<![LOG[user did not specify local data drive]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="utils.cpp:1974">
<![LOG[Volume X:\ is not a fixed hard drive]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="1" thread="292" file="utils.cpp:1077">
<![LOG[TSM root drive = ]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="1" thread="292" file="utils.cpp:1142">
<![LOG[We do not find an available volume to store the local data path]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="1" thread="292" file="utils.cpp:1989">
<![LOG[set a global environment variable _SMSTSNextInstructionPointer=2]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="executionenv.cxx:668">
<![LOG[set a TS execution environment variable _SMSTSNextInstructionPointer=2]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="executionenv.cxx:386">
<![LOG[set a global environment variable _SMSTSInstructionStackString=]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="executionenv.cxx:668">
<![LOG[set a TS execution environment variable _SMSTSInstructionStackString=]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="executionenv.cxx:414">
<![LOG[save the current environment block]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="executionenv.cxx:833">
<![LOG[pszPath[0] != L'\0', HRESULT=80070057 (e:\nts_sccm_release\sms\framework\core\ccmcore\path.cpp,60)]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="path.cpp:60">
<![LOG[Filesystem::Path::Add(sEnvPath, EnvDataFileName, sEnvPath), HRESULT=80070057 (e:\qfe\nts\sms\framework\tscore\environmentlib.cpp,676)]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="environmentlib.cpp:676">
<![LOG[Failed to save environment to (80070057)]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="2" thread="292" file="environmentlib.cpp:697">
<![LOG[TS::Environment::SharedEnvironment.saveEnvironment(szPath), HRESULT=80070057 (e:\nts_sccm_release\sms\client\tasksequence\executionengine\executionenv.cxx,842)]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="executionenv.cxx:842">
<![LOG[Failed to save the current environment block. This is usually caused by a problem with the program. Please check the Microsoft Knowledge Base to determine if this is a known issue or contact Microsoft Support Services for further assistance.
The parameter is incorrect. (Error: 80070057; Source: Windows)]LOG]!><time="09:33:27.348+240" date="08-24-2015" component="TSManager" context="" type="3" thread="292" file="executionenv.cxx:842">
<![LOG[saveEnvironment(), HRESULT=80070057 (e:\nts_sccm_release\sms\client\tasksequence\executionengine\executionenv.cxx,420)]LOG]!><time="09:33:27.348+240" date="08-24-2015" component="TSManager" context="" type="0" thread="292" file="executionenv.cxx:420">

 

The process around "User did not specify a local data drive" also diverges from the logs in the beginning. It first checks is drive X:\ is right, passes over it, and then fails (early in the logs it does this process, but proceeds to locate drive D:\ and use that.

 

SO I am suspicious that perhaps my disk-clean operation is destroying the dd.exe file and image that I downloaded to use in this imaging process?

 

I'm pretty new at using this tool, so any insight at all is helpful!

Share this post


Link to post
Share on other sites

  • 0

<![LOG[Failed to save environment to (80070057)]LOG]!><time="09:33:27.333+240" date="08-24-2015" component="TSManager" context="" type="2" thread="292" file="environmentlib.cpp:697">

 

if it can't store the files on a suitable drive then it will fail, i don't know how you'll store your files somewhere other than x:, you can't store them in x: and the task sequence wants to store them on a drive formatted as NTFS

 

how you move forward with it i dont know,

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.