Hi: 2009/10/13 Rahul Tank <gr8rahul@xxxxxxxxx>: > > Hi, > > On Tue, Oct 13, 2009 at 6:36 PM, loody <miloody@xxxxxxxxx> wrote: >> >> dear all: >> >> 2009/10/13 loody <miloody@xxxxxxxxx>: >> > hi: >> > >> > 2009/10/13 loody <miloody@xxxxxxxxx>: >> >> Dear all: >> >> there is a long file name under my usb flash, but I only can see 8.3 >> >> format under my linux. >> >> Does that mean I lost any file system config? >> >> if so, which one I should include? >> >> my kernel version is 2.6.18. >> >> appreciate your help, >> >> miloody >> > should I add more mount option? >> > I only use: >> > mount /dev/sda1 /media/usb >> > appreciate your help, >> I can fix my problem by using mount command as >> mount -t vfat /dev/sda1 /media/usb >> then iocharset=iso8859-1 will be added on and i can see the long file >> name. >> >> I have another question right now. >> I write a autorun.sh to detect the hotplug event and mount the disk. >> But if I got a usb HD that have vfat, NTFS and ext3 formats at >> different partitions, >> how could I write one mount command for all cases? >> I cannot mount every /dev/sda[1-9] as -t vfat, right? > > check "man mount" > > You give different mount types as "ext3" , "ntfs " etc. > > I hope i got your question correctly. > >> >> appreciate your help, >> miloody >> >> -- >> To unsubscribe from this list: send an email with >> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx >> Please read the FAQ at http://kernelnewbies.org/FAQ >> > > Thanks, > Rahul thanks for your all kind help :) The problem comes from my trying to write a autoscrpit to mound usb device under my embedded system. I use mount command in busybux and I have no idea how ubuntu or other distribution can mount different file formats by autorun. did they first detect file format and then add the -t option while mounting? or the mount command has the ability to tell different formats? appreciate your help, miloody -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ