LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   What is the Linux mount() function command for command line mount ... "errors=continue" ? (https://www.linuxquestions.org/questions/linux-software-2/what-is-the-linux-mount-function-command-for-command-line-mount-errors%3Dcontinue-4175587611/)

soebo 08-22-2016 05:29 AM

What is the Linux mount() function command for command line mount ... "errors=continue" ?
 
Hi everybody.

I hope you can help me. :-)

I have the Linux command line:
mount -t vfat /dev/mmcblk0p1 /mnt/mmc

This translates to the C Mount() function:
mount("/dev/mmcblk0p1","/mnt/mmc","vfat",0,(void*)0);

No problem...

-----------------

Now I want to add "-o error=continue" to my Linux command line:
mount -t vfat /dev/mmcblk0p1 /mnt/mmc -o error=continue

How to convert the "-o error=continue" to the C Mount() funktion:
mount("/dev/mmcblk0p1","/mnt/mmc","vfat",0,(void*)0);


Best regards
Soren, Denmark.

hydrurga 08-22-2016 05:47 AM

This doesn't answer your question but just a heads-up that, as far as I am aware, errors=continue (note the s on errors) is not a mount option for vfat, just extn and jfs.

soebo 08-22-2016 07:36 AM

Quote:

Originally Posted by hydrurga (Post 5594200)
This doesn't answer your question but just a heads-up that, as far as I am aware, errors=continue (note the s on errors) is not a mount option for vfat, just extn and jfs.

Thank you very much. This I had not noticed.

hydrurga 08-22-2016 07:54 AM

No problem soebo. Welcome to LinuxQuestions by the way. :)

If you run man mount then this will show you a list of common and filesystem-specific options for the mount command.


All times are GMT -5. The time now is 10:03 PM.