You are not logged in.

#1 2008-11-29 06:25:23

carbonjiao
Member
Registered: 2008-11-07
Posts: 20
Website

About larch: Define the mount options

Anybody used larch script?

http://larch.berlios.de/

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

#2 2008-11-29 06:40:04

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: About larch: Define the mount options

The forum is for everybody to post and reply to.  If you have a question to an individual user, send them an email.

Offline

#3 2008-12-01 08:33:40

carbonjiao
Member
Registered: 2008-11-07
Posts: 20
Website

Re: About larch: Define the mount options

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

Board footer

Powered by FluxBB