How do you mount a device like normal unix?
Hi,
I'm trying to secure some files by encrypting a disk image (DMG file). I'm doing everything through the terminal so that I can script it.
For the first step I want to mount the disk image file. But, I'm struggling to find a way to mount the disk image so that it becomes a normal part of the file system. Under Linux I would do something like this:
$ mount -t ext3 /dev/hda1 /home/steve/projects/privatemount
Under Mac OS X, I can't get it to work. I found a hdiutil command but there are all sorts of issues between it and the Finder. The closest I've got is this:
$ hdiutil attach -verbose -nobrowse -mountpoint /Users/steve/Projects/privmount /Users/steve/Projects/private-encrypted.sparseimage
Which mounts it as a directory from terminal (great), and doesn't show it up in the Finder as a removable device (great). But, the problem is that you can unmount it (hdiutil detach) while you're accessing the directory i.e editing a file. This is no good because I could lose files (seems like a bug to me). If I edit the file from vim from the command line then lsof shows the file being used. But if you access the file through the Finder i.e edit it with textmate, then lsof doesn't see the file access!
Does anyone know what the magic incantation is to mount a device from the terminal as you would a normal UNIX, have the Finder not show it as a removable device, and ensure that you can't unmount it while a user is accessing the contents?
Thanks,
Steve
Hi Bill,
Yeah that works but it shows it as a removable disk (as your second post pointed out). I'm hoping there's a solution where it won't show up as a removable disk. It's just annoying not being able to stitch together a seamless file system from a bunch of disk images!
Thanks,
Steve
Similar Messages
-
if you deleted a device off of find my iphone.how do you get the device to start back up agian and put it back on find my iphone? becuase i have delted my dads iphone acedentily of find my iphone and it is nownot working. his phone is just staying at a black screen with a loading circle on it. i need to know how to fix this..like do i go the to apple store or the carrier store or can i fix it at home?
Try these two ways to fix the iPhone (in order). If neither works, you would have to take it to the store.
1. Reset the iPhone. Hold the on/off and home buttons togehter for about 10 seconds. If it works, you'll get the Apple logo and then something good should happen.
2. Try recovery mode as described here:
http://support.apple.com/kb/HT1808
If one of these work, you can then re-introduce the iPhone to Find My iPhone by doing Settings > iCloud > Find My iPhone = "On" on the device. -
How do you track a device offline?
So I went out to eat with my family, and I lost my Ipod touch. I tried using find my Iphone, but it says device offline. What I'm really trying to say is how do you track a device offline
you will have to use the old fashioned way, like if you lost a wallet or purse.
- Change the passwords for all accounts used on the iPod and report to police
- There is no way to prevent someone from restoring the iPod (it erases it) using it.
- Apple will do nothing without a court order
Reporting a lost or stolen Apple product
- iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number -
I subscribed to iTunes Match. How do I sync other devices like my iPod and home computer
I subscribed to iTunes Match how do I sync other devices like my iPod and home computer?
http://www.apple.com/itunes/itunes-match/
-
How do you change a device's name in the sound setting? For example, Let's say I want to change " logo headset" to "log microphone." I need to do this in order for Rosetta Stone to recognize my USB Logitech headset. I'm extremely confused. Please, just help.
It is very difficult to offer troubleshooting suggestions when the "os version" you are using is unknown as each os has their own troubleshooting solutions.
You can also post in your installed os section of the message board. -
How do you delete a device in Logic Pro X Control Surfaces Setup?
How do you delete a device in Logic Pro X > Control Surfaces > Setup?
Go here:
http://help.apple.com/logicpro/mac/10/
Search on Bounce -
How do you reassign a device to Mac OS once it has been assigned to the Windows OS using Parallels? I've tried ejecting device and plugging in again. I've tried restarting Mac and shutting down Mac completely, but never get the device window to pop up to select the Mac for the device.
See:
http://download.parallels.com/desktop/v5/docs/en/Parallels_Desktop_Users_Guide/2 6819.htm
That is one topic from the guide, not the whole guide -
How do you delete and app like big fish?
how do you delete and app like big fish? I did not want the game but the manager is still on my computer.....I want to delete it. Is their a way to do that. because it doesn't have an uninstall.
Drag it to the trash from your Applications folder.
-
How do you remove a device from Network Magic?
r_starrynight wrote:
Hi, I removed 2 devices and after that understood that they were my cell phone and iPOD! now as I try to connect to the internet with my cellphone I cannot! how can I solve this problem?
Hi r_starrynight,
You have not mentioned your Router. Does it have a Network Filter? Disable it.
thecreator - Running Network Magic version -5.5..9195.0-Pure0 on Windows XP Home Edition SP 3
Running Network Magic version -5.5.9195.0-Pure0 on Wireless Computer with McAfee Personal Firewall Build 11.5.131 Wireless Computer has D-Link DWA-552 connecting to D-Link DIR-655 A3 Router. -
HT4972 How do you sync a device to a different pc?
How do I update a device to iOS5 or later to a different pc without losing media content? The original pc I first connected to the device no longer exists.
You will need to update the computer with the media and other content that you have. Check this document prepared by another user about what happens when you no longer have the computer you normally sync with https://discussions.apple.com/docs/DOC-3141
-
How do you "mount" your iPod Touch on AirSharing?
Ive read in reviews and the app description that you can pretty much mount your ipod as like a virtual drive or something, how do you do this?
Get the app. Launch it on the iPod Touch. It will show an IP address. In Windows, create a new Network Place for that IP address. The iPod Touch will show up, clicking on it will open it as a folder in Windows.
-
How do you keep both devices synced to eachother?
Hi! I set up sync to my Home computer on my Work computer. Now, when I add things to favorites etc at work why doesn't it sync up at home? On the 2nd device (work) there is a "sync now" option but not on primary device ( home). How can I keep both devices synced? THANK YOU!!
Hi!
It looks like your Home computer is not yes synced.
In order to make sure that both computers share their information you need to set up Firefox Sync in both of them, here is how: [[How do I set up Firefox Sync?]] and start in the Part 3. Pay special attention to the description about how to sync devices when you are not near your other computer (the Recovery Key will help you in this case).
Let me know if this helps. -
How to design Customized ALV report like normal report !
Hello Friends,
I like to design a ALV report, with sub headers, sub totals, summary total and other summary details like percentage sale, which is not relavent to the fields displayed in the ALV.
I know it is possible to get total of the displayed field, but is it possible to design flexible ALV report like normal report.
Could U please provide example code, if available.
Thank you,
SenthilHI,
Just check this example.
REPORT ZLAXMI_ALVEXER2 MESSAGE-ID ZZ .
*& TABLES DECLARATION *
TABLES: VBAK.
*& TYPE POOLS DECLARATION *
TYPE-POOLS: SLIS.
*& INTERNAL TABLE DECLARATION *
DATA: BEGIN OF ITAB OCCURS 0,
ICON TYPE ICON-ID,
VBELN LIKE VBAK-VBELN,
AUDAT LIKE VBAK-AUDAT,
VBTYP LIKE VBAK-VBTYP,
AUART LIKE VBAK-AUART,
AUGRU LIKE VBAK-AUGRU,
NETWR LIKE VBAK-NETWR,
WAERK LIKE VBAK-WAERK,
END OF ITAB.
*INTERNAL TABLE FOR FIELD CATALOG
DATA: WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
IT_FIELDCAT TYPE STANDARD TABLE OF SLIS_FIELDCAT_ALV
WITH HEADER LINE,
*INTERNAL TABLE FOR EVENTS
DATA: IT_EVENT TYPE SLIS_T_EVENT,
WA_EVENT TYPE SLIS_ALV_EVENT,
*INTERNAL TABLE FOR SORTING
IT_SORT TYPE SLIS_T_SORTINFO_ALV,
WA_SORT TYPE SLIS_SORTINFO_ALV,
*INTERNAL TABLE FOR LAYOUT
WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
*& VARIABLE DECLARATION *
DATA : V_REPID TYPE SY-REPID,
V_PAGNO(4) TYPE N,
V_DATE(8) TYPE C.
*& CONSTANTS *
CONSTANTS: C_X TYPE C VALUE 'X'.
*& SELECTION SCREEN *
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN,
S_VBTYP FOR VBAK-VBTYP DEFAULT 'C'.
SELECTION-SCREEN: END OF BLOCK B1.
SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
SELECTION-SCREEN : BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) TEXT-003.
PARAMETERS: P_LIST RADIOBUTTON GROUP RAD1 DEFAULT 'X'.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN : BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) TEXT-004.
PARAMETERS: P_GRID RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN: END OF BLOCK B2.
AT SELECTION-SCREEN.
PERFORM VALIDATE_SCREEN.
*& START OF SELECTION *
START-OF-SELECTION.
CLEAR: ITAB, ITAB[].
V_REPID = SY-REPID.
PERFORM GET_DATA.
PERFORM DISPLAY_DATA.
*& END OF SELECTION *
END-OF-SELECTION.
*--DO ALV Process
V_REPID = SY-REPID.
*--Sort the Output Fields
PERFORM SORT_FIELDS.
*--Build Field catalog for the Output fields
PERFORM BUILD_FIELDCAT.
*--Set the Layout for ALV
PERFORM SET_LAYOUT.
*& Form GET_DATA
text
TO GET THE DATA FROM TABLES INTO ITAB
FORM GET_DATA .
SELECT VBELN
AUDAT
VBTYP
AUART
AUGRU
NETWR
WAERK
INTO CORRESPONDING FIELDS OF TABLE ITAB
FROM VBAK
WHERE VBELN IN S_VBELN AND
AUDAT > '04.04.2005'
AND NETWR > 0.
LOOP AT ITAB.
IF ITAB-NETWR < 10000.
ITAB-ICON = '@08@'.
ELSEIF ITAB-NETWR > 10000 AND ITAB-NETWR < 100000.
ITAB-ICON = '@09@'.
ELSEIF ITAB-NETWR > 100000.
ITAB-ICON = '@0A@'.
ENDIF.
MODIFY ITAB INDEX SY-TABIX.
ENDLOOP.
ENDFORM. " GET_DATA
*& Form sort_fields
FORM SORT_FIELDS .
CLEAR WA_SORT.
WA_SORT-FIELDNAME = 'VBTYP'.
WA_SORT-SPOS = '1'.
WA_SORT-UP = 'X'.
APPEND WA_SORT TO IT_SORT.
CLEAR WA_SORT.
WA_SORT-FIELDNAME = 'NETWR'.
WA_SORT-SPOS = '2'.
WA_SORT-UP = 'X'.
WA_SORT-SUBTOT = 'X'.
APPEND WA_SORT TO IT_SORT.
ENDFORM. " sort_fields
*& Form build_fieldcat
*FORM BUILD_FIELDCAT .
IT_FIELDCAT-COL_POS = '1'.
IT_FIELDCAT-FIELDNAME = 'ICON'.
IT_FIELDCAT-KEY = 'X'.
IT_FIELDCAT-OUTPUTLEN = '10'.
IT_FIELDCAT-SELTEXT_L = 'LIGHT'.
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '2'.
IT_FIELDCAT-FIELDNAME = 'VBELN'.
IT_FIELDCAT-KEY = 'X'.
IT_FIELDCAT-OUTPUTLEN = '10'.
IT_FIELDCAT-SELTEXT_L = 'SALES DOC NUMBER'(009).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '3'.
IT_FIELDCAT-FIELDNAME = 'AUDAT'.
IT_FIELDCAT-KEY = 'X'.
IT_FIELDCAT-OUTPUTLEN = '4'.
IT_FIELDCAT-SELTEXT_L = 'DOCUMENT DATE'(010).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '4'.
IT_FIELDCAT-FIELDNAME = 'VBTYP'.
IT_FIELDCAT-KEY = 'X'.
IT_FIELDCAT-OUTPUTLEN = '4'.
IT_FIELDCAT-SELTEXT_L = 'CATEGORY'(011).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '5'.
IT_FIELDCAT-FIELDNAME = 'AUART'.
IT_FIELDCAT-OUTPUTLEN = '4'.
IT_FIELDCAT-SELTEXT_L = 'DOCUMENT TYPE'(012).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '6'.
IT_FIELDCAT-FIELDNAME = 'AUGRU'.
IT_FIELDCAT-OUTPUTLEN = '12'.
IT_FIELDCAT-SELTEXT_L = 'Order reason'(013).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '7'.
IT_FIELDCAT-FIELDNAME = 'NETWR'.
IT_FIELDCAT-OUTPUTLEN = '12'.
IT_FIELDCAT-SELTEXT_L = 'NET VALUE'(014).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
IT_FIELDCAT-COL_POS = '8'.
IT_FIELDCAT-FIELDNAME = 'WAERK'.
IT_FIELDCAT-OUTPUTLEN = '12'.
IT_FIELDCAT-SELTEXT_L = 'SD DOC CURR'(015).
APPEND IT_FIELDCAT.
CLEAR IT_FIELDCAT.
*ENDFORM. " build_fieldcat
*& Form set_layout
FORM SET_LAYOUT .
IF P_LIST = C_X .
WA_LAYOUT-WINDOW_TITLEBAR = 'LIST DISPLAY'(016).
WA_LAYOUT-ZEBRA = 'X'.
*-- ALV LIST DISPLAY
PERFORM LIST_DISPLAY TABLES ITAB.
*-- ALV GRID DISPLAY
ELSEIF P_GRID = C_X.
WA_LAYOUT-WINDOW_TITLEBAR = 'GRID DISPLAY'(017).
WA_LAYOUT-ZEBRA = 'X'.
PERFORM GRID_DISPLAY TABLES ITAB.
ENDIF.
ENDFORM. " set_layout
*& Form list_display
FORM LIST_DISPLAY TABLES P_ITAB .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT[]
IT_SORT = IT_SORT[]
I_SAVE = 'U'
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " list_display
*& Form GRID_DISPLAY
FORM GRID_DISPLAY TABLES P_ITAB .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT[]
IT_SORT = IT_SORT[]
IT_EVENTS = IT_EVENT
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " GRID_DISPLAY
*& Form VALIDATE_SCREEN
text
--> p1 text
<-- p2 text
FORM VALIDATE_SCREEN .
DATA: LV_VBELN LIKE VBAK-VBELN.
IF NOT S_VBELN IS INITIAL.
SELECT VBELN
INTO LV_VBELN
UP TO 1 ROWS
FROM VBAK
WHERE VBELN IN S_VBELN.
ENDSELECT.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'INVALID SALES DOC'.
ENDIF.
ENDIF.
ENDFORM. " VALIDATE_SCREEN
*& Form display_data
text
--> p1 text
<-- p2 text
FORM DISPLAY_DATA .
DEFINE M_FIELDCAT.
ADD 1 TO WA_FIELDCAT-COL_POS.
WA_FIELDCAT-FIELDNAME = &1.
WA_FIELDCAT-REF_TABNAME = 'VBAK'.
WA_FIELDCAT-DO_SUM = &2.
WA_FIELDCAT-CFIELDNAME = &3.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
END-OF-DEFINITION.
DATA:
LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
LT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
M_FIELDCAT 'ICON' '' ''.
M_FIELDCAT 'VBELN' '' ''.
M_FIELDCAT 'AUDAT' '' ''.
M_FIELDCAT 'VBTYP' '' ''.
M_FIELDCAT 'AUART' '' ''.
M_FIELDCAT 'AUGRU' '' ''.
M_FIELDCAT 'NETWR' 'C' 'WAERK'.
M_FIELDCAT 'WAERK' '' ''.
ENDFORM. " display_data
Regards
Laxmi -
How do you maintain multiple device music lists from 1 computer?
How do you maintain different music lists on separate devices to be synched from one computer? Is it best to establish multiple ID's?
I would just make playlists.
-
HT1918 how do you determine what devices are set up under homesharing
Does anyone know how you determine what devices are set up under homesharing? I am not finding a list of devices under my account.
Welcome to the Apple Community.
There are no lists, you'll need to check each device.
Maybe you are looking for
-
WEB.XML gives me an error while deploying a Web Application in Weblogic 5.1
I have a Web.xml which I copied the one from their documentation and edited for my servlet specific data. When I try to deploy it I am getting the following error. Wed Nov 15 17:10:37 EST 2000:<E> <HTTP> Error reading Web application 'C:/to
-
IChat 4 troubles: Can not connect AV with another iChat user
Grrr... My computer has a built in iSight camera and I am trying to connect with another iChat 4 user using a Creative Live! USB cam. I get the following when trying to connect or vice-versa: Date/Time: 2009-05-03 20:37:39.157 -0500 OS Version: 10.5.
-
Service request interactive report is not working with IC Roles
Dear Experts, We are using CRM 7.0 EHP1, we have created some custom reports based on std service request query, we can able to see these reports in IC_AGENT role as well as ZIC_AGENT role but when we click on these reports nothing is happening. But
-
I have created a database link in Oracle 9i to access the data stored in a remote MSSQL Server machine. Can I create multiple database links in Oracle 9i to access different remote MSSQL Server machines? If yes, please advise how to accomplish this.
-
"emctl start iasconsole" can't start
Hi all, I just to start OEM console on Infrastructure machine. but it failed and the error msg as below : - Oracle Enterprise Manager 10g Application Server Control 9.0.4.0.0 Copyright (c) 2002, 2003 Oracle Corporation. All rights reserved. Starting