基于新塘NUC980处理器的Linux系统,使用TF卡时,报错后会重新挂载为RO只读模式,可以通过修改内核文件,让TF卡挂载为RW继续使用,修改内容如下:
diff --git a/NUC980-linux-4.4.y-master/fs/fat/inode.c b/NUC980-linux-4.4.y-master/fs/fat/inode.c index 944fff1..e3091e1 100644 --- a/NUC980-linux-4.4.y-master/fs/fat/inode.c +++ b/NUC980-linux-4.4.y-master/fs/fat/inode.c @@ -1064,7 +1064,8 @@ static int parse_options(struct super_block *sb, char *options, int is_vfat, opts->usefree = opts->nocase = 0; opts->tz_set = 0; opts->nfs = 0; - opts->errors = FAT_ERRORS_RO; + //opts->errors = FAT_ERRORS_RO; // + opts->errors = FAT_ERRORS_CONT; *debug = 0; if (!options) @@ -1177,7 +1178,8 @@ static int parse_options(struct super_block *sb, char *options, int is_vfat, opts->errors = FAT_ERRORS_PANIC; break; case Opt_err_ro: - opts->errors = FAT_ERRORS_RO; + //opts->errors = FAT_ERRORS_RO; // + opts->errors = FAT_ERRORS_CONT; break; case Opt_nfs_stale_rw: opts->nfs = FAT_NFS_STALE_RW;
opts->errors = FAT_ERRORS_RO;
修改为:
opts->errors = FAT_ERRORS_CONT;