Hot answers tagged fat
If on Linux, when loading the loop module, make sure you pass a max_part option to the module so that the loop devices are partitionable. Check the current value: cat /sys/module/loop/parameters/max_part If it's 0: modprobe -r loop # unload the module modprobe loop max_part=31 To make this setting persistent, add the following line to ...
First thing that comes to mind is to mv the file(s) to a temporary, cp the temporary file to the old filename and delete the temporary. I just made a fast check: touch foo ls -l foo returns: 0 -rw-r--r-- 1 shunz shunz 0 2011-03-22 11:07 foo wait some minutes and then: mv foo bar ls -l bar 0 -rw-r--r-- 1 shunz shunz 0 2011-03-22 11:07 bar notice ...
It seems that you do not have the "codepage cp437" support in the kernel. Try to Look inside your /proc/config.gz file and search for a line like CONFIG_NLS_CODEPAGE_437=m or CONFIG_NLS_CODEPAGE_437=y. If you do not find it, you'll have to recompile the kernel to add the needed module.
losetup /dev/loop0 file -o 1048576 --sizelimit limit Offset specified should be in bytes (1048576 = 2048 sectors * 512 bytes per sector). mount -o loop,offset=1048576,sizelimit=limit For more information see losetup and mount.
Try sudo mlabel -i <device> ::<label>, for example sudo mlabel -i /dev/sdb1 ::new_label. Reference: RenameUSBDrive on the Ubuntu community documentation.
Depending on what OS you are using there are command line utilities such as: FatSort And touch won't help you with sort since all you will be able to do with it is manipulate the timestamps on the file or directories.
You need to set codepage and charset in kernel options: make menuconfig -> File systems: -> Native language support: <*> Codepage 437 (United States, Canada) <*> NLS ISO 8859-1 (Latin 1; Western European Languages) -> DOS/FAT/NT Filesystems (437) Default codepage for FAT (iso8859-1) Default iocharset for FAT and then recompile ...
Rsync with --iconv would be an option, but you'd first need to define an encoding where ?, : and others are encoded with characters that are allowed on FAT filesystems. For your use case, you aren't using all the power of rsync for this. This task can be done in a few lines of shell script. Here's a bash script that copies ~/Music to /media/usb99, skipping ...
FAT has a "hidden" flag, which works under windows unless you poke through the folder settings to show hidden files (which I tend to do as a 'standard thing' on new windows computers :P). I dont know if UNIX FAT or Mac OS would support that flag, unix standard is to prefix hidden stuff with a dot, mac I have no clue (or care) about but probably works the ...
There are no inodes on most non-Unix file systems (like vfat). It's normal that none are shown. For the rest of the problem we need more info. Edit 1: From the du output we now know that there are 1999360-1142944=856416 blocks missing. With Linux file systems such differences can occur if an open file is deleted. You do not see it in the file system any ...
You can check whether a file is fragmented or not using the filefrag utility. That way you could filter out the files that aren't fragmented, and do the copy/copy back only for already fragmented files. That should save you some time. However be aware that there is no guarantee the new file layout will be better than the old one. The best way is to ignore ...
I'm pretty sure the only reserved bytes are 0 (ASCII Nul) and 0x2f (ASCII '/', forward slash). You can easily make a file with '.', '\' and other funky things in it. Think "unicode file names", which contain all kinds of weird byte values. Naturally, you can't have duplicate file names in the same directory, so files named "." and ".." can't usually be ...
So far the only way I found to change FAT volume name whit lower cases is to edit it whit a hex-editor (copy the first few sectors whit dd to a temp file, edit it and copy it back). It works well so far (even whit FAT16) and neither fsck nor CHKDSK from Win7 complained. But no guarantee of course ;-)
dmask and fmask is the permissions for directories and files respectively. It is an octal number. And denotes read, write and execute permissions for Owner, Group and Other users. fstab: /dev/sdb1 /media/exampleFolderName vfat dmask=000,fmask=111 0 0 When you say plug the drive in, an external drive e.g USB should automount.
Only top voted, non community-wiki answers of a minimum length are eligible