Unmounting USB flash drive from cRIO

Hi all,
I am using the USB port of a cRIO 9012 to save datafiles (using File I/O) to a USB flash drive.
After having run the program, I want to unmount the USB drive. Can anyone please tell me if there is a better/nicer way than just taking it out? Since this might result into losing my data if the USB drive gets corrupt (just like under Windows).
I have searched the forums, but I was not able to find anything on dismounting a USB drive on a cRIO...
Hopefully you can help me solving this (little) problem.
Thanks in advance,
Joep

Joep,
under Windows there are two scenarios that could cause data corruption on a USB-Flash-Drive:
The Flash-Drive is removed during a write operation. This potentially destroys the FAT which results in data loss. There is not much that you can do against this behavior, neither on Windows, nor under VxWorks.
With caching enabled for the Flash-Drive there is a chance that files are not written to the drive completely because some parts of it are still sitting in the PC's memory. When the drive gets removed the data is corrupt.
I don't think that VxWorks uses cache for mass storage devices at all so this issue shouldn't be relevant for a cRIO-9012, but I will double check if this is true.
Best regards,
Jochen Klier
National Instruments Germany

Similar Messages

  • Mount a USB flash drive from a shell

    I am about six months new to Linux; I have installed my first arch system but not yet installed a desktop environment.  I am trying to mount a USB flash drive from the shell but I am not having much luck.  I have tried following the instructions in the archwiki, http://wiki.archlinux.org/index.php/USB_Storage_Devices. I am having a problem with the following command:
    mount -t vfat /dev/sda1 /mnt/usbstick
    I get an error message saying that the mount point does not exist.  I have in the /mnt directory the following:
    cd cdrom dvd fd0 f1
    (I am not sure what fd0 and fl are, if somebody could please tell me I would appreciate it.  Also I do not have a DVD-ROM on my computer is the dvd listed by default or do I have a package installed I do not need?)  I did some searching online and came across the following site, http://linuxcommando.blogspot.com/2007/ … -from.html. I followed the instructions to identify the correct partition name corresponding to the USB drive by running the following command:
    grep SCSI /var/log/messages.log
    and I get the following results:
    Dec 30 22:16:17 morgan-desktop scsi2 : SCSI emulation for USB Mass Storage divices
    Dec 30 22:16:22 morgan-desktop sd 2:0:0:0: [sdb] Attached SCSI removable disk
    The next steps in the instructions are to mount the partition to the existing mount point (directory) by using the following command.
    mkdir -p /mnt/myusb
    mount -t vfat -o rw,users /dev/sda1 /mnt/myusb
    This is where I am having a problem, I do not understand the results and how to proceed to the next step, please help me.
    One other small question what is the best command to shut down the computer as a normal user?
    Thank you
    Morgan Smith

    Ok, Lots of different advice here, let's see if I can explain it all together, and clear up a few bits...
    I'll try to explain why I'm saying what I am, it doesn't matter if you don't follow it all, commands are below.
    You are on the right lines here, but a few things missing.  Firstly, to mount the USB stick you are using the correct command, but the locations are a problem.  The command is "mount -t type what/to/mount where/to/mount".   You can find out more about the mount command with "mount --help" or "man mount"
    You have correctly identified type as vfat - this means the pen is formated as FAT.
    To find out what to mount, you can check /var/log/messages.log, the second command you posted searches trough that file and prints out lines including the phrase SCSI, and the result tells you that a usb storage device had been attached as sdb, so the correct device is /dev/sdb1.  Storage devices are named sda sdb sdc etc in the order they are attached, and the numbers refer to the partitions on the disk.
    You can mount it anywhere you want, as any existing directory, but the one you tried to use /mnt/usbstick doesn't exist, so create it, using mkdir.
    The commands you need therefore are:
    mkdir /mnt/usbstick
    mount -t vfat /dev/sdb1 /mnt/usbstick
    This will work as root.  There is also, as byte said, a program called pmount (which you can get with pacman -S pmount) which works the same way for a standard user.
    Finally, there are also a number of tools like HAL which can be used to automate the process.
    As for shutting down, as has been said you must be root or in the power group, then you can use 'halt' 'poweroff' 'reboot' or 'shutdown'. All have slightly different effects, and poweroff is probably the easiest.
    Hope this helps
    Jack

  • How do you save PDF to a USB flash drive from iPad 2

    How do you save PDF to a USB flash drive from iPad 2

    You can't, the camera kit connection kit which has a USB connection only supports the copying of photos and videos to the Photos app, and doesn't support the copying of any content off the iPad - you will either need to go via your computer.

  • Is there a way to protect a USB flash drive from virus?

    My daughter's school computer lab is seemingly infected with some PC virus but their school IT folks seem to be unable to clean them and with all the young kids using USB flash drives they brought these viruses home when they plug the flash drive into our home computer but luckily since we are using Mac at home and I have ClamXav installed it detected the virus immediately. So we are kind of safe but I am getting tired of removing this same virus every week using UNIX command in a terminal mode, as it's locked and can only removed using the sudo command (taught by some people). My questions are:
    1. Is there any way to protect a USB flash drive from virus infection (it's a window PC virus)
    2. is there a way or suggestion on how to stop these apart from dis-infecting the whole school computers? The problems are that these young kids are not aware of those viruses in their USB flash drives and their teachers are just too ignorant about it!
    Thanks for any suggestions and help

    I'd still invest in your case into Mac protection against passing along malware.
    Take a look at Intego AV for one for the Mac and for dual-protection.
    http://www.intego.com
    Whatever you are finding is 'dormant' I assume, but that doesn't mean it can't become active or passed along either. And there are some 'man in the middle' spyware and malware, some which target online home banking (some people run their home banking from a virtual OS that is used for that purpose only, I always wished Mac OS X could be run in a VM mode as well).
    The IT folks sound like they need... do their jobs properly and better.
    I don't care how young they are, or the staff's ignorance. Time for education is now.
    Download and install Microsoft Security Essentials in Windows and follow guidelines. And there are tons of FAQs, guidelines and articles on the subject.
    http://www.microsoft.com/Security_Essentials/
    http://www.microsoft.com/security/portal/
    Nearly six months after Apple added a malware blocker to Mac OS X (Snow Leopard), the feature appears to be collecting cobwebs.
    Apple has not added any anti-malware signature updates to the XProtect.plist file that launched with antidotes for OSX.RSPlug.A and OSX.Iservice, two known Trojan horse programs targeting Mac OS X users.
    http://blogs.zdnet.com/security/index.php?cat=20&submit=view

  • Making a bootable USB flash drive from PC

    My DVD drive on Imac is broken and won't recognize anything. It doesn't show up on disk utility and I can't make dmg file from it.
    So I have snow leopard DVD and I want to make a bootable USB flash drive on PC. I want to know how to copy the image from snow leopard dvd on PC. (windows xp)
    Please help!

    AFAIK, you can't use a PC. Consider one of these:
    http://www.amazon.com/LG-Super-Multi-SecurDisc-LightScribe-GE24LU20/dp/B003TTK2X 4/ref=lhni_t
    http://www.lg.com/us/computer-products/optical-media/LG-external-dvd-burner-GE24 LU20.jsp
    http://www.amazon.com/LaCie-16X-LightScribe-DVDRW-300982U/dp/B000BMNM9I#moreAbou tThisProduct

  • How do I safely remove my sd card and usb flash drives from my iMac?

    iMac newbie here.  After years of PC messes and crashes I finally converted to iMac.  However it's not always easy to find what I am looking for.  The first time I disconnected a usb flash drive a warning appeared on the screen.  I neglected to jot down the instructions.  Now I want to remove the SD card for my phone, and I don't want to mess anything up.  Can someone point me in the right direction?  Thanks.

    You posted in the iMac forum; to properly dismount any external drive from a Mac, drag its' icon to the trash can. Then you can unplug it. I don't have an iphone, so I can't answer that. You'd get more knowledgeable answers for that question in an iPhone forum.

  • [Help] How to wireless transfer data to an USB flash drive from an iPad mini 2

    Hi.
    I want to use my iPad for my exams, but I'm not allowed to use the internet to send my files under the exams, so I need an alternative way to do it. I want to copy pages, numbers and keynote files to a wireless USB flash drive when I'm done. Do you know a product that can do it, that is also available in the Amazon UK?
    Thanks.

    Hi Loner,
    Thanks for the reply.
    I have located the program and will give it a try.
    Cheers.

  • Install Arch in an USB Flash drive from an existing image

    I want to minimize the amount of writes to the flash drive by avoiding directly installing Arch into it.
    I would like to know if it would be possible to install arch into an small partition, configure it, and then make an image of it and dump it at the USB drive(like when creating the USB install).
    Does it worth the while doing so?
    Thanks!
    Last edited by cristian.rosa (2009-03-05 14:41:11)

    Sure.  You could do that, then just rsync or cp -ax it onto the Flash drive and set up GRUB.

  • I received our wedding photos on a USB flash drive from our professional photographer. I am trying to get these photos on my ipad 4.

    I have enough room on my ipad for all 600 photos.
    I have tried to sync the photos through iTunes by choosing the USB drive on my computer. The folder appears empty.
    I have purchased a lightning to USB camera kit and nothing happened once I plugged the USB into the ipad.
    I thought since the lighting to SD card reader I've been using with my camera works maybe I'll try uploading a photo or two onto the SD card and use the lighting to SD card reader and do it that way. I see the photo I chose on the camera when the SD card is inserted into my desktop, but once I insert it into the camera kit on ipad it doesn't show up. The other photos I have taken show up but not the ones I copied over onto it show up.
    I wonder if our photographer saved the photos in such a way to prevent me from syncing them? I have permission and the rights to use them so that's probably unlikely. The photos are saved as jpegs.
    My other thought is maybe the photos are too large in size to upload onto the ipad? Is there a limit? Under properties they are listed around 400kb and 1800x1200 in dimension.
    Please help! I'm wanting to make a photo book for the holidays as a gift with one of the ipad apps.
    Thank you in advance

    Hi Kat U,
    Many thanks for your question today.
    I am happy to assist you in this process and this method of helping you today will not involve you using your Camera Connection Kit from Apple.
    This method of downloading images onto the iPad requires the following items:
    The USB
    A computer/Mac with a USB Port
    The iPad
    iTunes (preferably iTunes 11, but it won't make much difference if you have iTunes 10)
    Before we start I have based this resolution on the basis that you use:
    iPad 4 with iOS 7.0.0 or better
    iTunes 10 or better
    Mac OS X Mountain Lion or better or Windows 7 or better
    Here are my steps to resolve your issue:
    Insert the USB drive into your computer and then go into the folder in windows explorer or finder where the images are saved on your USB.
    Save all the images from the USB under one folder on your own folder in your document/image folders (not on the USB). On the Hard Drive
    Remove your USB stick from your computer
    Insert your iPad with the lightning connector into your Mac/PC.
    When iTunes pops up click on the iPad icon/textbox - it may say (i.e. Name's iPad). (If iTunes does not pop up open it up manually by clicking twice on the icon on your desktop or Dock Taskbar).
    Click on Photo's Tab and the tick the tick box for: sync photos from
    Click my pictures (located next to sync photos from), then navigate around your folders until you choose the folder where you copied your images from the USB stick to and once you have found the folder click select folder.
    Press sync.
    Go to your iPad once it has synced and log in, click on photos then albums (located bottom right of the menu/screen) then click on the Album of the images - (its name will be what the Album's name was on your computer).
    Your images should be located there.
    If this resolution does not work, you have three other options
    Try the solution provided by the gentleman above using the Camera Connection Kit
    Call Apple - American number is 1800-MY-APPLE (1800-692-7753) and go through to AppleCare for iPad
    Take the USB and iPad to your closest Apple Store and get a Genius to look and possibly fix the problem.
    Many Thanks for your question and allowing me the time to possibly resolve your issue. I hope to hear from you soon regarding this issue.
    iBenjamin
    <Email Edited by Host>

  • HP Mini 110-3520ca constantly restarts when trying to restore from usb flash drive

    Hi,
    I have a HP Mini 110-3520ca that I upgraded to Windows 8, but was having issues with freeze ups and shut downs so I decided to go back to Windows 7 Starter.    When I tried to restore to factory default the files were corrupted and I couldn't restore from the recovery hard drive or my external back up files.  I ordered the recovery  USB flash drive from HP and tried to restore from it.  It completes the Recovery Preparation and the Software Installation finishes, Windows starts to load, but Ithen it goes back to welcome to Recovery Manager.  When I try to start Windows without the flash drive I get an error log that is below.  Can someone tell me how to fix this or what needs to be done to get my Windows working again, any help would be greatly appreciated.
    Carol.
    Error Log: 
    Component: TDC Preinstall Diagnostic Tools for Windows 7 - TDC
    Timing: Factory Update
    This is not a Regional SKU
    This is not an RCTO P2PP SKU
    Error: Different LOC# detected:
    Error: SKU number LOC# = 00
    Error: REGSKU/OptionDashCode.ini value for ABC = 12
    Error: SKU number incorrect for this LOC#=ABC.
    Next Step: Please dash sku number with xxxxxx-12x
    Next Step: Or use EEPROM and change LOC# in either SKU Number or CTO Localization Code
    [17:16:38.37] ------------------------------------------------------------------------------------------
    ***CTO Error condition has been dtected in [Factory Update] phase !! ***
    [17:16:38.38] Suggest to create PIN-log and send to TWN PDC NB-PreinPM for further analysis ...
    [17:16:38.38] ------------------------------------------------------------------------------------------
    [17:13:54.75] Start BBOffline.cmd...
    UPDrv=[C:]
    [17:13:54.77] Set UIA Error Code to 951
    [17:13:55.39] WinPE is 32bit.
    [17:13:55.39] Starts [FixUps].
    [17:13:55.41] ---------------------------------------------------------------------
    [17:13:55.41] FixUps.cmd...
    [17:13:55.41] create overall progress info...
    [17:14:15.89] FixUps.cmd completed...
    [17:14:15.89] ---------------------------------------------------------------------
    [17:14:15.91] Starts [Tweaks for SSRD].
    [17:14:15.92] ---------------------------------------------------------------------
    [17:14:15.92] SSRD Tweaks to change user default locale...
    [17:14:15.92] Copy C:\System.sav\Util\TDC\MCPP\FBIRES\FBIUSRES.DLL.
    [17:14:16.09] Run "Dism.exe /image:C:\ /Set-SKUIntlDefaults:en-US -image:C:".
    [17:14:23.50] ---------------------------------------------------------------------
    [17:14:23.50] Launch PININST.exe for Offline ...
    [17:14:33.78] Starts [Sleep 10 sec].
    [17:14:43.86] Starts [Create RStoneFUpdate.INI].
    [17:15:20.91] Starts [create 1GB Pagefile for offline].
    Volume in drive C has no label.
    Volume Serial Number is 868D-C760
    Directory of C:\system.sav\bbv
    10/27/2014 05:15 PM 1,073,741,824 pagefile.sys
    1 File(s) 1,073,741,824 bytes
    0 Dir(s) 38,502,694,912 bytes free
    [17:15:21.04] move boot.wim from FactoryUpdate to 2ndCap.
    [17:15:21.10] Brand detection.
    [17:15:21.80] ---------------------------------------------------------------------
    [17:16:10.26] Start SysID Check...
    [17:16:13.30] Start Option Code Checks...
    SKU_DEF_COUNTRY=[39]
    SKU_DEF_SYS_LOC=[fr-CA]
    Reset country in administrator...
    Reset country in Default user...
    Reset System localed
    Deployment Image Servicing and Management tool
    Version: 6.1.7600.16385
    Image Version: 6.1.7600.16385
    Reporting offline international settings.
    Default system UI language : en-US
    System locale : fr-CA
    Default time zone : Pacific Standard Time
    User locale for default user : en-US
    Location : Canada (GEOID = 39)
    Active keyboard(s) : 0409:00000409
    Keyboard layered driver : PC/AT Enhanced Keyboard (101/102-Key)
    Installed language(s): en-US
    Type : Fully localized language.
    The operation completed successfully.
    Updated System Locale info..
    [17:16:27.37] Start PIN Tweaks...
    [17:16:28.38] ---------------------------------------------------------------------
    [17:16:28.40] PIN Tweaks to hide All for BurnBoot BBV and BBV2 on restored image...
    [17:16:28.40] ----------------------------------------
    [17:16:28.40] Tweaks for OOBE's Unattend.xml
    [17:16:28.40] to pick up the proper file...
    [17:16:28.41] ----------------------------------------
    [17:16:28.41] rename unattend.org to unattend.or_
    [17:16:28.44] ----------------------------------------
    [17:16:28.44] without Light Sensor..
    [17:16:28.48] ----------------------------------------
    [17:16:28.49] This is Restored image by SSRD [SSRD.flg]...
    [17:16:28.51] ---------------------------------------------------------------------
    [17:16:29.40] Start MIR Tweaks...
    [17:16:30.43] ---------------------------------------------------------------------
    [17:16:30.43] [MIR Tweaks] ...
    [17:16:30.43] ---------------------------------------------------------------------
    [17:16:31.44] Start Factory Update(s)...
    [17:16:33.45] Start QFE Offline installation...
    [17:16:38.13] PININST_OFF: PASSED...
    [17:16:38.21] Type C:\System.sav\Logs\BBFindEr.log...
    [17:16:38.23] Type C:\System.sav\Logs\BBFindE0.log...
    ---------- C:\SYSTEM.SAV\LOGS\PININST_OFF.LOG
    Result=PASSED
    [17:16:38.24] There was no QFE installation...
    [17:16:38.24] Check FUList.log if there is duplicate Desc...
    Couldn't access C:\System.sav\logs\FUList.log...
    [17:16:38.35] No Duplicated Desc is found... PASSED.
    [17:16:38.37] There was no Factory Update...

    Hi @Savvy58
    I did some further looking into that Error Log you posted. Basically, it means that is looking for a certain location that doesn't seem to be there. This could be a problem with the USB Recovery drive that you have. I would recommend that you contact HP. You can reach HP Total Care at 1-800-474-6836 in North America or start here if you live outside of North America.
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • How to create bootable iso file from usb flash drive to install windows 7 on macbook early 2008

    how to create bootable usb flash drive from iso file to install windows 7 on macbook early 2008

    I would like to install windows on my mac because I am in engineering school and there a lot of programs I'd like to have on my computer that only run on windows.  And yes I'd like to use bootcamp and I know there must be a way to install off a flash drive.  Do you know of a way?

  • How to use USB flash drive in XFCE?

    Hello,
    How to mount/unmount USB flash drive in XFCE?
    Thanks for your help,
    Anand

    http://wiki.archlinux.org/index.php/AutoFS_HowTo might be interesting

  • Does Time Machine back up USB Flash Drive?

    I have a 128GB USB Flash Drive. The contents of this flash drive was restored from a previous external SSD (used as storage and has died on me).
    Now I would like my Time Machine to backup both my MacAir and my USB Flash Drive.
    My First Concern is
    So when I plug in my USB Flash Drive, it appears in the Exclude List.
    However, after I remove the USB Flash Drive from the exclude list and click on Save.
    I start to Back Up using Time Machine.
    Does it mean that time machine will back up my USB Flash Drive for this One Time?
    Because when I open up the Time Machine preference, the USB Flash Drive re-appears in the Exclude List again.
    Second Concern
    When I open the HDD I use for Time Machine, I noticed that the latest backup consist of both my MacAir
    and the name of my Previous External SSD (instead of my current USB Flash Drive).
    I am wondering if Time Machine recognise my current USB Flash Drive as my previous external SSD
    since I restored my contents from there.
    So is my USB Flash Drive really backed up (just that Time Machine recognise it as my previous external SSD)?
    Hope someone can share their experience and advice on this.
    (Please do not recommend other app like Carbon Copy Cloner, as I already plan to use the CCC Trial.)
    Thank you to all.

    What is the format of the volume on the flash drive? It's shown in the Finder Info window.

  • OS X Lion USB Flash Driver WRITE PROTECTED?

    If the original OS X Lion USB Flash Drive from the Apple Store read-only or can you describe them with newer versions of OS X?

    Read only.
    In case if you have to reinstall the OS you have to use Software Update to update the system.

  • None of my usb flash drives are mounting

    OS X 10.6.8 - None of my usb flash drives are mounting. They don't show up in disk utility either.  System proflier does show the flash drives.  I've run disk warrior and the flash drives show there as well.  I've tried all of the usb outlets with several flash drives and none of them show up.  I can use the same usb outlets to use my wireless keyboard, mouse and also my ipad.
    Finders preferences are all checked to show items on desktop.
    One of my flash drives I tried several times and finally got this screen message. "System extension cannot be used  The system extension "/System/Library/Extension/IOStorageFamily.Kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.   Non of my other 6 flash drives mount and they do not receive any screen message. 
    I've also run repair disk permissions several times and the it says permissions repaired so I run it again and the same issued it said it was repaired, it lists again. I've done this several times with the same results.

    Hello
    from that
    "System extension cannot be used  The system extension "/System/Library/Extension/IOStorageFamily.Kext" was installed improperly and cannot be used"
    try this
    - boot from your original system disc
    - plug one of your usb flash drives
    - see if installer software could use usb flash drives as target for install
    ( testing your usb flash drive from a know good system software )
    - DO not perform install on flash drive , just need to know if flash is usable
    if it could , re-install your system or if it was updated from a previous version re-install 10.6.8 combo update
    http://support.apple.com/kb/DL1399
    checking for any missing update ?
    HTH
    Pierre

Maybe you are looking for

  • If there is an alternative

    I have a report which has a condition: bring me the records which have quantity > 100 ( for example ) or whatever you tell it to do Inside the report (rdf) the field "quantity" has as a source a placeholder (cp_qty), which takes value from a formula

  • Kernal Panic Help Please

    Hello,      I cannot find a fix for this.  I have been doing research off and on for a week or so.  Any ideas or directions in which to point me?  Any help would be greatly appreciated.  Thanks. Interval Since Last Panic Report:  27789 sec Panics Sin

  • MySQL InnerJoin query syntax error?

    I can't seem to locate the syntax error in this MySQL query.  Coldfusion says there an error in my sql syntax.  Here is the query.  Anyone have any clues on this? <cfquery name="queryItem" datasource="bonus"> select p.productid, p.modelnumber, p.mode

  • How could I check whether Oracle Enterprise Manager is installed or not ?

    Customer uses Oracle DB 11g. How could I check whether Oracle Enterprise Manager is installed or not ?

  • HUB issue on Z10

    Hi, I would like to seek for your assistance if you ever encounter issue below; On BB Z10 device, I have configured an IMAP account. The email has been working well for many months. However, since yesterday I was not able to read any email related to