Cryptsetup: do I need to manually losetup an image?

I'm new to dm-crypt and trying to create/use a encrypted image file. I followed the wiki page of dm-crypt and everything works.
But in the wiki: https://wiki.archlinux.org/index.php/Dm … oop_device , an image file is first setup as a loop device using losetup. And accidentally, I find out that cryptsetup seems to be able to handle the image file directly, i.e. it's ok to do "cryptsetup open crypt.img secret". So why the wiki page instructs us to manually losetup the image before running cryptsetup? Is there any benefit of doing so? Or will letting cryptsetup handling image file as device dangerous?
Thank you!

This is how it works.
First,you start with an image file at a path like "/home/ink/crypt.img".
Second,a loop device is attached to the file and you end up with an address like "/dev/loop0".
Third,cryptseup creates an encryption mapper in "/dev/mapper" with an address like "/dev/mapper/crypt.img"
Fourth, the file system in the encryption mapper at "/dev/mapper/luks.img" is mounted and the volume is accessed.
When done,all above steps are taken in reverse order.
First,the file system on the encryption mapper is unmounted.
Second,the encryption mapper is closed.
Third,the loop device is detached.
Fourth,you end up where you started,with a locked volume.
To check if the volume is locked,the place to  look for it is in "/dev/mapper".If its encryption mapper is not there,then the volume is not open.
Its not possible to have an unlocked volume that is not baked by a loop device so if the loop device is gone,then then volume is probably also
locked so you should be safe.
I do not use GNOME so i cant test for you but if the encryption mapper is gone and the loop device is also gone when you unmount the volume,then
your volume is probably safe as somebody else auto does all the mentioned reversed steps for you.

Similar Messages

  • Need to manually override vbup-lfsta for fully invoiced order

    We have two sales orders in production that have been fully invoiced, but due to an old bug in our shipping point determination logic, the shipping point was accidentally cleared in the sales order, thereby showing it as incomplete (which is correct).    Because these documents have fully delivered and invoiced, we cannot update the shipping point but need a way to manually change VBUP-LFSTA from A to C (something similar to VL_complete, but for a sales order).      I am basically looking for the OPPOSITE of program SDVBUK00, which corrects incorrect VBUP and VBUK settings.     I need to manually override the settings since these are very old documents, cannot be reversed, rejected or changed and are not needed to show on the incomplete orders report because they were shipped and billed.
    Thank you in advance for your time!
    Regina
    Edited by: Regina DeMita on May 13, 2010 4:59 PM

    Hello Regina
    I have the following suggestions for you.
    1) The only way these docs may be bothering you is by showing up on the incomplete orders report. If you eliminate them in that report,  then you should be fine I guess. So my workaround is use Tcode V_ UC and create a variant excluding these 2 documents from the list (using the Sales Document field in the General doc data section and the option to exclude single values) and make this variant the default for all users.
    2) Use Z-code to change the status. See OSS notes 1177165 and 617501, the second one particularly because it has Document # in the selection criteria. They are meant to correct the Revenue Recognition status of sales documents and may be you can copy and adapt one of them to suit your situation. Or best ask SAP to provide one as they have done program from note 1177165 based on customer request.
    Hope this helps.

  • Before I install CS4 (design standard) do I need to manually or otherwise remove CS1 (the original Creative Suite)?

    Before I install CS4 (design standard) do I need to manually or otherwise remove CS1 (the original Creative Suite)?
    I am using an iMac OS 10.5.8, 2.4 GHz Intel Core 2 Duo, 1 GB, 800 MHz. AllI know is that you can't upgrade from CS1.
    I am in the misdt of several production projects and can't afford a mistake or down time. Thanks for any and all help.
    P.S. Is Snow Leopard compatiable with CS4?
    Thanks, Compositor Rick

    You can upgrade from CS1 to CS4. CS1 will be out of the upgrade path when CS5 is released.
    You don't need to remove CS1 it does not conflict with CS4. I have CS1 through CS4 installed and playing nicely together.
    CS4 is compatible but  I would stay with 10.5.8 until Apple gets most of the bugs worked out of Snow Leopard. that is usually about the 4th update.

  • Can i avoid needing to manually enumerate all TestCases in a TestRunner for an ant build?

    flexunit gurus,
    i've been experimenting with the FlexUnit4SampleCIProject as part of following the instructions for ant builds at http://docs.flexunit.org/index.php?title=Ant_Task
    this sample project utilizes a TestRunner.mxml file that manually enumerates every TestCase that should be run as part of the tests.  e.g. after i modified TestRunner.mxml to test my locally developed classes, a snippet looks like this:
                    var core : FlexUnitCore = new FlexUnitCore();
                    core.run(MathUtilTest, StringUtilTest);
    the ant build then invokes that TestRunner as part of the build:
            <!-- Execute TestRunner.swf as FlexUnit tests and publish reports -->
            <flexunit swf="${bin.loc}/TestRunner.swf"
                toDir="${report.loc}"
                haltonfailure="false"
                headless="false"
                verbose="true"
                localTrusted="true" />
    the associated maven build for this project does not require a TestRunner.mxml.  the following snippets from the configuration of the flexmojos plugin in the pom.xml allows for the TestCases to be run without needing to manually enumerate them ahead of time::
                   <includeTestFiles>
                      <includeTestFile>*Test.as</includeTestFile>
                   </includeTestFiles>
    Flash Builder 4 now supports a model like flexmojos - I can simply right click a project or folder and select Execute FlexUnit Tests and all the tests are run, without needing a TestRunner.mxml.  Flash Builder appears to accomplish this by dynamically generating (and then compiling and executing) 2 mxml files based on the FlexUnit tests found in the project/folder.  In Flex Builder 3 days, I had to manually maintain a TestRunner.mxml, which was error prone and cumbersome.
    my question is whether there is support in an ant build for running all *Test.as files without needing an associated TestRunner.mxml.  if so, could you post an example on how to accomplish this?  i suppose i could create a custom ant task that dynamically generates a mxml file after searching the file system for *Test.as files (similar to what Flash Builder 4 does), but since this seems like such a common need i'm hoping it is (or can be) provided as part of FlexUnit's ant tasks.
    thanks.
    -mike

    they aren't there yet, but...
    if you want to have a little fun, this code is already in our github master
    <flexunit workingDir="${bin.loc}" toDir="${report.loc}"
    haltonfailure="false" verbose="true" localTrusted="true">
       <testSource dir="${main.src.loc}" />
       <testSource dir="${test.src.loc}">
          <include name="**/*Test.as" />
       </testSource>
       <library dir="${lib.loc}" />
    </flexunit>
    documentation and being 'official' are not far off, but due to some logisitcs I can't give you a firm date just yet,
    mike

  • I need a manual for model SNPRC-0703-01 #CB022A-64003

    Hewlett-Packard Model SNPRC-0703-01 #CB022A-64003 I need a manual for this.  Thanks

    Hi @ma1221,
    Welcome to the HP Forums!
    I understand that you need a manual for your HP Officejet Pro 8500 All-in-One Printer - A909a. I am happy to help!
    Please visit this website, HP Officejet Pro 8500 All-in-One Printer - A909a User guides, and then you can download your user guide.
    Hope this is what you are looking for, and have a great day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Equium A110-233 - I need select manually the boot device from menu

    In the last few days when I turn on my laptop the Toshiba screen appears but I need to manually go in and select the boot device to start windows.
    (Down the bottom the message 'Press F2 for set up. Entering boot device selection menu')
    Why has this started and what can I do to get it to go straight into Windows XP like it used to?

    After switching your notebook ON please use F12 button and you will be able to select the first bootable device.

  • My mac mini will not shut down.  I need to manually shut it off with the power button.

    My mac mini will not shut down or restart.  I need to manually shut it off with the power button.

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time after  you had the problem. Select the messages logged before the boot, while the system was unresponsive or was failing to shut down. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V). Please include the BOOT_TIME message at the end of the log extract.
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the entire contents of the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post any other kind of report — it will be very long and not helpful.

  • Since upgrading to Lion OS, the wifi connectivity keeps blocking up intermittently and we need to manually keep switching on and off the wifi utility to get the connection back. even locking the preferred wifi network in system preferences does not help.

    Since upgrading to Lion OS 10.7.1, the wifi connectivity keeps blocking up intermittently and we need to manually keep switching on and off the wifi utility to get the connection back. even locking the preferred wifi network in system preferences does not help. This never used to happen with Snow Leopard

    This is a big thank you to Rys Sinnefeldt who posted this fix.
    Rys has made this fix very easy to do and takes literally 2 mins. It involves replacing the Atheros Lion driver 4.0 and replacing it with the snow leopard driver. Don't worry, Rys has made this so simple to do even I could do it and so far I have had no more wifi drops.
    follow this link
    http://rys.pixeltards.com/2011/09/04/osx-lion-wifi.html
    Thanks again to Rys.

  • HT4972 I want to upgrade my iPad to IOS 5.  I understand the upgrade erases media content.  If so, do I need to manually back it up?  Where/how do I back it up?  How do I restore it?  content

    I want to upgrade my iPad to IOS 5.  I understand the upgrade erases media content.  If so, do I need to manually back it up?  Where/how do I back it up?  How do I restore it?  content

    You can only update to the latest iOS which currently is iOS 5.1.1.
    Connect your iPad to your computer and follow the prompts. If iTunes is not the latest version then you will be prompted to update that first. The same will then apply to your iPad. It will automatically do a backup unless you tell it otherwise and y will be prompted to restore from that backp in the latter part of the process.
    Here's the link for th User Guide. Read and re-read it! http://support.apple.com/manuals/#ipad

  • [Solved] Do I need to manually update my -vcs packages in the AUR?

    I've got a few -vcs packages in the AUR (one hg, 3 svn).  Do I need to manually update the versions in the AUR as the code changes, or does this happen automatically?  I know that makepkg updates the version automatically in the local PKGBUILD, but I want to make sure the people using these packages see the new versions in the AUR.
    Last edited by nofrak (2010-11-06 19:03:42)

    You need to do it manually.
    !next

  • Serial not detected, and cannot register serial.. .need a manual

    Hi! I am new to the IPod World... now, I have a big problem: if I want to fetch a manual from the IPod webpage, I am asked for a serial number. Everytime I enter the one on the back of my computer: 2CD5240X0R, it does say that this number is not a valid serial number. If I use the automatic detection, , it says no serial found.
    If I want to register this Ipod with apple, it says that this serial number is not valid ("Enter a valid serial number). [I even tried it with "-1" as suffix)..
    Now, I would need a manual for this Ipod, and since my serial number is not accepted and I do not know which modell it is, not even the generation - within the Ipod, when I ask for the about, it says Modell PS492AAABA - how can I proceed? It has a color display, 30 GB, can load pictures, and the serial is as suggested.
    Can someone tell me what to do? I do not know how to contact apple.. and I do not know how to manually find out what Ipod it is (5th gen? or some other)...
    Many thanks!
    HP   Windows XP   IPod

    See if this helps: Identifying different iPod models

  • Need User Manual Details in Manual BRS

    Hi Experts
    I done Manual BRS customization for my client in development. That one I imported in quality. Now i need user manual details for providing training to my client (end user). I need standard T code for using BRS. As of now I know T code:FF67 AND i searched in google i got some t code related Manual BRS- FEBA / FEBA_BANK_STATEMENT for further reprocessing.
    But i cant able to understant this two t code, Is there any other t code is there  like reprocessing, reporting etc.,
    Please give me list of t code and how it will work explain me.
    Thanks & Regards
    Mani.S

    HI
    Apart from all the above information, i found one thing missing was deletion of bank statement process if any wrong statement is uploaded by mistake.
    1 First see that any postings have happened or not, if yes that thru FBRA you need to reverse that .
    2. Go to SE38 and run RFEBKA96 to delete the bank statement choose application 0001and select the checkbox on bank statement which you need to erase.
    Hope this helps
    Regards
    Minesh

  • Need User Manual for Firefox

    Need User Manual for Firefox.

    Hi hiddensmiles,
    We have a whole section here on [https://support.mozilla.org/en-US/kb/how-do-i-install-firefox-and-get-started Getting Started with Firefox]. It should cover all the basics from downloading and install to using the core features.
    If you have other questions, be sure to search the Knowledge Base. There is tons of great information there. If you can't find your answer there, you can always ask the volunteers here on the forums.
    Hopefully this helps!

  • I need user manuals

    hi friends i need user manuals of all linksys products , specially of routers if anyone any have manuals private message me or if u have any web link please reply me mahendra
    (Mod Note: Removed Email address.)
    Message Edited by daikunzeon on 02-14-2008 05:38 AM

    I agree with the sentiment of this request.
    Why aren't the full user guides available for download from this site?
    e.g. the PDF manual that came on the CD with my WRT54GSv7 is over 12MB, but the v7 user guide available for download here on linksys.com is only about 4.5MB.
    If people misplace their CDs, Linksys is driving them to black market sources that probably would not even exist if Linksys made the full manuals available for download.

  • Do In need to manually disable JAVA in LION to protect from FlashBack?

    Do I need to manually disable JAVA in a new installation of LION to protect from FLASHBACK or does it install with JAVA disabled by default?

    It's disabled by default.  But that's assuming a new installation or on a new Mac.
    It's easy enoug to double check in Safari>Preferences>Securtity.
    Also, double check Java prefernces systme wide by launching the Java Preferences from the Utilities folder inside the Applications.
    If it asks you to first install Java then click Not Now.  If it does open prefernes, make sure they are unchecked in the General tab.
    Here's a good overview that OSX Daily published a while back.
    http://osxdaily.com/2012/04/07/tips-secure-mac-from-virus-trojan/
    Matt
    Message was edited by: Matthew Morgan

Maybe you are looking for

  • Can I Use a XML file as Managed Resource?

    Hi, I have a XML file which has all employee details. Can I use that XML file as a Resource in IDM? If so please let me know the steps to do. Please help me in this regard. Thanks RMS

  • Deleting a Business System and related/assigned objects

    I am PI newbie (as will soon become apparent) so first I apologise for my "simple" question. In PI one business system has been replaced with another e.g. BS_US_1CLNT is replaced by BS_US_2CLNT. I want to delete the first business system and all its

  • MSS KEY_FIGURE_MONITOR

    Hi, I have implemented ESS & MSS. Our systems are ECC 6.0 EP 7 SP 15 ESS & MSS 1.0 XSS 600 SP 6 BP for Common Parts I have full authorization for the user in both ECC and Portal system and most of the performed post installation MSS configuration. Th

  • Playlists shuffled in itunes but alphabetic in ipod

    I have an ipod classic which recently crashed and was reset and is working fine except my playlists are playing in alphabetic order rather than shuffled as they are in itunes. How do I fix that. Also, can I suffle a playlist and then move songs into

  • Problem using/upgrading camera raw

    I have Windows 7/64 bit. When I first installed Photoshop CS5, I immediately upgraded Camera Raw. Later, after opening Bridge from Photoshop, I found I could not get Bridge to open a file in Camera Raw. I knew that Raw was working because I had previ