Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Instalace, aktualizace a spouštění => Téma založeno: tomesm 29 Dubna 2009, 16:21:59
-
Bohuzel po instalaci jaunty si krusader nevi rady se soubory s diakritikou, stejne jako amarok, proste je neotevrou (neprehraji). Nez prepisovat rucne vsechny soubory, napadlo me upravit kodovani parition v fstabu. Bohuzel se neadarilo, ale mozna jsem nekde udelal chybu, mozna to uz nekdo uspesne zkousel. Pokud jo, tak at prosim poradi. Prohledal jsem web a vim ze toto je celkem problem...
Muj postup byl nasledujici:
Mam hubnu na datove partition s FAT32 po:
sudo fdisk -l
se mi zobrazilo:
Disk /dev/sda: 120,0 GB, 120 034 123 776 bajtů
hlav: 255, sektorů na stopu: 63, cylindrů: 14 593
Jednotky = cylindry po 16065 * 512 = 8 225 280 bajtech
Identifikátor disku: 0xa8d32665
Zařízení Zavádět Začátek Konec Bloky Id Systém
/dev/sda1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/sda2 1913 14593 101860132+ f W95 Rozš. (LBA)
/dev/sda5 1913 12111 81923436 b W95 FAT32
/dev/sda6 14544 14593 401593+ 82 Linux swap/Solaris
/dev/sda7 12112 14543 19535008+ 83 Linux
Diskové oddíly jsou chybně seřazeny
Takze ,,muj" oddil je sda5. Zkusil jsem nyni do fstabu pridat nasledujici radek:
/dev/sda5 /media/disk fat32 defaults,user,umask=222,nls=utf8 0
Takze cely fstab vypada takhle:
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda7 during installation
UUID=02af9431-7f14-4278-9486-358fadc76b77 / ext3 relatime,errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=fa92126d-d036-48af-b7a1-12aef0355e7c none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sda5 /media/disk fat32 defaults,user,umask=222,nls=utf8 0
Bohuzel to nefunguje. Zkousel jsem dat i mrizku (# /dev/sda5/ ..) ale nepomohlo. Stejne jako ruzne druhy kodovani nls (utf8, cp1250, iso-8859-2, cp852). Nic nefunguje.
Zajimalo by me, zda ten zapis v fstabu nemam spatne... a taky me zajima otazka, zda to jde vubec nejak vyresit...
-
Mount options for fat
(Note: fat is not a separate filesystem, but a common part of the msdos, umsdos and vfat filesystems.)
blocksize=512 / blocksize=1024 / blocksize=2048
Set blocksize (default 512).
uid=value and gid=value
Set the owner and group of all files. (Default: the uid and gid of the current process.)
umask=value
Set the umask (the bitmask of the permissions that are not present). The default is the umask of the current process. The value is given in octal.
dmask=value
Set the umask applied to directories only. The default is the umask of the current process. The value is given in octal.
fmask=value
Set the umask applied to regular files only. The default is the umask of the current process. The value is given in octal.
check=value
Three different levels of pickyness can be chosen:
r[elaxed]
Upper and lower case are accepted and equivalent, long name parts are truncated (e.g. verylongname.foobar becomes verylong.foo), leading and embedded spaces are accepted in each name part (name and extension).
n[ormal]
Like "relaxed", but many special characters (*, ?, <, spaces, etc.) are rejected. This is the default.
s[trict]
Like "normal", but names may not contain long parts and special characters that are sometimes used on Linux, but are not accepted by MS-DOS are rejected. (+, =, spaces, etc.)
codepage=value
Sets the codepage for converting to shortname characters on FAT and VFAT filesystems. By default, codepage 437 is used.
conv=b[inary] / conv=t[ext] / conv=a[uto]
The fat file system can perform CRLF<-->NL (MS-DOS text format to UNIX text format) conversion in the kernel. The following conversion modes are available:
binary
no translation is performed. This is the default.
text
CRLF<-->NL translation is performed on all files.
auto
CRLF<-->NL translation is performed on all files that don't have a "well-known binary" extension. The list of known extensions can be found at the beginning of fs/fat/misc.c (as of 2.0, the list is: exe, com, bin, app, sys, drv, ovl, ovr, obj, lib, dll, pif, arc, zip, lha, lzh, zoo, tar, z, arj, tz, taz, tzp, tpz, gz, tgz, deb, gif, bmp, tif, gl, jpg, pcx, tfm, vf, gf, pk, pxl, dvi).
Programs that do computed lseeks won't like in-kernel text conversion. Several people have had their data ruined by this translation. Beware!
For file systems mounted in binary mode, a conversion tool (fromdos/todos) is available.
cvf_format=module
Forces the driver to use the CVF (Compressed Volume File) module cvf_module instead of auto-detection. If the kernel supports kmod, the cvf_format=xxx option also controls on-demand CVF module loading.
cvf_option=option
Option passed to the CVF module.
debug
Turn on the debug flag. A version string and a list of file system parameters will be printed (these data are also printed if the parameters appear to be inconsistent).
fat=12 / fat=16 / fat=32
Specify a 12, 16 or 32 bit fat. This overrides the automatic FAT type detection routine. Use with caution!
iocharset=value
Character set to use for converting between 8 bit characters and 16 bit Unicode characters. The default is iso8859-1. Long filenames are stored on disk in Unicode format.
quiet
Turn on the quiet flag. Attempts to chown or chmod files do not return errors, although they fail. Use with caution!
sys_immutable, showexec, dots, nodots, dotsOK=[yes|no]
Various misguided attempts to force Unix or DOS conventions onto a FAT file system.
Zamer se hlavne na parametr iocharset, mozna i naky dalsi se budou hodit.
-
Ehm...tak nejak nechapu, co s tim mam delat... resp jak to vyuzit. Nejsem zase zadnej profik
-
Zadny uceny z nebe nespadl... ;)