LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-22-2016, 05:29 AM   #1
soebo
LQ Newbie
 
Registered: Aug 2016
Posts: 2

Rep: Reputation: Disabled
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.
 
Old 08-22-2016, 05:47 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
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.
 
1 members found this post helpful.
Old 08-22-2016, 07:36 AM   #3
soebo
LQ Newbie
 
Registered: Aug 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
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.
 
Old 08-22-2016, 07:54 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How can I mount a HDD image that created by "dd" command? hack3rcon Linux - Software 2 02-16-2015 10:39 AM
Linux "mount" command eliote Linux - General 4 09-26-2010 02:44 PM
grub 12.2 mount command returns "errors=continue" but everything works Ben Cobb Slackware - Installation 3 01-17-2009 09:57 AM
will this command mount my old "/home" for a new distro installed? mhg Linux - Newbie 4 07-01-2007 02:00 PM
LXer: Using external file devices in Linux: Climbing the "mount" command LXer Syndicated Linux News 0 04-02-2007 12:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration