fs.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:41:52 +0200
changeset 1903 901e7394849f
parent 1870 6d3eb4fdcb47
child 1905 fba288d59662
permissions -rw-r--r--
Decrease intent to increase space usage on mobile.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1195
diff changeset
     1
.. -*- coding: utf-8; -*-
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1195
diff changeset
     2
.. include:: HEADER.rst
1195
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
==============
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
 File system.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
==============
1346
a2fbf50a43f4 Fix: Has no 'contents::' directive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
     7
.. contents::
1195
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
1870
6d3eb4fdcb47 List of supported by current Linux kernel FSes
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1493
diff changeset
     9
Supported FS.
6d3eb4fdcb47 List of supported by current Linux kernel FSes
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1493
diff changeset
    10
=============
6d3eb4fdcb47 List of supported by current Linux kernel FSes
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1493
diff changeset
    11
6d3eb4fdcb47 List of supported by current Linux kernel FSes
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1493
diff changeset
    12
List of supported by current Linux kernel FSes::
6d3eb4fdcb47 List of supported by current Linux kernel FSes
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1493
diff changeset
    13
6d3eb4fdcb47 List of supported by current Linux kernel FSes
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1493
diff changeset
    14
  $ cat /proc/filesystems
6d3eb4fdcb47 List of supported by current Linux kernel FSes
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1493
diff changeset
    15
1195
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
Make label on FAT32 volume.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
===========================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
The volume name can be up to 11 characters long::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
  $ sudo mlabel -i /dev/<device> ::my-label
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
or when create FAT32 file system::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
  $ sudo mkdosfs -n <vol-name> /dev/<device>
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
Convert file name coding.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
=========================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    31
  $ convmv --nosmart -f cp-1251 -t utf-8 -r $dir
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    32
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    33
How get file time attributes.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    34
=============================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    35
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    36
POSIX define 3 file time attributes: atime (access time, only a few OS/fs update
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    37
this parameter), ctime (attribute/inode modification time), mtime (modification
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    38
time).
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    39
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    40
To get time you can use 'ls' command but it print time in locale dependent
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    41
irregular form::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    42
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    43
  $ ls -l file.txt      # last file modification
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    44
  $ ls -lc file.txt     # last file status modification
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    45
  $ ls -lu file.txt     # last access
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    46
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    47
GNU coreutils provide more robust 'stst' utility::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    48
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    49
  $ stat -c %Y file.txt # last file modification
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    50
  $ stat -c %Z file.txt # last file status modification
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    51
  $ stat -c %X file.txt # last access
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    52
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    53
POSIX file name restriction.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    54
============================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    55
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    56
Windows file name restriction.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    57
==============================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    58
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    59
  http://msdn.microsoft.com/en-us/library/aa365247.aspx
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    60
                Naming Files, Paths, and Namespaces
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    61
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    62
How get UUID and label?
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    63
=======================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    64
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    65
Include UUID (Universally Unique Identifier) and labels::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    66
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    67
  $ ls -l /dev/disk/by-uuid/
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    68
  lrwxrwxrwx 1 root root 10 2010-11-01 23:41 46B6-1FD4 -> ../../sdb2
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    69
  lrwxrwxrwx 1 root root 10 2010-11-01 23:41 4C30299030298256 -> ../../sda1
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    70
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    71
  $ ls -l /dev/disk/by-label/
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    72
  lrwxrwxrwx 1 root root 10 2010-11-01 23:41 bin -> ../../sda3
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    73
  lrwxrwxrwx 1 root root 10 2010-11-01 23:41 inst -> ../../sda2
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    74
  lrwxrwxrwx 1 root root 10 2010-11-01 23:41 media -> ../../sdc5
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    75
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    76
  $ sudo vol_id /dev/dm-2
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    77
  ID_FS_USAGE=filesystem
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    78
  ID_FS_TYPE=ext3
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    79
  ID_FS_VERSION=1.0
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    80
  ID_FS_UUID=f7484fc9-75ec-4e46-8539-50b1e371b7ef
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    81
  ID_FS_UUID_ENC=f7484fc9-75ec-4e46-8539-50b1e371b7ef
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    82
  ID_FS_LABEL=
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    83
  ID_FS_LABEL_ENC=
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    84
  ID_FS_LABEL_SAFE=
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    85
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    86
  $ /sbin/blkid     ## from 'e2fsprogs' package
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    87
  /dev/sdc2: UUID="46B6-1FD4" TYPE="vfat"
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    88
  /dev/sdb2: TYPE="ntfs" UUID="BC48D3FD48D3B47C" LABEL="inst"
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    89
  /dev/sda5: UUID="5240AED140AEBB5D" LABEL="music" TYPE="ntfs"
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    90
  /dev/sdc1: UUID="81c4444f-0b70-429a-9d97-8c13e8651f5b" TYPE="ext3"
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    91
  /dev/sdc3: UUID="KOpHWz-clDR-2MqV-vAkE-cPvY-uZrY-kjYJIb" TYPE="lvm2pv"
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    92
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    93
  $ udevinfo --query=all --name /dev/sdb    ## from 'udev' package
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    94
  P: /block/sdb
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    95
  N: sdb
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    96
  S: disk/by-id/ata-WDC_WD1600JS-00MHB0_WD-WCANM5835587
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    97
  S: disk/by-id/scsi-SATA_WDC_WD1600JS-00_WD-WCANM5835587
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    98
  S: disk/by-path/pci-0000:00:08.0-scsi-1:0:0:0
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    99
  E: ID_VENDOR=ATA
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   100
  E: ID_MODEL=WDC_WD1600JS-00M
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   101
  E: ID_REVISION=02.0
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   102
  ...
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   103
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   104
How set UUID and label?
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   105
=======================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   106
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   107
For ext2/ext3 fs::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   108
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   109
  $ sudo tune2fs /dev/hdb1 -U `uuid`
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   110
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   111
Linux fs under Windows.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   112
=======================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   113
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   114
Ext2 IFS.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   115
---------
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   116
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   117
It provides Windows NT4.0/2000/XP/2003/Vista/2008 with full access to Linux Ext2
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   118
volumes (read access and write access). This may be useful if you have installed
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   119
both Windows and Linux as a dual boot environment on your computer.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   120
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   121
The "Ext2 Installable File System for Windows" software is freeware.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   122
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   123
After install use 'ifsdrives.cpl' control panel to modify settings.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   124
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   125
  http://www.fs-driver.org/
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   126
                home page
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   127
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   128
Ext2Fsd.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   129
--------
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   130
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   131
Ext2Fsd is an open source linux ext2/ext3 file system driver for Windows systems
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   132
(NT/2K/XP/VISTA, X86/AMD64).
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   133
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   134
  http://www.ext2fsd.com/
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   135
                Home page.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   136
  http://sourceforge.net/projects/ext2fsd/
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   137
                Sourceforge home page.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   138
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   139
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   140
rfstool.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   141
--------
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   142
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   143
Allows you to access ReiserFS partitions from a Windows 95/98/ME/NT/2000/XP
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   144
system. It also allows you to access ReiserFS partitions from Linux. It is a
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   145
complete rewrite of the ReiserFS functions needed to list directories, copy
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   146
files, and backup metadata.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   147
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   148
  http://p-nand-q.com/e/reiserfs.html
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   149
                home page
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   150
  http://freshmeat.net/projects/rfstool/
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   151
                Freshmeat home page.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   152
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   153
Summary files size.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   154
===================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   155
::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   156
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   157
  $ find . -type f -iname "*.log" -print0 | du --files0-from=- -c -m | tail -n 1 \
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   158
      | (read first rest; echo $first)
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   159
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   160
Mount NTFS in Linux.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   161
====================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   162
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   163
Mount in rw mode::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   164
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   165
  $ man 8 ntfs-3g
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   166
  $ cat /etc/fstab
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   167
  ...
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   168
  UUID=D474CB9874CB7C2C /mnt/winbin ntfs-3g rw,default_permissions,gid=1000,fmask=113,dmask=002,noatime,silent 0 0
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   169
  ...
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   170
1493
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   171
Stop fsck running every 27 boots.
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   172
=================================
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   173
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   174
Check current settings::
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   175
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   176
  $ tune2fs -l /dev/$DISK
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   177
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   178
and tune them::
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   179
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   180
  $ tune2fs -c 0 /dev/$DISK
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   181
  $ tune2fs -i 2w /dev/$DISK
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   182
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   183
Or disable checks in ``/etc/fstab`` completely (by setting last colon to ``0``
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   184
value)!