Mounting existing directory as a ramdisk

I get bored in class.
For most people, this means browsing facebook, but I couldn't care less about that. Since my laptop has minimal graphics abilities, I've reverted to playing games in Dosbox. Problem: Nobody cared about power consumption in that era and those games tend to keep the hard drive spun up. This burns up my battery.
Eventually I'll get an SSD, but in the mean time I realized that the whole DOS C: drive is so small I could just mount it in a ramdisk. But then I would have to mount the ramdisk in some other directory, copy everything over, edit dosbox.conf, and then copy it back when I'm done.
So wouldn't it be cool if you could just remount an existing directory as a ramdisk, and have all its original contents automatically coppied to ram and then coppied back to the hard drive when you unmount it? Wouldn't that also be handy for your firefox profile, and other stuff that expects things to be in a specific directory? Anyone know an easy way to do this?

See profile-sync-daemon and anything-sync-daemon by graysky.
Edit: @graysky: If you had waited 10 seconds, you could have avoided the shameless self-promotion...
Last edited by alphaniner (2013-03-18 20:17:59)

Similar Messages

  • Import already existing directory structure into DFS namespace?

    Hi all,
    I'm planning to migrate three file servers to a single DFS namespace and after reading the official docs and numerous blog posts I'm still unsure about the right way to do it.
    The "main" server already has a share with a complex directory structure, called \\server1\team, and that share shall become the root of the new DFS namespace, lets call it  \\domain.local\team.
    Part of that already existing directory structure is this folder: \\server1\team\admin\communication\archive. The folder "archive" contains thousands of files in numerous folders and shall become a dfs link to another share \\server2\archive. But
    before I can create the folder "archive" as a dfs link I have to create the folder "admin" in the dfs hierarchy of course, then below that the folder "communication"
    Question: When I try to create a folder "admin" in the dfs namespace, I get the error message "the folder cannot be created in the namespace. The file exists."
    Ok, the folder "admin" indeed exists, but how can I "import" this branch of the existing directory hierarchy into the dfs namespace?
    Do I have to rename the existing folder "admin" to e.g. "admin2", then create the dfs folder "admin" and move the complete directory structure below "admin2" to "admin"? Or can I simply make the existing folder
    "admin" a dfs folder?
    Thanks in advance!
    Regards
    Christoph

    Mandy, thanks for your feedback!
    I have to describe my problem more precisely: creating the root of the new DFS namespace is *not* the problem. This worked for me exactly as you expained it. The problem appears when I try to create a folder below that root in the DFS namespace. If that
    folder already exists in the share you cannot choose how to handle security settings but you get an error message, and that's it.
    This may be helpfull to explain what I want to achieve:
    Old structure:
    \\server1\team - folder admin - subfolder "archive" - lots of subfolders and files
    Now I want to move all files and folders from "archive" to \\server2\archive and link this share into the new DFS namespace, so that our users don't notice any change when they access that archive folder.
    new structure:
    1. Create DFS namespace root: \\domain.local\team  -> \\server1\team   (works!)
                |
    2. Create folder admin  (problem!)
                |
    3. Create subfolder "archive" -> \\server2\archive (not possible becaues "admin" couldn't be created)
    I could perhaps create a DFS namespace with the root \\server1\team\admin\archive and link that to \\server2\archive, but I would like to avoid creating a new namespace for each share which from \\server2 which I mount into some subfolder of \\server1\team...
    Thanks for reading.
    Regards
    Christoph

  • How to install Delegated Administrator 4.5 into an existing directory.

    I have installed iDA 4.5 in a test environment and found that it works beautifully for what I need it to do. The problem that I have is that our existing directory is so different from the one used by iDA that I have no idea how to successfully make our directory "manageable" with iDA.
    The installation of iDA wants to create a new organization upon installation (like o=isp). I have made a test copy of our directory on a new server and have tried to point to our organization (o=mmi). When I do this it says:
    "This suffix is not an iDA Entry. iDA can't manage it."
    If I select another suffix like o=isp, it installs just fine, but obviously all of our user and group information cannot be managed.
    Our directory structure is also significantly different than what iDA expects. When you create a new organization in iDA, it automatically uses an ou=People and ou=Groups for storing that information. Our existing directory starts at o=mmi as the root and then has a number of ou's for different geographical locations (such as ou=utah). Then the users and groups are in that OU (no sub-OU of People or Groups). If I can get iDA to install in o=mmi, I still have to make it understand that all users and groups belong in that ou.
    Does anyone have any experience or better documentation in getting this to work with an existing directory. It looks like it's going to be a lot of work, but I believe it will be worth it if I can get to the type of web administration that I saw while evaluating the product.
    Any help would be greatly appreciated.

    I had such a problem, once, I learned shell scripting, awk and then perl to solve this problem.
    The way you have your users structured was the old policy, when people started to use LDAP (or X500) this was the most obvious way of doing things. Now, we know that APPLICATIONS need to read the ldap structure, not people so, I would use a 2 steps (and several monthes) aproach:
    Now you have an OU=NY with all the people that work in New York, create a group called New_york and, put all the NY peole in the ou=people and, put a reference to the user in the New_your group.
    The best way of doing this is exporting all your user DB to an ldif file, making your scripts and, go for it.
    Test everything and, then, start to change your structure again to put it in the iDA format. this way, not only you get the advantages of iDA but, you also get a better ldap structure and, possibly, much faster.
    It took me something like 2 monthes of work to do that, whithout stoping my regular work because of that (30 - 60 minutes per day). If you have a very big structure, do a tar of your Directory files to another machine and, work there. Just be carefull with the changed passwords.
    Hope this helps

  • ORA-22285 - non-existent directory or file for FILEOPEN operation

    Hello
    I want to insert the xmldata from a xmlfile to the a table, with this scirpt:
    #!/bin/sh
    set -x
    for i in `find . -name "dspevent*.xml"| awk -F"/" '{print $NF}'`
    do
    echo $i
    fname_old=$i
    fname_neu=`ls $i | awk '{print "OK_"$0}'`
    cat $i | sed 's/aps://g' >$fname_neu
    echo $fname_neu
    rm $i
    #insert_xml $fname_neu
    INSERT_XML=`sqlplus -s username/passwort@database <<EOF
    INSERT INTO event_xml (name,
    dtsysl,
    hrsysl,
    dtcptl,
    nusesi,
    dsp_step,
    dsp_state,
    bat_class,
    bat_program,
    bat_seqi,
    bat_state)
    SELECT *
    FROM XMLTABLE (
    'Operations/Event'
    PASSING xmltype (BFILENAME ('EVENT_DIR', '$fname_neu'),
    NLS_CHARSET_ID ('CHAR_CS'))
    COLUMNS name VARCHAR (40) PATH 'name',
    dtsysl DATE PATH 'dtsysl',
    hrsysl NUMBER PATH 'hrsysl',
    dtcptl DATE PATH 'dtcptl',
    nusesi NUMBER PATH 'nusesi',
    dsp_step VARCHAR (40) PATH 'DSP/step',
    dsp_state VARCHAR (40) PATH 'DSP/state',
    bat_class VARCHAR (40) PATH 'BAT/class',
    bat_program VARCHAR (40) PATH 'BAT/program',
    bat_seqi NUMBER PATH 'BAT/seqi',
    bat_state VARCHAR (40) PATH 'BAT/state');
    EOF
    `
    done
    But the problem is, that I have always this error message:
    ORA-22285 -> non-existent directory or file for FILEOPEN operation
    I'd create a direcotrie and over utl_file.fopen I can write a file to this directorie, but this works over the path, not over the directory name. the utl_file_dir parameter was also set to the correct path. Whats wrong or how can I debug this problem?
    thanks.
    roger

    - the name of the directory is correct.
    - how can I check, that the user can use the directory?
    - in this logfile you can see that, the file name will replace correctly:
    ./dspevent.sh
    + awk -F/ {print $NF}
    + find . -name dspevent*.xml
    + echo dspevent_db_20110503030448_10641.xml
    dspevent_db_20110503030448_10641.xml
    fname_old=dspevent_db_20110503030448_10641.xml
    + awk {print "OK_"$0}
    + ls dspevent_db_20110503030448_10641.xml
    fname_neu=OK_dspevent_db_20110503030448_10641.xml
    + sed s/aps://g
    + cat dspevent_db_20110503030448_10641.xml
    + echo OK_dspevent_db_20110503030448_10641.xml
    OK_dspevent_db_20110503030448_10641.xml
    + rm dspevent_db_20110503030448_10641.xml
    + sqlplus -s username/passwort@db
    INSERT INTO event_xml (name,
    dtsysl,
    hrsysl,
    dtcptl,
    nusesi,
    dsp_step,
    dsp_state,
    bat_class,
    bat_program,
    bat_seqi,
    bat_state)
    SELECT *
    FROM XMLTABLE (
    'Operations/Event'
    PASSING xmltype (BFILENAME ('EVENT_DIR', 'OK_dspevent_db_20110503030448_10641.xml'),
    NLS_CHARSET_ID ('CHAR_CS'))
    COLUMNS name VARCHAR (40) PATH 'name',
    dtsysl DATE PATH 'dtsysl',
    hrsysl NUMBER PATH 'hrsysl',
    dtcptl DATE PATH 'dtcptl',
    nusesi NUMBER PATH 'nusesi',
    dsp_step VARCHAR (40) PATH 'DSP/step',
    dsp_state VARCHAR (40) PATH 'DSP/state',
    bat_class VARCHAR (40) PATH 'BAT/class',
    bat_program VARCHAR (40) PATH 'BAT/program',
    bat_seqi NUMBER PATH 'BAT/seqi',
    bat_state VARCHAR (40) PATH 'BAT/state');
    INSERT_XML= PASSING xmltype (BFILENAME ('EVENT_DIR', 'OK_dspevent_db_20110503030448_10641.xml'),
    ERROR at line 15:
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS.XMLTYPE", line 296
    ORA-06512: at line 1
    + echo dspevent_db_20110502190712_10641.xml
    dspevent_db_20110502190712_10641.xml

  • Using iPhoto with an existing directory structure on HD full of jpgs

    I'm using iPhoto 6. I recently moved 7,000+ photos (jpgs) off my PC onto my new Mac harddrive. They are organized into dozens of folders and subfolders. How can I use iPhoto to work with the pics within this directory structure? I tried dragging and importing several different ways, but it never preserves my extensive directory structure (just puts them all together into one big pile). I set it not to make a copy when importing. I just want iPhoto to "point" to my existing directory structure, so I can see my folders and subfolders on the left side (and from there I'll create albums and pages stuff). Thanks, Robin

    Hello, Robin,
    Welcome to the discussions.
    First, you have to consider that iPhoto organizes differently from what you are used to doing. It is designed to allow you to do your organizing from within iPhoto, using film rolls and albums. That way, you do not have to be concerned with how and where iPhoto stores the actual photos.
    If you want to keep the same type of organization that you have now, you can import the photos one folder at a time, so that iPhoto puts each folder into a separate film roll. You can change the date on import, since iPhoto will give the roll the date of import, not the date of the photo.
    To get the subfolders into folders, use the album creation feature in the Source pane and create the albums and folders to suit your organizational needs and drag the photos into the appropriate locations. One of the great features of iPhoto's album function is that you can have a photo in more than one album.
    Please take a look at iPhoto's tutorial here:
    http://www.apple.com/ilife/tutorials/iphoto/index.html
    and some great explanations of how iPhoto is structured and works in these:
    http://discussions.apple.com/thread.jspa?threadID=920223&tstart=0
    http://docs.info.apple.com/article.html?path=iPhoto/6.0/en/hlp15.html
    http://discussions.apple.com/thread.jspa?threadID=959413&tstart=0

  • Mount a directory like WEBDEV in windows in Linux/Unix

    I want to access the Files from a linux/Unix machine through a simple thick client . Is it possible to
    mount a directory like WEBDEV in windows in Linux/Unix.

    Here is a java based client that I've used. Just use the http://<hostname@doamin>/files/content for access to your files.
    http://www.ics.uci.edu/~webdav/

  • Steps to mount a directory

    Hi all,
    I have two solaris server. One is file server and another is oracle server.
    I want to mount a directory of file server in oracle server.
    Please provide me the steps to perform it. And let me know what privilege should I have.
    Thanks.

    on server, check if directory to mount is exported,
    see file e.g. /etc/dfs/sharetab (run man sharetab)
    run exportfs to export the filesystem to the outside
    verify if nfsd daemon is started (run man nfsd)
    on 'client',
    mount the remote dir:
    mount <servername>:/<remotedir> <mountpoint> <options>
    see man mount
    if you want the mount to happen automatically at access attempt,
    consider the automount
    run man automount
    Guido
    ps this is a Linux tech forum

  • JES connected to existing directory server

    Dear all,
    We have a mail system which uses sun ldap server
    but other components, like MTA, are not from sun.
    Recently we want to transform this system to JES,
    but we have such a problem.
    We dont want to change the current ldap server
    because we have hundreds of millions of users
    stored in it. If we install the JES, how can we let
    the JES recognize the current ldap schema? Is
    there any configurations which enables JES to
    recognize the existing directory schema?
    Thanks for any suggestions you give.
    alex

    Ales, JES does require several object classes and attributes. It's pretty flexible about where in the DIT those lie, but unless you can add what it's looking for, you're not likely to be successful.
    There's a tool, provided with JES, "comms_dssetup.pl" that prepares a Directory Server for use with JES.

  • Saving a file to a non-existing directory

    Hello all,
    I would like to know if it is possible to save a file to a non-existing directory using Java. I have a bad feeling that it's not possible, but if there is anyone out there who thinks otherwise, please tell me how it can be done.
    Thanks very much!
    Greetz Hans

    Hi,
    Of course you can create all you want.
    Try
              File fichier = new File(chemin);
              if ( ! fichier.exists()) {
                   // the path doesn't exist
                   ok = fichier.mkdirs();
    The mkdirs (with the s) can create the path in a recursive mode. See the File object's help
    Regards, JFB

  • Mount Home Directory when logged in locally

    I want an application that would ask for the users name and then mount and open their home directory. This will be used when a user is logged on locally and not via OD/AD. Can automator do this or should i stick to apple script. Right now my apple script looks like this.
    to getusername()
    display dialog "Enter your username:" default answer ""
    set username to text returned of result
    return {username}
    end getusername
    to getuserpwd()
    display dialog "Enter your password:" default answer "" with hidden answer
    set userpwd to text returned of result
    return {userpwd}
    end getuserpwd
    set username to getusername()
    set userpass to getuserpwd()
    tell application "Finder"
    if (username > 161000 and username < 169999) then
    open location "afp://" & username & ":" & userpass & "@wwrsdod2.wwrsd.org/HomeDirs/GY2016/" & username
    else
    open location "afp://" & username & ":" & userpass & "@wwrsdod2.wwrsd.org/HomeDirs/GY2015/" & username
    end if
    end tell
    But the finder opens up to the top level of the share and not the user's folder. Anyone help me out.
    Thanks

    Hi Tejas,
    usually when you see the server invalid (by the Yellow triangle on each repositories) means that your MDM server and MDM Clients have different version. Please, checks the version and be sure these are the same, or server version is more recent of the clients one.
    Take a look to this, may be it help:
    Re: Error Initialising database engine
    Bye,
    Vito

  • How to find out the path of already existing directory?

    I need to get the exact path of 'FCO_DIR' directory. Could you please help me out with this.
    Is there any table name or a quey that I can run to get this information?
    Below is the code that I am using :
    Code:
    l_input_dir CONSTANT VARCHAR2 (30) := 'FCO_DIR';
    l_input_file CONSTANT VARCHAR2 (30) := abc_ca_upd.dat';
    fhandle := UTL_FILE.fopen (l_input_dir, l_input_file, 'r');
    Thanks in Advanvce !!

    900811 wrote:
    I tried running this query in production. I am getting error message ORA-00942: table or view does not exist
    Does this require DBA privileges ?As mentioned before, this should not require "DBA privileges", whatever that means, but it requires rights to query the view (think least privileges principle).
    Did you try querying ALL_DIRECTORIES instead? (or USER_ equivlent)
    In dev environment, I am getting the correct results.What is the output from ALL_DIRECTORIES in dev?

  • An intelligent way to import already existing directory structure to Aperture

    Hello,
    is there an intelligent way to import already existing big directory structure of photographs (over 2TB) archive into Aperture?
    I have my catalogue on a disk created in a way:
    date - short shot description (i.e. “2011-02-14 Name Surname (portrait)”)
              Originals
              Converted
              PSD
              Final
    I would like, when importing “date - short description”, it to become an Aperture Project with the same name and subfolders Originals, Converted, PSD and Final to become Aperture Albums or Folders in that Project.
    The only way I found is to create a Project and Albums in that project manually and then import all the pictures from the corresponding folders, one-by-one,  to Aperture’s Albums. I use references only to preserve the current archive structure on a disk as well.
    thank you for your time.

    You can try and experiment with the various options in File->Import Folders as Projects, specifically the option Import Folders as  to see if you get what you are looking for but I doubt  you will get exactly what you are looking for.
    One way to achieve your goal would be to import the projects and then once that is done create the other entities (either folders or Albums) once and then paste them into each project.
    The only way to truly automate this would be to write an Applescript and unless this is an ongoing requirement by the time you developed the script you could have just created the structure and pasted into the projects.

  • Virt-install cannot mount nfs directory

    Hi all,
    I'm trying to use ovms but I cannot create any virtual machine.
    I successfully installed OVMS; I disabled iptables to avoid network problems.
    I created a dvd from Oracle Unbreakable EL 5.0 cds on a different machine.
    The dvd image is shared by a linux CentOS box. The ISO image is inside /opt/tmp_os_isos/50 so I did
    service nfs start
    mkdir /mnt/dvd50
    chmod a+rwx /mnt/dvd50
    mount -o ro,loop /opt/tmp_os_isos/50/Enterprise-R5-GA-Server-i386-dvd.iso /mnt/dvd50/
    exportfs *:/mnt/dvd50
    and on the ovms server I did:
    [root@ovms ~]# virt-install
    What is the name of your virtual machine? giallo2
    How much RAM should be allocated (in megabytes)? 512
    What would you like to use as the disk (path)? /virtpcs/dischi/giallo
    How large would you like the disk (/virtpcs/dischi/giallo2) to be (in gigabytes)? 30
    Would you like to enable graphics support? (yes or no) no
    What is the install location? nfs:10.10.10.242:/mnt/dvd50
    And I always end up with the error
    That directory could not be mounted from the server.
    If I try to run
    [root@ovms ~]# mount.nfs 10.10.10.242:/mnt/dvd50 /mnt/50
    it works!
    I also tried to build adifferent dvd iso, or to uso a OEL 4.4 dvd iso (taken from an original working oracle dvd) but I always end up with the same error
    Where am I wrong?
    thanks, andrea

    I realized this problem was somehow related with the ovms installation: the pc I installed ovms on has two network card; when I installed ovms I configured eth0 via DHCP (eth0 is linked to the office network and to internet) and I configured eth1 with a static IP (eth 1 is connected to a "private" network made by 2 more pc).
    I also choosed to manage ovnms via eth1 (the network card witch has a statis ip), and everything regardind ovms has always been done via eth1.
    Now I reinstalled ovms and I choosed to manage it via eth0 (si I put a static ip address on eth0) and everything seems working: I'm just installing OEL5.0 via nfs without any problem (I hope... :-) )
    andrea

  • 10.5 clients won't login/mount home directory

    Hello all,
    I am having some issues with 10.5.8 clients logging in network users.  At our school, we have a "magic triangle" setup -- Mac and PC clients, an Active Directory for user authentication (a Win 2k3 server DC I believe), and an Open Directory server (running 10.7.5 OS X Server) for Workgroup Managment and software updates.  Along with this, there is a Linux NAS box that acts as the file server hosting the user's home directories.
    I have a few test student accounts that I have set up exactly the same way that normal student accounts are added to AD.  Users have complained that these 10.5.8 clients will not let any students log on, as I have verified with my test student accounts.  When logging in, an error comes up that says "Logging into the account failed because an error occurred".  In secure.log I get a "smb_mount: syserror = Broken pipe" line along with
    ERROR | -[HomeDirMounter mountNetworkHomeWithURL:attributes:dirPath:username:] | PremountHomeDirectoryWithAuthentication( url=smb://fileserver.domain.org/username, homedir=/Network/Servers/fileserver.domain.org/username, name=username ) returned 32
    When I turn off "Create Mobile Account at Login", the user can log in just fine, which obviously leads me to believe that there is an issue with mounting the samba share for the user's home directory during the HomeSync.
    I know the client can resolve the file server's hostname by nslookup, so I don't think DNS is the issue.  But I'm all out of ideas after looking everywhere online, and am hoping someone can assist me with this.  I'm just a computer technician and not a network sys admin by any means, but I know a good enough amount to try to troubleshoot this.  Even my network manager is stumped, and his answer is to upgrade the client to 10.6, resolving that the issue is with 10.5. I want to try to solve this issue rather than having to re-image all the 10.5 machines.
    Obviously school is out for the weekend, so I won't be back for a couple days to work on the issue if anyone does respond in the next couple days.
    Thanks in advance!
    -Brandon

    Hi Brandon, certainly no expert at this, but let me trow this out at you...
    Found a work-around. This command adds a delay, in this case 45 seconds, before displaying the Login Window.
    defaults write /Library/Preferences/com.apple.loginwindow StartupDelay -int 45
    If the Login Window UI detects that the network servers are available when it starts, it will skip the delay, also if network servers become available before the delay expires, the Login Window UI cancels the delay and displays.
    Kent

  • LR3 imports into non-existent directory

    I try to import into a certain directory, ...2010/March/Spain. Starting a week after installing the product LR would create a directory ...2010/March/Spain/Justin and place the photos there. I would remove the photos from LR and delete the Justin subdirectory. Try the import again; LR creates ..2010/March/Spain/Justin and places the photos there. Even after the directory is deleted and the PC rebooted, LR continues to show the subdirectory LR as present although the directory has been deleted.
    There are directories named Justin, such as .../2010/April/Justin and .../2010/May/Justin. But LR creates one on its own.
    The image below shows the problem. In the image of the folder next to Justin (on the To side of the import dialog) there is a plus sign on the folder.
    Anyone have any idea why LR3 continues to create and show ../2010/March/Spain/Justin, even when it doesn't exist, on the To side of the import dialog?
    Thanks.

    That's because you have "Into sub folder" and a subfolder name of Justin.
    Uncheck the box and it will not create a sub-folder named Justin.

Maybe you are looking for

  • Finding specified numeric values, and organizing pages as such.

    Hi, First and foremost I know nothing about java, I want to learn, however at the current time I am teaching myself VBA so a full dive into Java will have to wait. With that being said, I have carton labels that my company uses to place on cartons ma

  • Built In Microphone Has Disappeared

    Heyas, I don't know if this is a Lenovo or Windows problem, to be honest, but considering it had to do with my hardware, I figured this was the best place to start! I have a T61 7659XAU, running Windows Vista w/ Service Pack 1. And, well, the built i

  • Renaming files in CS6

    Is there a way to rename files in CS6 and still keep them in chronological order? I use Bridge to rename usually.

  • XML parser for Google maps

    Hi every one, I am trying to create a special format of an XML file for Google maps, I have a VI who takes the NMEA and sort out the parameters I need to create a track on the map, but I have try to make the XML file in LV but I get not right format

  • 2011 Macbook Pro boots, all keys seem to function, blank screen

    Yesterday at around 5pm EST my Macbook Pro (2011 model with the AMD Radeon HD 6750M) froze while browsing the internet (specifically XDA-Developers). This wasn't a normal " freeze" were it starts responding after a few minutes. Nothing would function