I just want to unionfs 2 drives together

I would like to run the following code automatically without me having to do anything:
sudo unionfs -o cow -o allow_other /media/Media/Vids/Secondary=rw:/media/Media/Vids/Primary=rw /media/Combined
sudo unionfs -o cow -o allow_other /media/Combined=rw:/media/Media/Vids/Local=rw /media/Vids
However I keep running into pitfalls
I tried to do a system command file launched with a .service file
the bash file resides at /usr/bin/unionfsscript
#!/bin/sh
unionfs -o cow -o allow_other /media/Media/Vids/Secondary=rw:/media/Media/Vids/Primary=rw /media/Combined
unionfs -o cow -o allow_other /media/Combined=rw:/media/Media/Vids/Local=rw /media/Vids
which I did a chmod +x afterwards to the file
Then I wrote /etc/systemd/system/unionfsservice.service
[Unit]
Description=Load All Network Drives
[Service]
Type=oneshot
ExecStart=/usr/bin/unionfsscript
[Install]
WantedBy=multi-user.target
Afterwhich I ran systemctl enable unionfsservice.service
Then I ran systemctl start unionfsservice.service
-Did nothing
Afterwhich I ran:
systemctl status unionfsservice.service
and got:
unionfsservice.service - Load All Network Drives
          Loaded: loaded (/etc/systemd/system/unionfsservice.service; enabled)
          Active: failed (Result: exit-code) since Sun, 2012-11-18 22:58:51 EST; 9s ago
         Process: 1320 ExecStart=/usr/bin/unionfsscript (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/unionfsservice.service
Nov 18 22:58:51 archlinux-voncloft systemd[1]
Nov 18 22:58:51 archlinux-voncloft unionfsscript[1320]
Nov 18 22:58:51 archlinux-voncloft unionfsscript[1320]
Nov 18 22:58:51 archlinux-voncloft unionfsscript[1320]
Nov 18 22:58:51 archlinux-voncloft unionfsscript[1320]
Nov 18 22:58:51 archlinux-voncloft systemd[1]
Nov 18 22:58:51 archlinux-voncloft systemd[1]
Nov 18 22:58:51 archlinux-voncloft systemd[1]
I tried running the /usr/bin file as a startup script.........even tried putting sudo in the file - NOTHING IS WORKING
I tried doing a /etc/fstab with the following
unionfs  /media/Combined unionfs dirs=/media/Media/Vids/Primary=rw:/media/Media/Vids/Secondary=rw -o allow_other    0 0
which kind of worked.....it would mount the drive but I couldn't view the contents unless I did sudo /media/Comined in a terminal. and if I put allow_other right after the 2nd unionfs it made no difference, I can't use a -o flag either.
Any ideas I am going crazy over this...I just want to merge the folders together into one folder when the pc boots up
I was able to do so in a rc.local file....but since Arch moved to a forsaken systemd structure (which is a horrible idea in my opinion) that idea has been crushed.
any help please

Well, with the fstab part. /etc/fstab is run as root, so all the dir's will be owned by root by defualt.
You would need to add like these to the mount options in fstab
uid=1000,gid=100
Like here is my Downloads directory fstab entry that I mount as a tempfs
tmpfs /home/user/Downloads tmpfs rw,nodev,noatime,noexec,nosuid,uid=1000,gid=100,mode=700,size=10G 0 0
Last edited by hunterthomson (2012-11-19 09:45:30)

Similar Messages

  • I have two iTunes accounts somehow, and just want to merge them together.

    If you have two iTunes accounts by accident (one iPhone and one Computer...) how can you merge them together into one account?

    The simple answer is that you cannot.  Try contacting the store support staff and see what they can do to help: http://www.apple.com/emea/support/itunes/contact.html

  • I just want to use my Torch as a 3G modem on my laptop... PLEEEEAAASEEEE!

    Why must I download 115Mb of desktop rubbish? I just want the modem driver - why can't that be separate?

    Yes, and you can turn wi-fi access on after enabling airplane mode if you want or need internet access via an available wi-fi network.

  • How to make Nano NOT appear on Mac desktop as connected drive when I plug in to recharge it? Just want charging, not syncing, and don't want to unmount drive each time.

    I have a 6th generation iPod Nano.
    I almost exclusively use it as an FM radio and as a pedometer -- so far I have not loaded any songs onto it for listening, nor do I intend to in the future.
    Here's my problem:
    When my Nano runs out of juice, I have to use the charging cord to plug it into to my iMac's USB port to recharge the Nano. However, whenever I do so, two different (unwanted) actions happened:
    First, the act of plugging in the iPod auto-launched iTunes, for syncing. I solved this problem by finding the preference check box for launching iTunes when connecting an iPid, and UNchecking the box. That worked, problem solved.
    However, the second automatic action is that the iPod appears as a connected drive on the iMac desktop, as any external device with a drive would appear when connected to any Mac. But I have no need for this to be happening -- I don't intend to upload anything to the iPod, nor to sync it, or whatever -- the only reason I ever connect the iPod to the iMac is to RECHARGE the iPod, not to tinker with the contents of what's on it.
    The problem is, every time I then want to disconnect the charging cord, I have to manually "unmount" the iPod drive by dragging its desktop icon to the Trash, when then allows the "it is now safe to disconnect your external drive" state to obtain, allowing me to then unplug it without getting a warning message telling me I shouldn't have just disconnected a connected drive without first unmounting it.
    This wouldn't be such a bother, except that the 6th generation iPod Nano has a new "feature" which makes it impossible to see how far along the charging is progressing while it is still in the act of charging. Thus, the only way to know if it is has become  fully charged is to unplug it, and look at the battery monitor. While is it still connected and charging, all that displays on the iPod is the "charging now" battery icon, which does not reveal just how the charging is progressing, or if it is fully charged yet. (My iPhone, by way of contrast, displays during charging a battery icon which reveals how far charged it is by that point.)
    As a result of this Nano "feature," I often find myself having to connect and disconnect the Nano two or three or more times each time I'm charging it, so I can simply check how far along the charging has gotten, since I want to disconnect it as soon as it has finished charging and get back to using it.
    But so far, I have not been able to find any kind of setting or preference which allow me to identify this device as one which I DON'T want to "mount" each time it is plugged in.
    All I want to do is just plug in the iPod, and be able to unplug it, without having to to ANY shenanigans on the computer itself. Just plug in = recharging, unplug = not charging any more. Simple.
    Question: is there any way to achieve this? Or is it simply not possible, and must I manually unmount the iPod's drive (more than once, usually) each time I plug it in for recharging?

    I should also point out that when I connect my iPhone, it DOESN'T appear as a connected drive on the desktop. Not sure how this can be so, since the iPhone also has a drive and also functions as an iPod if I want it to. I must have changed some setting to achieve this non-appearance, but don't remember what I must have done.
    What's the secret?

  • I have all my music on my external hard drive when I try to add it to iTunes it is automatically added to my MacBook Pro's hard drive. How do I stop this from happening? I just want the music to stay on the external hard drive. Thanks!

    I have all my music on my external hard drive when I try to add it to iTunes it is automatically added to my MacBook Pro's hard drive. How do I stop this from happening? I just want the music to stay on the external hard drive. Thanks!

    This is true of course, but doesn't cover the situation where some files are in the iTunes Media folder and others are on an external drive. In my case I keep my music in the Media folder and all my films on an external drive (there are too many to have on the internal drive). In iTunes 11, and before, it was easy to add those external files by holding down the alt/opt key while dragging to the sidebar. In iTunes 12 this is no longer possible. There are several workarounds: use TuneSpan to move the file after it's been added; delete the file from the Media folder and empty the trash then use iTunes Get Info which will report the file is missing and allow you to locate it; constantly switch the Add to iTunes toggle on and off as required. All of these require a lot more work than just holding down the alt/opt key while adding.
    It constantly gets harder.

  • I have and apple tv,,..how do i play movies,from my apple mac,onto the apple tv..my movies are not on my itunes,but on an external hard drive...i just want to mirrow whats playing,on my mac to the tv...

    I have and apple tv,,..how do i play movies,from my apple mac,onto the apple tv..my movies are not on my itunes,but on an external hard drive...i just want to mirrow whats playing,on my mac to the tv...

    Are the movies in the correct format:
    Video formats
    H.264 video up to 720p, 30 frames per second, Main Profile level 3.1 with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats
    MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats
    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    Audio formats supported
    HE-AAC (V1), AAC (16 to 320 Kbps), protected AAC (from iTunes Store), MP3 (16 to 320 Kbps), MP3 VBR, Audible (formats 2, 3, and 4), Apple Lossless, AIFF, and WAV; Dolby Digital 5.1 surround sound pass-through
    When you say tit only sees your music folder, are you saying it only sees your music folder or does it see other empty folders.

  • How do I remove Apple Mail from my hard drive? Over 10,000 downloaded into my mail and continues to freeze up---  I just want to use my gmail account directly

    How do I remove Apple Mail from my hard drive? Over 10,000 downloaded into my mail and continues to freeze up---  I just want to use my gmail account directly

    I go to Gmail to do my email yes, in my browser, but ya know how sometimes you click on a website to email someone and it pulls up apple mail, and then tons of email dump into apple mail and it frequently causes my computer to lock up and have to shut down w/escape.  I thought it would be  better to take it off if I could

  • HT6012 Can I take an older imovie made back in 2009 found on an old external drive and get it to iCloud?  When I try to open it, it says can't open because the file was iMovie 9.0.9.  I just want to get it on Theater so I can watch on Apple TV and have in

    Can I take an older imovie made back in 2009 found on an old external drive and get it to iCloud?  When I try to open it, it says can't open because the file was iMovie 9.0.9.  I just want to get it on Theater so I can watch on Apple TV and have in iCloud

    ERROR (1)
    - Place the iPod in DFU mode and then restore
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - Try on another computer
    - Try another cable
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar     

  • I have Os Lion on my mac book pro, im not a fan of this because i cant run many games, i have the disk for snow leopard my machine came with but i get a error saying "unable to unmount disc" when i try erase my hard drive i just want OS SL back any help?

    I have Os Lion on my mac book pro, im not a fan of this because i cant run many games, i have the disk for snow leopard my machine came with but i get a error saying "unable to unmount disc" when i try erase my hard drive i just want OS SL back any help?
    many thanks Carl.

    You must boot from another drive in order to erase the system drive.
    Try starting up with Snow Leopard DVD inserted and C depress. That should get you booted from the DVD. Then start Disk Utitlity from DVD and erase the disk then you should be able to install Snow Leopard.
    Remember that everything will be removed from the disk when you erase it and install Snow Leopard so backup first.
    Allan

  • I just replaced my hard drive and restored everything from Time machine. However, I am unable to open iphoto and the following message appears Your photo library was not found. Do you want to find your iPhoto Library?

    I just replaced my hard drive and restored everything from Time machine. However, I am unable to open iphoto and the following message appears Your photo library was not found. Do you want to find your iPhoto Library?
    Where do I find this library?
    thanks
    Shak

    Twas quite a hassle if I am honest which was eventually resolved but I don't feel qualified to help anyone through the process as it required a trip to my local apple store and a genius bar appointment.
    Personally, I would do anything like moving pictures out of folders etc. Certainly not creating a new users. i don't think that is an elegant solution
    Try the following which MAY just about rescue the situation for you but if they don't work you may have to do something more drastic.
    (1) Holding down Cmd & Alt at the same time, start iPhoto by clicking on the iPhoto icon. From the resulting menu choose Rebuild photo library by selecting all available options given to you and then pressing REBUILD!
    If that doesn't work
    (2) Fire up Utilities. Go to migration assistant. Chose 'From another Time machine back-up'. Open the 'Users' option that comes up next and from there select Pictures, then uncheck everything else like Applications etc (you don't want to do a full migration of everything) and click go.
    If that doesn't work, take a deep breath and this step is rather complicated but it worked for me. First of all close iPhoto! Then go to new Finder window.
    From the Finder window choose Pictures, then iPhoto library, press CMD and the letter i. It brings up a new window. Go to Sharing & permissions. From there select the padlock to unlock settings. and then select User account, then press the 'cog' icon next to +/- abd choose Apply to enclosed items.
    This may take a while. Once completed, re-open iPhoto.
    And that should (I stress should) cure it.
    Good luck.

  • Just want to use Time Capsule as a wireless hard drive?

    I thought I was computer savvy until now.
    I just want to use Time Capsule as a wireless hard drive. I do not want to connect my Internet to it whatsoever. I realize this would involve disconnecting from Time Capsule and reconnecting to my Internet every time.
    The settings for Time Capsule are just mind-boggling.
    Is there any easy way to set it up as a password-protected wireless hard drive?
    I am so lost with all the settings.
    Please help! I will provide points!

    First, you don't need to use Time Capsule with Time Machine. It can be used as a manual file storage or file exchange drive.
    Where do you have the Ethernet cable placed on the Time Capsule. Is it the WAN port or one of the network ports?
    If you are attempting to set-up the Time Capsule as your wireless router, it will need to be connected to the wired modem from your service provider through the WAN port for configuration. The Time capsule should then appear as a configurable Airport device.
    To start, turn off your cable or DSL modem and the Time Capsule. Turn them both back on with the Time capsule connected to the wired modem via of the WAN port so the modem can grab the TC's MAC address.

  • "C" drive & Profile crash-so all attachments are in crashed profile? Just want to make sure?

    1-had C drive crash a few days ago and am rebuilding on new C drive > NEW copy of TB 24.6.0
    2-Had Local Folders on a separate drive > in Tools – Account Settings – Local Folders > set to previous location
    3-After studying many support responses is it correct that the actual attachments are still in the Profile on the crashed "C" drive?
    4-Searched all drives on "new" system and found no "Profile" or "*.mbox" files - where are they?
    Just want to make sure cause the mozmsgs/wdseml on the "separate drive" only have message text when imported. If this is TRUE then I've got to focus my effort on recovering the Profile from the crashed disk. Yes, I did not have a backup - my bad for sure.
    Thank you,
    Tom

    In Thunderbird, messages are stored as they are received, along with all headers and all attachments.
    In your profile, there will be folders with no extension, such as ''Inbox''. These are mailbox files. Each has an accompanying index file, in this example ''Inbox.msf''. You don't need the msf files.
    The profile folder is hidden, so to find it you'll need to enable displaying of hidden files.
    mozmsgs is provided just to make the message contents available to Windows' searching mechanisms, so these files are not important to your restoration task.
    I really don't like the business of setting mail account folder locations using the Local Directory option. It removes the particular folder from your profile and makes maintenance very much harder, since now only ''you'' will know where the re-located data lives. None of the usual techniques or tools for working with profiles will work with the detached data.

  • I'm about to transfer the contents of my existing HDD in my (dead PSU) iMac to another computer. I'm just wanting to know if and how I will be able to access my files and documents from the old hard drive once I've made the backup?

    I'm about to transfer the contents of my existing HDD in my (dead PSU) iMac to another computer. I'm just wanting to know if and how I will be able to access my files and documents from the old hard drive once I've made the backup?

    You are not going to be able to run your old system from the backup on this old computer as the hardware is incompatible.
    You need to get a new computer or a refurbished one.

  • I have an old 30" apple cinema display (2005) I want to use as a 2nd monitor to a new iMac (2012).  I don't just want mirror image of iMac; what's the best way to do this?

    I have not bought the iMac yet but will do so very soon and just want to make sure I have what I need to get everything setup including adding the old faithful 2005 30" cinema display.  Currently I am driving the old 30" cinema display with a macbook pro also purchased 2005 and happy to say I got a lot of good miles out of this rig.  What's the best way to connect the old 30" monitor as a second display for the new generation iMacs?
    Other Questions
    I can find online new in unopened box a 2012 iMac 27" i7 with 1T Fusion Drive for $1899 no sales tax.  This seems like a pretty good deal since I notice the same is available from Apple refurbished for $100 more plus sales tax.  I know that they say the Fusion drive is a lot faster on 2013 models but some of the speed tests I reviewed online showed the 2012 i7 and 2013 i7 very close on speed for both storage and processing.  Any thoughts?
    I don't like changing batteries so I would buy a separate Apple keyboard with numeric pad since it only comes with wireless keyboard.  I'm a trackpad enthusiast having been using my macbook pro trackpad with current set up; and I am prepared to buy the Apple trackpad and replace batteries every 2 months but I would greatly prefer USB connection and rechargeable trackpact.  I know Logitech makes one so if anyone is using and knows how it compares to Apple's I'm all ears. 

    <http://support.apple.com/kb/HT5891>
    You can use USB for the Apple trackpad.
    <http://www.mobeetechnology.com/the-power-bar.html>

  • How do i change credit card info or eliminate, there is no "NONE" button any more just want use Itunes card?

    2 questions need help with deleting old credit card info on itunes account, have $15 dollar credit on itunes card, that i cant use, keeps on telling me invalid security code, just want to take of card all together.  and have $25 itunes card that i cannot redeem because the numbers were wiped off to hard.  help

    The same thing is happening to me
    I need help

Maybe you are looking for