You are not logged in.
Pages: 1
Anybody used larch script?
When I use larch to creat archlive, I found it can't mount ntfs or fat partion with extra charset support,
How can I define the locale options for the script which can auto creat fstab file?
I want the script can creat some content in fstab file as below:
/dev/sda1 /mnt/windows ntfs-3g users,noauto,uid=1000,gid=100,fmask=0113,dmask=0002,locale=zh_CN.utf8 0 0
/dev/sda5 /mnt/backup ntfs-3g users,uid=1000,gid=100,fmask=0113,dmask=0002,locale=zh_CN.utf8 0 0
Thanks!
Last edited by carbonjiao (2008-12-01 08:32:48)
http://archlive.googlecode.com
http://archlive-pkg.googlecode.com
Live system and build scripts base on Arch GNU/Linux
基于Arch GNU/Linux的live系统及制作脚本
Offline
The forum is for everybody to post and reply to. If you have a question to an individual user, send them an email.
Offline
The solution is change line 71 of gen_fstab in /opt/larch-live/ as:
if [ "${id}" = "7" ] ; then
printf "%-12s %-8s %-8s users,utf8,umask=0 0 0\n" \
${dev} /mnt/${mountdir} ntfs-3g >>${tmpfile}
elif [ "${id}" = "b" ] ; then
printf "%-12s %-8s %-8s users,utf8,umask=0 0 0\n" \
${dev} /mnt/${mountdir} vfat >>${tmpfile}
elif [ "${id}" != "f" ] ; then
printf "%-12s %-8s %-8s users,auto,noatime 0 0\n" \
${dev} /mnt/${mountdir} auto >>${tmpfile}
fi
http://archlive.googlecode.com
http://archlive-pkg.googlecode.com
Live system and build scripts base on Arch GNU/Linux
基于Arch GNU/Linux的live系统及制作脚本
Offline
Pages: 1