Re: how to support long file name in vfat format under linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

--- On Tue, 13/10/09, Rahul Tank <gr8rahul@xxxxxxxxx> wrote:

> From: Rahul Tank <gr8rahul@xxxxxxxxx>
> Subject: Re: how to support long file name in vfat format under linux
> To: "loody" <miloody@xxxxxxxxx>
> Cc: "Kernel Newbies" <kernelnewbies@xxxxxxxxxxxx>
> Date: Tuesday, 13 October, 2009, 7:18 PM
> 
> 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?
>

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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux