Hello,

--- On Tue, 13/10/09, Rahul Tank <[email protected]> wrote:

> From: Rahul Tank <[email protected]>
> Subject: Re: how to support long file name in vfat format under linux
> To: "loody" <[email protected]>
> Cc: "Kernel Newbies" <[email protected]>
> Date: Tuesday, 13 October, 2009, 7:18 PM
> 
> Hi,
> 
> On Tue, Oct 13, 2009 at 6:36 PM,
> loody <[email protected]>
> wrote:
> 
> dear all:
> 
> 
> 
> 2009/10/13 loody <[email protected]>:
> 
> > hi:
> 
> >
> 
> > 2009/10/13 loody <[email protected]>:
> 
> >> 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?
>

AFAIK, it will create devices as per the partitions of your HDD. e.g: If your 
HDD has three partitions then it will create /dev/sdb1, /dev/sdb2 and /dev/sdb3.

Now if the three partitions have different filesystems then u have to use -t 
<fs-type> while mounting. For supported <fs-type> u need to check man page of 
mount.
 
>  check  "man mount" 
> 
>   You give different mount types  as "ext3" ,
> "ntfs " etc. 
> 
>  I hope i got your question correctly.
> 
>  
> appreciate your help,
> 
> miloody
> 
--Abhijeet


      Connect more, do more and share more with Yahoo! India Mail. Learn more. 
http://in.overview.mail.yahoo.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to