Is there a tool that can tell me the real dos name to long dos name mappings of a file in linux? in windows? I can come close with using md5 sums but if there are copies of files then deleting the wrong one would be a problem area. In linux I normally have the boot partition mounted as vfat so that the default kernel installer can write files like normal. Is there an easy way to know the dos filename of files without having to unmount and remount as msdos? For now I just copy the kernel version I want to boot to vmlinuz.new and the initrd I want to initrd.new syslinux is the only way that allows an easy dual boot when you have to reinstall. I can reinstall windows and easily in windows set my syslinux partition back to the boot partition. For some reason windows can only set a fat or ntfs partition as active other wise I would use extlinux and I wouldn't be needing to know the above, On second thought I also use syslinux so I can edit the boot order in either linux or windows.
Jeff Sadowski wrote:> Is there a tool that can tell me the real dos name to long dos name > mappings of a file in linux? > in windows? > I can come close with using md5 sums but if there are copies of files > then deleting the wrong one would be a problem area. In linux I > normally have the boot partition mounted as vfat so that the default > kernel installer > can write files like normal. Is there an easy way to know the dos > filename of files without having to unmount and remount as msdos?I just cooked up this little utility which should help you tell. In Windows use the /x option to the DIR command. -hpa -------------- next part -------------- A non-text attachment was scrubbed... Name: lsfat.c Type: text/x-csrc Size: 2352 bytes Desc: not available URL: <http://www.zytor.com/pipermail/syslinux/attachments/20080526/d692e02c/attachment.bin>
sweet thanks that works perfect in linux. :-) Is there any plans of getting syslinux to ever support long filenames? I guess I could just have a script to fix syslinux.cfg to the real filename On Mon, May 26, 2008 at 12:01 PM, H. Peter Anvin <hpa at zytor.com> wrote:> Jeff Sadowski wrote: >> >> Is there a tool that can tell me the real dos name to long dos name >> mappings of a file in linux? >> in windows? >> I can come close with using md5 sums but if there are copies of files >> then deleting the wrong one would be a problem area. In linux I >> normally have the boot partition mounted as vfat so that the default >> kernel installer >> can write files like normal. Is there an easy way to know the dos >> filename of files without having to unmount and remount as msdos? > > I just cooked up this little utility which should help you tell. > > In Windows use the /x option to the DIR command. > > -hpa > > _______________________________________________ > SYSLINUX mailing list > Submissions to SYSLINUX at zytor.com > Unsubscribe or set options at: > http://www.zytor.com/mailman/listinfo/syslinux > Please do not send private replies to mailing list traffic. > > >
On Mon, May 26, 2008 at 10:11:23AM -0600, Jeff Sadowski wrote:> For some reason windows can only set a fat or ntfs partition as activeActually it can set any primary partition as active - just not in GUI, but the diskpart.exe utility in Windows XP can do this: select disk 0 select partition 1 active exit -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <http://www.zytor.com/pipermail/syslinux/attachments/20080527/e047ec97/attachment.sig>