Bug report with proposed solution for mounting external drives for ftp access

Hello Guys,   I registered to inform you about something I would classify as a bug. I realized this when I used an external drive with my WD My Cloud and trying to access the drive via ftp. It simply was not visible on the ftp, but was accessible as samba share. I digged a bit in the scripts and found this:  /etc/init.d/mountDataVolume.sh   [...]
## initialze bind mount dir (/nfs)
/usr/local/sbin/updateShareBindMntDir.sh --init
[...]  /usr/local/sbin/updateShareBindMntDir.sh  [...]
init_mounts()
mount | grep -q "${SHARE_BIND_MNT_DIR}/"
if [ $? -ne 0 ]; then
# initial clean up of MNT dir
rm -rvf ${SHARE_BIND_MNT_DIR}/*
fi
for D in `find /shares/ -maxdepth 1 -mindepth 1 -type d -not -name ".*"`; do
share_name=$(basename $D)
add_mount "${share_name}"
done
[...]   The init_mounts() function searches /shares for directories (find -type >d<) and bind mounts these to SHARE_BIND_MNT_DIR (default: /nfs) by calling add_mount(). This is the directory where ftp users will drop in after logging in. The problem: find -type d will not find symlinks and external drives are represented by a symlink from /shares to /var/media/EXTERNALDRIVE I propose adding the following code at the end of init_mounts()   for D in `find /shares/ -maxdepth 1 -mindepth 1 -type l -not -name ".*"`; do
share_name=$(basename $D)
add_mount "${share_name}"
done That will look for symlinks in /shares and call add_mount() for each symlink to bind mount it to SHARE_BIND_MNT. I think this is not intended aka a bug because I found this comment for add_mount(): # - If <share_name> is a symlink to an external volume, then create the bind mount
# directly to the external volume.As it seems from this comment add_mount() supports symlinks but init_mounts does not feed it any.   I tried this solution myself and it works flawlessly.   Yours sincerely,schnip

Nice find!

Similar Messages

  • Has anyone come up with a solution for the WD Passport and Mavericks OSX issues yet?

    I was wondering if anyone has come up with a solution for the newer Macbook Pro/Mavericks and external WD Passport not mounting problems?
    I have a couple of year old WD Passport that worked fine in my old 2009 Macbook Pro, the problem is the old computer crashed.
    My dilemna; My new 2014 Mackbook Pro will not open my WD Passport, called WD Support, their answer, sorry, nothing has been solved.
    Is there anyway I can get access to my files on the Passport with any other software, or by using a PC.
    I am aware of reformatting the HD, and have read all the forums I could find and have tried installing the WD Update as well, (with the support tech from WD) and nothing works.
    I know that my WD Passport works, so please don't suggest checking it, or the cord.
    I appreciate all the help anyone can offer, and I am with all the rest of you struggling for solutions.
    Thanks so much

    Hi everyone, this is what I did
    1. upgrade disks to the latest firmware
    2. de-install ntfs-3g and MacFuse.
    3. Re-install NTFS 3G  without Macfuse.
    4. Next step: Install OSXFUSE latest version with selection MacFUSE compatibility layer.
    5. Last step: Install Fuse Wait
    Note: between steps 2 and 5, I restarted my machine.
    It worked for me, after about 4 hours.

  • TS1702 Has anybody come up with a solution for updating the apps...!!!????

    Has anybody come up with a solution for updating the apps ....!!!!????

    Yes, I updated all the time.
    What's your problem.

  • Brand new iMac 23.GHz Intel Core i5.  Mounts external drive for time machine, then dismounts after backup is complete.

    brand new iMac 23.GHz Intel Core i5.  Mounts external drive for time machine, then dismounts after backup is complete.

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.
    If you bought the product in the U.S. directly from Apple (not from a reseller), you have 14 days from the date of delivery in which to exchange or return it for a refund. In other countries, the return policy may be different. If you bought from a reseller, its return policy applies.

  • I have lost my Safari app and all the bookmarks that go with it. I have tried to download my back-up on external drive but cannot access it. Tried a start with C key held down but still no access to the back-up app.

    I have lost my Safari app and all the bookmarks that go with it. I have tried to download my back-up on external drive but cannot access it. Tried a start with C key held down but still no access to the back up app.
    Have used Superduper app. to back up and checked back-up occasionally to see if all files present  and appeared OK.
    I had previously started machine using original CD #1 to try and replace Eudora which was acting up. Did not knowingly touch Safari.
    Running iMAC System 10.4.11
    How can I successfully download from the Maxtor back-up?
    Ivan

    Further info.
    I checked the content of my other back-up and found the bookmark Bookmarks.plist in the library under Safari
    Dumped the existing copy in the computer and drag-dropped the back up. All bookmarks restored.
    Solved the Stickies problem by using Spotlight  to find file "stickiesdatabase" and did a drag- drop to replace file. All data restored.
    Re Ical data loss. Used Spotlight to find iCal document in  Library - Preferences where I found com.apple.iCal.plist in folder.
    Got ready to make change but did not immediately remove file. When I returned to Preferences folder to grab above document,
    the readable descriptors had been changed to code consisting of some upper case letters and/or single symbols!
    So now I cannot tell which is the symbol  iCal.plist
    Thanks for leading me so far, but how do I find that plist for my calendar?

  • Problem with a Toshiba PX1267E 320 external drive

    Hello all
    I have a problem with a Toshiba px1267e 320 external drive, when all was ok with it I would switch on and the blue led would come on and change blue /violet as it was found on my laptop, a small vibration could be felt if I handled the case indicating that the d/d motor was on.
    On that fateful morning I switched on did an explore in my computer and found no ext drive, checked the drive blue led on touched the case could detect no vibration, unclipped the drive from the case put my ear to it heard faint clicking.
    I removed device and connected to caddie, this time I could feel the motor going, connected to laptop, new hardware found did my computer explore and found no drive, checked device manager and found it so I uninstalled and reconnected usb with same result.
    I am not sure what do next.
    I had a word with computer shop if they could recover a while I wait they said at least a 6 hour job if possible (dont want to leave at shop)
    Bought me another western digital same model no and also new power supply to try swapping the electronics board just in case therein lies the fault /or possible us power/s but I am clutching at straws here.
    Any of you guys here got anything like this happen ? any suggestions?
    I am curious to know what they would try in the shop to recover although he said he couldn't guarantee results.
    I would welcome any helpful suggestions (not throw it in the bin)

    >I removed device and connected to caddie, this time I could feel the motor going, connected to laptop, new
    > hardware found did my computer explore and found no drive, checked device manager and found it so I
    >uninstalled and reconnected usb with same result.
    >I am not sure what do next.
    I think the external HDD is dead
    Maybe its a head crash this would explain the faint clicking and other noises
    Unfortunately, I such case you can do nothing

  • HT201250 Hi, I had updated folder on my hard drive wich was wrongly replaced with a folder from my external drive. I m not using time machine. How can i recover that updated folder? (it was done on 3-5-12)

    Hi, I had updated folder on my hard drive wich was wrongly replaced with a folder from my external drive. I m not using time machine. How can i recover that updated folder? (it was done on 3-5-12)

    If the folder was replaced, it was written over.
    Nothing short of forensic data recovery (probably involving taking the drive apart to scan the discs seperately) is going to recover anything (if indeed even that will).

  • How do I move imovie 11 events to an external drive and then access through imovie?

    How do I move imovie 11 events to an external drive and then access through imovie?  When I copied to the external, it came through as clips and doesn't play using imovie...is there a way to do this?  I have several imovie events and have no disk space left s trying to move them to free up space tp upload new photos and movies.  Thanks.

    joanne987 wrote:
    So, then what do I do if I have files on the external and won't fit back onto my HD?  How do I format it for imovie?  any suggestions?
    buy another HDD ... 500Gigs are ctually around 70-90€, saw yesterday a 1.5TB WD for 140€ ...
    .... 9TB of harddrives in use here ... don't forget to have at last one backup/copy per drive

  • Mounting external drives with UID in Openbox?

    I've just changed my system from gnome to openbox as my main WM.
    In Gnome, my external drives were mounted as i connected them, with the UID.
    Now, in OpenBox with every filemanager (pcmanfm2, thunar + thunar  volman installed, nautilus) i tried, they are just being named
    "disk [insert number]" again. how do i change this behaviour? which terminal outputs do you need?
    Last edited by gpunkt (2010-05-30 11:11:55)

    I don't quite understand what behavior you got with Gnome. Is that the filemanager "names" the drives with their UUID?
    For me, the filemanager shows the drives with their label names.

  • Reporting & Audit Compliance Solutions for Cisco Secure ACS

    The Cisco Secure ACS Access Control Server is probably the worlds best selling remote access security solutions and its quite likely that you're already using it! Wouldn't it be great to know exactly what it was doing? Further still, when you have to provide audit documentation regarding your policies and how effective they are, how long does this take and what valuable data remains locked inside the ACS database and logs?
    extraxi offer a range of products that deliver a complete solution for harvesting, managing and analyzing your ACS/SBR log data to meet the increasing demands for regulatory compliance (SOX, COBIT) and overall enterprise monitoring and security.
    We are proud to supply customers including Intel, Ford, Lego, T-Mobile, US Dept of State, US Army, British Telecom, First Energy, TNT Express, Kodak and JP Morgan and many more so why not take a look at our industry leading solutions and evaluate the benefits for your organization...
    Featured Products:
    * aaa-reports! enterprise edition - Automated Reporting
    The best reporting system for Cisco Secure ACS and Funk SBR just got a whole lot better! Improved reports, enhanced filtering and query builder and now with up to 48GB internal storage based on SQL Server technology makes this the ideal solution for large or complex AAA deployments and those that need the additional functionality from the standard aaa-reports! tool.
    With aaa-reports! enterprise you have a complete application for reporting including many canned reports (each with flexible filtering options) and a point-n-click query builder for designing custom reports.
    For historic trending, forensics and audit compliance there simply is no better reporting application for Cisco Secure ACS or Funk/Juniper SBR.
    * csvsync - Automated ACS Database & Log File Collection
    csvsync allows you to download CSV log data (RADIUS, TACACS+, Passed/Failed Attempts etc) directly from any number of Cisco Secure ACS servers (Windows & Appliance) via http(s). Version 3.0 now supports the collection of ACS database itself for import into aaa-reports and detailed reporting based on the ACS security policies. Simple, secure and efficient, csvsync is the best solution for harvesting log data from your Cisco Secure ACS servers.
    Download fully working 60 day trial versions at http://www.extraxi.com/rq.asp?utm_source=technet&utm_medium=forum
    Fore more information please visit http://www.extraxi.com/?utm_source=technet&utm_medium=forum

    bump

  • Why have my bug reports not been triaged for over four months?

    https://bugzilla.mozilla.org/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailreporter1=1&emailtype1=exact&email1=a.vanloon%40alexandervanloon.nl&field0-0-0=bug_status&type0-0-0=notequals&value0-0-0=UNCONFIRMED&field0-0-1=reporter&type0-0-1=equals&value0-0-1=a.vanloon%40alexandervanloon.nl&list_id=9847693
    I filed five bugs in November and December last year. To my surprise and disappointment, none have been triaged or answered by the Firefox OS developers. I do know they answer other bug reports. Does anyone know why this might be? Are there not enough developers to process all bug reports? Or is there something wrong with my bug reports in particular?

    Hi AlexanderVanLoon,
    We would be very happy for help with bugs that are reported in bugzilla. However giving them a proper component and an elaborate description with clear stp (steps to reproduce)
    *[https://developer.mozilla.org/en-US/docs/Mozilla/QA/Bug_writing_guidelines]
    *[https://quality.mozilla.org/docs/bugzilla/starter-kit/how-to-write-a-proper-bug-part-2/#all Part 2]
    *[https://quality.mozilla.org/docs/bugzilla/starter-kit/how-to-write-a-proper-bug/ Quality bug notes]
    *[https://developer.mozilla.org/en-US/Firefox_OS/Developing_Firefox_OS/Firefox_OS_bugwork Specific Guidelines to Status of Firefox OS bugs]

  • Filing Bug Reports With Apple?

    I SWEAR Apple is getting more and more like Microsoft.
    Can some one PLEASE tell me how to file a BUG REPORT to Apple on the 10.5.3 update? I am getting graphic driver problems again like they were on 10.5.0 and 10.5.1.
    Contacting Apple with a direct bug report seems near impossible and the website is of little help in finding this information. I am outside of Apple Care support.
    10.5.3 graphic drivers are broken again on a "Dual 2HHz Power PC G5" with the following Graphics Card:
    GeForce FX 5200:
    Chipset Model: GeForce FX 5200
    Type: Display
    Bus: AGP
    Slot: SLOT-1
    VRAM (Total): 64 MB
    Vendor: NVIDIA (0x10de)
    Device ID: 0x0321
    Revision ID: 0x00a2
    ROM Revision: 2060
    Bringing up the Save Dialog for e-mail attachments for Apple Mail 3.3 (924) cause the background to totally go wacko but it is restored when the save dialog disappears.
    Message was edited by: Confused7766

    Register for a free online developer account with your AppleID you used to sign on this board. http://developer.apple.com/
    Then go to http://bugreporter.apple.com/ and login there to file your bug report. Note, any discoveries there you are under a non-disclosure agreement.

  • Mounting external drive encrypted with Luks

    Hello guys,
    since I'm using Luks for my whole system I'd like to backup it on my external hard drive that should be encrypted too.
    So I used the following commands:
    cryptsetup -c aes-xts-plain -s 512 luksFormat /dev/sdb
    cryptsetup luksOpen /dev/sdb external
    mkfs.ext4 /dev/mapper/external
    I'm then able to mount it with
    mount -t ext4 /dev/mapper/external /media/external
    But I want to automise that, means my external drive should be mounted automatically by system (I guess it's only via udev possible?) after it was plugged in, without any passphrase scan and with complete user access, not just root.
    How could I achieve that?
    Thank you for your help.

    2go drives are always bound to a user login when used with the "automatic unlock" option. That means, they get unlocked when you logon. As the server service starts before logon, the device is not ready to be shared, yet. Normal and expected.
    You can only setup a scheduled task that restarts the server service after logon (trigger: "at logon"), that would work.

  • [Bug Report] Rhythmbox missing depedency for "tdb"

    Here's the bug report:
    https://bugs.archlinux.org/task/29310
    Just tryed to install Rhythmbox and had to track down that depedency.  Just figured I'd post it here to try to give it some more attention.  Seems like a pretty easy fix that could save some users some frustration.  Go give it a vote on the bug report so the developers will see this.

    For Oracle TopLink customers can report bugs using a support request on metalink.oracle.com.
    For TopLink Essentials customer can directly file bugs in the GlassFish system.
    Doug

  • Firewire Hubs For Use With A New Firewire 800 External Drive

    I currently have 3 HD daisy chained to one of my Firewire ports. I have an older Firewire iPOD with a dock that is attached to the other Firewire Port.
    I need more storage capacity so I am planning to get 1 Tetra La Cie - this model. I have had excellent experiences with LaCie.
    (LaCie 301442U d2 Quadra Hard Disk 1TB eSATA/FireWire800/FireWire400/USB 2.0 External Hard Drive (Aluminum).
    I would be using the new HD as a Time Machine Device and possibly as backup for my music library which is currently on one of the external HD's and backed up to a second HD.
    I don't have available ports.
    Are there Firewire Ports which would be functional?
    Should I be considering some other sort of configuration?
    This is an iMAC 24" bought in October 2006
    Thanks

    My music library is housed on an external hard drive so Time Machine can't be used since it requires an operating system on the source files...
    That's not true. You can back up files and folders on an external drive using Time Machine, as long as they are not on the same volume as the Time Machine archive. You just go to System Preferences +Time Machine+ pane. Click on the Options button. All external drives are on the +Do not back up+ list by default. Remove the external drive (with your iTunes files) from this list of things excluded from backup.
    If don't want to include everything on that external drive, put the folders you do not want backed up on the +Do not back up+ list. What I've done for my external FireWire drive (which is my primary data storage volume since my internal is only 160GB) is create two main folders. They are called Documents and +Documents (not backed up)+. They serve as an extension of the user account folder on the internal drive. Files and folders I want backed up go into Documents. Files and folders that are non-critical go into +Documents (not backed up)+. So then, the external drive volume gets removed from the +Do not back up+ list, so that Time Machine backs it up. But I put the +Documents (not backed up)+ folder back on the +Do not back up+ list so that only the Documents folder gets backed up.
    If you do daisy chain off the FireWire 800 port, be sure to put the 800 drive first on the chain. Putting the 400 drive before the 800 drive will reduce the speed to the 800 drive to 400 speed.
    perhaps the beach ball I often get when working with iTunes is a product of the speed of the data being accessed on the external hard drive.
    My +iTunes Music+ folder is on an FireWire 400 external drive. I do not notice any issues with iTunes accessing the files. That drive is attached directly to the iMac's port with no daisy-chaining behind it. If the free space gets low, the files and remaining free space will get more fragmented, and that can also cause such issues.

Maybe you are looking for

  • EDI Message for Scheduling Agreement Schedule Lines

    Hi Experts, My client has the EDI set up for the SASL and is running fine. Currently we have scheduled background program to trigger the IDOC and convert the IDOC into XML to send the information to the external system via interface after MRP run.Out

  • Flash Player error message when starting .exe

    I have published a quiz on our local intranet in .exe format. It runs fine and actually submits results (unlike the .swf files) via Outlook. I created the quiz on a Windows XP machine running Captivate 2. The only problem I am finding is with certain

  • SAP MAP - Best Choices for Planning Technical Basis

    Hello, experts! For today there are 3 variants of MAP planning scenaries implementation: 1.Planning and reporting via MAP Business content for BI Integrated planning 2.Planning and reporting via MAP Business content for BPS 3.Planning in ECC based MA

  • JpegImagesToMovie problem

    Hello , I wanted to convert my sequence MotionJEPG to video type file . ( avi /mov ) . For this goal I search and I found peace of code JpegImagesToMovie.java which so many people had been used . But Wen I try to run it give me error which i not sure

  • What is the cable that comes with iMac?

    Ilooks like usb extension but wont accept usb.