You are not logged in.
Hello ppl,
I wonder if one of you can point me what software component I need to change to tune the default mounting options for a specific file system. ArchLinux mount FAT32 filesystems using the utf8 arg and I have an ancient system which doesn't and I'd like to replicate the Arch changes to this ancient system.
I tried to search on the ArchWiki, but I found nothing.
Thank you in advance.
Last edited by vinipsmaker (2014-02-02 21:17:23)
Sorry for my bad english
Offline
We have no idea what are you using for automounting, you have to tell us.
If you mount the drive by hand, the man page for 'mount' will tell you what options you have.
Offline
Not a Sysadmin issue, moving to NC...
Offline
We have no idea what are you using for automounting, you have to tell us.
The problem is not automounting.
Sample:
vinipsmaker ~ $ sudo mount /dev/sdb1 /mnt
[sudo] password for vinipsmaker:
...
/dev/sdb1 on /mnt type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
I didn't specified these options (codepage=437, iocharset=iso8859-1, ...) and if I try to mount a ext4 filesystem, they won't show.
I want to know how to change these default options for a specific file system. In fact, I don't want you guys to give me the solution. Just point me what software I need to change and I'll take care of reading the documentation.
If you mount the drive by hand, the man page for 'mount' will tell you what options you have.
By reading the manpage, I understood that the only way to tune the default mounting options for a specific filesystem is to create /usr/bin/mount.vfat. Do you think this approach is fragile or can I proceed with it?
Sorry for my bad english
Offline
Have you tried 'mount -o <some options here> /dev/sdb1 /mnt'?
Offline
Have you tried 'mount -o <some options here> /dev/sdb1 /mnt'?
I want to change the behaviour for all software/scripts calling the mount command.
Sorry for my bad english
Offline
I think you can set these options in fstab on a per filesystem base.
See https://wiki.archlinux.org/index.php/fstab
Also see the FAT32 remark at the end of the article.
Regards
Personal website: reboot.li
GitHub: github.com/rebootl
Offline
I think you can set these options in fstab on a per filesystem base.
See https://wiki.archlinux.org/index.php/fstab
Also see the FAT32 remark at the end of the article.
Regards
fstab doesn't allow wildcard sources/targets. I don't want to change options for a specific partition/label/uuid. I want to change the options for all of them that belong to a certain filesystem type.
Anyway, I'll mark this topic as solved. While I'm arguing with you guys, I'm believing that the problem must be solved in another layer.
Sorry for my bad english
Offline
I didn't specified these options (codepage=437, iocharset=iso8859-1, ...)
These are hard-set defaults in the kernel: https://git.kernel.org/cgit/linux/kerne … at/Kconfig
You can override them with mount -o, or you can recompile your kernel with different defaults. I'm not sure why you want to override these defaults, but that's up to you.
Last edited by WorMzy (2014-02-02 21:21:47)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline