How to run fsck.vfat for USB-stick during cRIO-9030 boot?

Hi all,
we have a cRIO-9030 with a USB-stick. Sometimes after power loss the USB-stick filesystem (FAT32) gets corrupted and has to be checked/fixed. How can I configure cRIO LinuxRT to do that?
I've checked /etc/fstab, but it looks that the USB-stick is mounted somewhere else. I run mount - here is the line:
/dev/sdc1 on /media/sdc1 type vfat (ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,quiet,errors=remount-ro)
It would be nice if I can run fsck.vfat /dev/sdc1 every boot or when an error is detected.
Thanks in advance,
Nikolai

Hi NickViz,
My name is Ed form National Instruments Technical Support, I have researched into the topic and found that it is possible to use the 'System Exec.vi' to complete the command during the initialization of your RT application.
You simply need to input your commands as a string just as you would to command prompt/terminal (depending on OS), you can also execute commands via SSH however this is one way communication between the RT application and the command shell.
I have included some links below to articles which describe the methodology as well as give some further explanation into the NI Linux Real-Time OS.
http://digital.ni.com/public.nsf/allkb/AFCAC25164CDBD4C86257C6A00545CD5?OpenDocument
http://digital.ni.com/public.nsf/allkb/9822A3A39B1D0CBB86257C55006B962A
http://www.ni.com/white-paper/14626/en/
I hope this is helpful and you achieve what it is you need, do note you will need to enable SSH scripting as described in the article on using PuTTY for your Real Time device.
Kind Regards,
Ed

Similar Messages

  • I have a new MacAir and don't know how to get info from my USB stick and my SD photo card.  Can anyone help me please?

    I have a new MacBook Air and don't know how to get info from my USB stick and get info from my SD card.  Can anyone help, please?

    Plug the stick and/or card into the appropriate slots on the side of your Air. Do you see icons for the devices appear on the desktop? Click into them to see what files are there.
    Matt

  • HT204382 How do I watch video from USB sticks please Thomas

    Hello World, who knows how to watch video from a USB stick??

    You click on the USB icon in a Finder window, and double-click the video....
    Where the video is (hard drive, DVD drive, USB, network) makes no difference to OS X.
    If you are having trouble making QuickTime play a particular video, it's probably because QuickTime doesn't support a lot of formats. Save yourself a lot of hassle and download the free VLC videoplayer and use that for playing your videos (whatever the format, VLC will probably play it):
    http://www.videolan.org/vlc/index.html

  • How To run Currency translation for Consolidation Application in BPC NW

    In "How To do Currency Translation for Financial Application in BPC 7 NW", the author mention that there is another "How To run Currency translation for Consolidation Application in BPC NW", anybody know where to get it?

    Hi...
    Check if the below links are useful to you.....
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/6052a57b-8c64-2c10-b3a5-b0378ff21243&overridelayout=true
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0ea1fd8-d6d3-2a10-c1ab-e8164dd98316
    You can find all How-to docs in the below link
    http://wiki.sdn.sap.com/wiki/display/BPX/EnterprisePerformanceManagement%28EPM%29How-to+Guides

  • How to run Crypto Tools for SSO Enabling

    Hi Friends,
    How to run Crypto tools for SSO enabling. If any body knows please help me...
    Thanks

    Hi ;
    what is the script for windows Environment...

  • How to run wfstatus.sql  for i-Expenses

    how to run wfstatus.sql for i-Expenses in 11i EBS.

    Pl see MOS Doc 295078.1 (Maintenance Pack, Patchset, and Rollup Patch Level for Internet Expenses 11i)
    HTH
    Srini

  • How do I create multiple live USBs of Operating systems to boot from on one flashdrive?

    How do I create multiple live USBs of Operating systems to boot from on one flashdrive?
    I am attempting to create multiple live USBs within one flashdrive so that i can boot various operating systems without having to buy multiple USb sticks. I am using a Mac OS X Snow Leopard 10.6.8 Operating System currently. I am using the Terminal provided by the OS.
    I would like to try Debian, Kali, Precise Puppy, and Sabayon- with one space left empty for whatever Linux OS I would like to try next. I have partitioned an 8GB flashdrive into the following sections:
    name of intended OS,     space allocated for it:
    1)Debian ........................1.32 GB
    2)Kali..............................2.61GB
    3)Precise Puppy..............163.7MB
    4)Sabayon.......................1.77GB
    5)TBD..............................2.14GB
    I have figured out how to change the .iso files of the operating systems into .img files with the following commands:
    hdiutil convert -format UDRW /path/to/input.iso -o /path/to/output.img
    a .img.dmg file is created, this is corrected in the next line of code *please note: I am a a very beginner at programming, and would greatly appreciate any help. Thank you!
    mv /path/to/output/file.img{.dmg,}
    This is where I started to get confused:
    I entered diskutil list to find the location of the partitions on my flashdrive, and this is the relevant section:
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     FDisk_partition_scheme                        *8.0 GB     disk1
       1:                 DOS_FAT_32 DEBIAN               1.3 GB     disk1s1
       2:                 DOS_FAT_32 KALI                    2.6 GB     disk1s2
       3:                 DOS_FAT_32 PRECISE            163.7 MB   disk1s3
       4:                 DOS_FAT_32 SABAYON           1.8 GB     disk1s5
       5:                 DOS_FAT_32 TBD                     2.1 GB     disk1s6
    This is the code I attempted to use and the subsequent result:
    charles-burtons-mac-mini:~ charlesburton$ sudo dd if=/Users/charlesburton/Desktop/debian-live-7.2-i386-gnome-desktop.img of=/dev/disk1s1 bs=1m
    dd: /dev/disk1s1: Resource busy
    *at this point I went to the Disk Utility GUi and unmounted only the DEBIAN partition, now back to the terminal*
    charles-burtons-mac-mini:~ charlesburton$ sudo dd if=/Users/charlesburton/Desktop/debian-live-7.2-i386-gnome-desktop.img of=/dev/disk1s1 bs=1m
    dd: /dev/disk1s1: end of device
    1259+0 records in
    1258+1 records out
    1320005632 bytes transferred in 1011.966891 secs (1304396 bytes/sec)
    Please may someone help explain why I had a return value of +1 in my records in and how I can make it work properly.

    I would like to know the answer to this as well.  I tried renaming the 3D version by adding 3D after it, but it still not a separate movie in iTunes.
    It's putting them in the same folder.

  • Run Time from a USB stick

    Hello,
    I'm working on a simple VI using the SMTP send file function, which will be run from a USB stick. The executable works well save for that it needs to run from the stick on computers without Run Time installed. I have Run Time 8.5 installed on the stick, in the X:\Program Files\National Instruments\ folder, but the application can't find the RTE to execute. It needs to find it automatically, since several people (all untrained in LabView) will be inserting the stick into various remote Windows computers in order to send the emails and attachments. Another potential problem is the varying drive letter assignment given to the USB stick, but that doesn't seem to be the current problem. Any suggestions?
    Setup:
    WinXP 
    LV 8.5 
    Thanks,
    Mark 

    In some cases it possible, if you not using packages which should be installed, like IMAQ, VISA, etc...
    But do not install RunTime on the memory stick (because some paths will be stored in the registry - you may get troubles with your PC when stick will be removed).
    Try to do following (without guarantees, but may work):
    1. Copy <Program Files>\National Instruments\Shared\LabVIEW Run-Time\x.x directory to your USB stick (x.x - LabVIEW version which was used for your project)
    2. Place your builded application into this directory on USB stick (executable should be located at the same place where lvrt.dll located)
    3. Try to start it on the PC without RunTime.
    hopefully it helps,
    Andrey.

  • How to update recovery firmware through USB stick

    Hello,
    I have px4-300d and recently got an issue with iomega device not booting. The iomega logo is displayed and nothing happens after that. The OS is not booting. I fI conenct keyboard to USB port and press CTRL-ALT-DEL it reboots. So it is stuck somewhere in or before OS boot. Since I cannot connect monitor to this device, I need to find a way how to blindly recover the OS.
    I heard some models have an option to use firmware upgrade from the USB stick. I believe it is the same case for this device. Can you suggest me how can I load new recovery fimrware from the USB disk to try to recover the device?
    Thanks.
    Solved!
    Go to Solution.

    Hi climb4hope,
    Is your device still covered by the warranty? It is possible to reimage the device's firmware with a USB stick. However, you will have to contact technical support for the file and process. You can contact support by clicking on the following link: LenovoEMC Support Contact Page
    Have questions and need answers?
    Search the database for answers to FAQ's, software/driver downloads, tutorials, news, features and more!
    LenovoEMC Support & Downloads
    LenovoEMC North America Support Contact Page

  • How to synchronize multiple computers via usb stick?

    I have three computers on which I work most of the time and I have some files, that I have to access/change on all three and thus I have to sync these files.  I would like to do this using an usb stick.  To do so, I formatted a partition on my usb stick as ext4 (without journaling) and then use unison to synchronize the files from one computer to the usb stick when I'm done working on one computer and before I start, I do the same.
    Unfortunately, I have different uid and gid on the different computers (and I cannot change that as I'm not admin on every one).  Unison can still take readable files from the usb stick and store them with my `correct' local uid, but unfortunately it cannot create new files/folders on the usb stick, as the folders are often with rwxr-xr-x permission.
    There are some suggestions, such as here to simply change the ownership of all files recursively, but since I'm not root, I cannot do that.  (Additionally this solution does not feel optimal, as I would have to change the permission bits with every mount -- and this is probably not the best to do to an usb stick(?).)
    So after the whole lament my actual questions:
      o Is there a file system, that can store permissions (such as redable/writable with user and group support), but that I can mount with changed permissions (e.g. translate uid=1023 to uid=17011 while mounting but leavin the actual bits set) and that is suitable for use with an usb stick?
      o Is there a tool to mount/remount the usb stick with `translated' permissions?
      o Is there any other solution you could think of to accomplish my syncing?  (Keep in mind, that sky/cloud drives are no possibilities, as not all of my computers have internet access.)
    Note:  The permissions (which file is rwx and which is only r--) is actually something I want to preserve during this sync-process -- that's why I used ext4 in the first place.
    Last edited by skunk_junior (2013-05-31 12:40:12)

    Trilby wrote:I'm confused, you say you want to preserve the permissions, but you also say you want to change them all to readble.
    I don't want to change the permissions stored on the usb stick.  I just want identical files on all my three systems (also with the permissions set correctly), but I want to use my local uid instead of the uid stored on the stick.  So that the mounting system does not see ``uid=1023 has rwx for file /mnt/foo'', as it's stored on the usb stick, but I want it to see ``uid=17011 has rwx for file /mnt/foo''.
    I Imagine some tool like a table that links the actual, stored, uid on the stick (1023) to the one, I want my system to perceive (17011).
    If I make a file executable, I want to keep that information.  If I store that file on a fat, it's lost.
    Last edited by skunk_junior (2013-05-31 13:08:40)

  • How to run a VI for very short time, e.g. 100ms?

    Hi,
    I need to run a VI for very short amounts of time, say 100ms, 200ms, 500ms or 1s. I want to get this time from the user, maybe as a control variable. How may I do this? I tried using the "elapsed time" function but seems like it was not meant for such small time periods. Any ideas?
    Thanks
    Kaiser 

    What are you trying to do in the "short time"? When you say "run a VI" do you mean "start, run and stop running", or do you mean for the vi to do something for the specified time, i.e. flash a front panel LED for a precise period after the operator clicks a button? In the later case 100mS is actually fairly long, and can be accomplished with various timing functions, with varying degrees of accuracy. The most accurate, in a Windows environment, would probably be the timed loop. If you need really accurate, particularly if you are interfacing with hardware (a pushbutton, an actual lamp, etc.) a real-time system would be the best bet.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • How to put a video on USB-stick?

    I want to share my edited video. (The video is HD)
    Most people want to have the video on a USB-stick. They want to watch the video on TV.
    (Formerly I produced a DVD, but the quality is only SD. I don't have a Blue Ray recorder)
    What is the best way to put it on a stick?
    I also have Compressor.

    in addendum to Russ' answer … :
    The 'universal' format is a h264 in a mp4 container.
    I'm noticing issues with 1080/'fullHD', because many people are lazy and try to playback straight from the stick = too slow = stutter, jam, trouble. So, usually I down-scale resolution to 720/25p (US: 30p), which allows a lower bit-rate (3-5mbps).
    Some devices ask for a special folder-structure, my son's PS3 e.g. is looking for a MOVIES (all caps) folder, inside the mymovie.mp4 (encoded in h264). This Folder Structures differ by brand or model, read the manuals.
    Another, fast way is: export in h264 from within FCPX; open resulting mov with free tool MpegStreamclip; go straight to 'Save as…' and choose in drop-down MP4 => no new encoding, just re-wrapping the mov into a mp4. Super-fast.
    .... and, no, just changing the suffix doesn't do the trick ....

  • How to run a thread for second time ?

    I have a written a ThreadPool, but I found that basically a thread is not running for the second time. i.e First i call run() method and call stop(). If i call again run() method for the same thread, it is not running. What should I do, If i want to run the thread for the second time ?
    class NewThread implements Runnable {
    String name;
    NewThread(String a) {
    name=a;
    public void run() {
    try{
    for(int i=0;i<5;i++) {
    System.out.println("Thread :" + name + " #" +i);
    Thread.sleep(5);
    catch (Exception e) {
    e.printStackTrace();
    class threadRunnableTest {
    public static void main (String args[]) {
    Runnable runnable=new NewThread("BaSkAr");
    Thread thread = new Thread(runnable);
    try{
    System.out.println("First Thread is starting !!!");
    thread.start();
    Thread.sleep(2000);
    System.out.println("First Thread it to be stopped!!");
    thread.stop();
    System.out.println("Second Thread is starting !!!");
    thread.start();
    Thread.sleep(2000);
    System.out.println("Second Thread it to be stopped!!");
    thread.stop();
    catch (Exception e) {
    e.printStackTrace();

    baskark wrote:
    I have a written a ThreadPool, but I found that basically a thread is not running for the second time. i.e First i call run() method and call stop(). If i call again run() method for the same thread, it is not running. What should I do, If i want to run the thread for the second time ?
    class NewThread implements Runnable {
    String name;
    NewThread(String a) {
    name=a;
    public void run() {
    try{
    for(int i=0;i<5;i++) {
    System.out.println("Thread :" + name + " #" +i);
    Thread.sleep(5);
    catch (Exception e) {
    e.printStackTrace();
    class threadRunnableTest {
    public static void main (String args[]) {
    Runnable runnable=new NewThread("BaSkAr");
    Thread thread = new Thread(runnable);
    try{
    System.out.println("First Thread is starting !!!");
    thread.start();
    Thread.sleep(2000);
    System.out.println("First Thread it to be stopped!!");
    thread.stop();
    System.out.println("Second Thread is starting !!!");
    thread.start();
    Thread.sleep(2000);
    System.out.println("Second Thread it to be stopped!!");
    thread.stop();
    catch (Exception e) {
    e.printStackTrace();
    It's usually helpful to check the documentation:
    [http://java.sun.com/javase/6/docs/api/java/lang/Thread.html#start()|http://java.sun.com/javase/6/docs/api/java/lang/Thread.html#start()]
    start
    public void start()Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread.
    The result is that two threads are running concurrently: the current thread (which returns from the call to the start method) and the other thread (which executes its run method).
    It is never legal to start a thread more than once. In particular, a thread may not be restarted once it has completed execution.
    So, make a new java.lang.Thread

  • How to run Explain Plan for SP?

    Can we run Explain Plan for SP??

    EXPLAIN PLAN creates an execution plan for SQL statements. PL/SQL is not SQL.
    PL/SQL procedures can contain SQL, yes. These SQLs can be copied and pasted from PL/SQL into something like TOAD and execution plan determined.
    However, if the aim is to see the "execution/performance plan" for PL/SQL code, then you need to profile the PL/SQL code using the DBMS_PROFILER package. This will tell you the execution path and elapsed time to execute a line of PL/SQL.
    Details can be found in the [url http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_profil.htm#sthref5502]Oracle® Database PL/SQL Packages and Types Reference guide.

  • HT5639 Can I install Win7 32-bit from a bootable USB-Stick on iMac using Boot Camp?

    I would like to run Win7 32-bit on my iMac 8,1.
    I have a bootable USB-Stick to install Win7.
    Does Boot Camp support the installation from USB-Stick?
    Thanks

    Welcome to Apple Support Communities
    You can only install Windows from a USB drive in one of these Macs:
    - MacBook Pro with Retina display.
    - MacBook Air.
    - Mac mini (Mid 2010 and newer).
    - iMac (Late 2012).
    As you don't have any of those Macs, you have to install Windows through a DVD. Also, the only iMac that can install Windows using a USB drive only supports a 64-bit Windows 7 and 8 version with Boot Camp

Maybe you are looking for

  • MMS video from Iphone 3GS to Iphone 3G

    I know we can send pictures from Iphone 3GS to Iphone 3G, but can we send videos from 3GS to 3G. I wonder because the 3G doesn't have the video feature and therefore, I suspect it won't be able to play the video. Someone knows anything about this? Th

  • CS3: how to create action to add fixed text of foreground color, etc.

    I'm trying to create an action and/or brush preset(?) that will: 1) Add a fixed text string in the forground color, consistent font, size, etc. 2) Apply a consistent Layer Style -> Bevel and Emboss setting 3) Allow me to move the text to whatever pos

  • Importing Material data

    Hi, We have decided to import all the master data elements using the enterprise and Sourcing WB for CLM implementation. For material import, if a material exists for multiple plants which is a required field, is it reqd to create multiple entries wit

  • Maintence Order problem

    Hello All, We are facing one problem in PM. There is a maintanince order in our system. We use to change a material let say bolts/belts after every sixth month. Call Horizon is set at 100 percent which means it will create order for same day which is

  • CO-PA document

    Hi Have issue on CO-PA Document. Issue is Finished Goods Material Base Qty is TO. Costing Lot size is 1TO. While post sales return Credit Memo billing document  sales qty is below 1 TO, CO-PA Document is generating, but values is not appearing in CO-