fs.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 10 Feb 2018 01:36:16 +0200
changeset 2229 1a0b6597e594
parent 2228 837f1337c59b
permissions -rw-r--r--
Mark block quot in HTMLe.
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; -*-
1195
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
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
 File system.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
==============
1346
a2fbf50a43f4 Fix: Has no 'contents::' directive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
     6
.. contents::
1905
fba288d59662 Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1870
diff changeset
     7
   :local:
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
2052
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    16
FS stats
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    17
========
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    18
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    19
Free space::
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    20
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    21
  $ df
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    22
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    23
Free space in MB::
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    24
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    25
  $ df -m
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    26
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    27
Free space in human readable format::
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    28
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    29
  $ df -h
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    30
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    31
Number of free nodes::
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    32
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    33
  $ df -i
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    34
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    35
FS limits
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    36
=========
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    37
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    38
``ext4`` uses 32-bit inode numbers so number of files limited to 2^32.
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    39
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    40
===== ==== ====== ======= ======= ========
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    41
   fs name  inode sub-dir    file fs total
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    42
===== ==== ====== ======= ======= ========
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    43
 ext2  255                  2 TiB   16 TiB
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    44
 ext3  255          32000   2 TiB   16 TiB
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    45
 ext4  255   2^32   64000  16 TiB   16 TiB
2053
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2052
diff changeset
    46
btrfs  255   2^64       -  16 EiB   16 EiB
2052
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    47
fat32  255 268e+6    2^16   2 GiB    8 TiB
2053
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2052
diff changeset
    48
 ntfs  255   2^32    2^32  16 TiB  256 TiB
2052
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    49
  xfs  255                100 TiB  100 TiB
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    50
 gfs2  255                100 TiB  100 TiB
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    51
===== ==== ====== ======= ======= ========
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    52
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    53
https://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    54
  FS limits.
005dc5fcaa0f FS stats. FS limits.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1947
diff changeset
    55
1195
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    56
Make label on FAT32 volume.
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
The volume name can be up to 11 characters long::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    60
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    61
  $ sudo mlabel -i /dev/<device> ::my-label
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    62
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    63
or when create FAT32 file system::
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
  $ sudo mkdosfs -n <vol-name> /dev/<device>
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
Convert file name coding.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    68
=========================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    69
::
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
  $ convmv --nosmart -f cp-1251 -t utf-8 -r $dir
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    72
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    73
How get file time attributes.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    74
=============================
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
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
    77
this parameter), ctime (attribute/inode modification time), mtime (modification
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    78
time).
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    79
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    80
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
    81
irregular form::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    82
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    83
  $ ls -l file.txt      # last file modification
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    84
  $ ls -lc file.txt     # last file status modification
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    85
  $ ls -lu file.txt     # last access
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    86
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    87
GNU coreutils provide more robust 'stst' utility::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    88
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    89
  $ stat -c %Y file.txt # last file modification
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    90
  $ stat -c %Z file.txt # last file status modification
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    91
  $ stat -c %X file.txt # last access
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
POSIX file name restriction.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    94
============================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    95
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    96
Windows file name restriction.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    97
==============================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    98
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2053
diff changeset
    99
http://msdn.microsoft.com/en-us/library/aa365247.aspx
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2053
diff changeset
   100
  Naming Files, Paths, and Namespaces
1195
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   101
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   102
How get UUID and label?
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
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   105
Include UUID (Universally Unique Identifier) and labels::
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
  $ ls -l /dev/disk/by-uuid/
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   108
  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
   109
  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
   110
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   111
  $ ls -l /dev/disk/by-label/
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   112
  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
   113
  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
   114
  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
   115
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   116
  $ sudo vol_id /dev/dm-2
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   117
  ID_FS_USAGE=filesystem
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   118
  ID_FS_TYPE=ext3
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   119
  ID_FS_VERSION=1.0
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   120
  ID_FS_UUID=f7484fc9-75ec-4e46-8539-50b1e371b7ef
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   121
  ID_FS_UUID_ENC=f7484fc9-75ec-4e46-8539-50b1e371b7ef
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   122
  ID_FS_LABEL=
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   123
  ID_FS_LABEL_ENC=
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   124
  ID_FS_LABEL_SAFE=
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   125
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   126
  $ /sbin/blkid     ## from 'e2fsprogs' package
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   127
  /dev/sdc2: UUID="46B6-1FD4" TYPE="vfat"
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   128
  /dev/sdb2: TYPE="ntfs" UUID="BC48D3FD48D3B47C" LABEL="inst"
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   129
  /dev/sda5: UUID="5240AED140AEBB5D" LABEL="music" TYPE="ntfs"
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   130
  /dev/sdc1: UUID="81c4444f-0b70-429a-9d97-8c13e8651f5b" TYPE="ext3"
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   131
  /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
   132
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   133
  $ udevinfo --query=all --name /dev/sdb    ## from 'udev' package
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   134
  P: /block/sdb
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   135
  N: sdb
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   136
  S: disk/by-id/ata-WDC_WD1600JS-00MHB0_WD-WCANM5835587
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   137
  S: disk/by-id/scsi-SATA_WDC_WD1600JS-00_WD-WCANM5835587
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   138
  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
   139
  E: ID_VENDOR=ATA
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   140
  E: ID_MODEL=WDC_WD1600JS-00M
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   141
  E: ID_REVISION=02.0
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
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   144
How set UUID and label?
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   145
=======================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   146
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   147
For ext2/ext3 fs::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   148
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   149
  $ sudo tune2fs /dev/hdb1 -U `uuid`
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   150
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   151
Linux fs under Windows.
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
1947
a27340a6c3d0 Ext2Fsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   154
Ext2Fsd.
a27340a6c3d0 Ext2Fsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   155
--------
a27340a6c3d0 Ext2Fsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   156
a27340a6c3d0 Ext2Fsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   157
Ext2Fsd is an open source linux ext3/ext4 file system driver for Windows systems
a27340a6c3d0 Ext2Fsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   158
(NT/2K/XP/Win7/Win8, X86/AMD64) and only alive project.
a27340a6c3d0 Ext2Fsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   159
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2053
diff changeset
   160
http://www.ext2fsd.com/
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2053
diff changeset
   161
  Home page.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2053
diff changeset
   162
http://sourceforge.net/projects/ext2fsd/
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2053
diff changeset
   163
  Sourceforge home page.
1947
a27340a6c3d0 Ext2Fsd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   164
1195
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   165
Ext2 IFS.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   166
---------
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
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
   169
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
   170
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
   171
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   172
The "Ext2 Installable File System for Windows" software is freeware.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   173
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   174
After install use 'ifsdrives.cpl' control panel to modify settings.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   175
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2053
diff changeset
   176
http://www.fs-driver.org/
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2053
diff changeset
   177
  home page
1195
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   178
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   179
rfstool.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   180
--------
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   181
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   182
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
   183
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
   184
complete rewrite of the ReiserFS functions needed to list directories, copy
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   185
files, and backup metadata.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   186
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2053
diff changeset
   187
http://p-nand-q.com/e/reiserfs.html
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2053
diff changeset
   188
  home page
1195
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   189
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   190
Summary files size.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   191
===================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   192
::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   193
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   194
  $ 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
   195
      | (read first rest; echo $first)
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   196
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   197
Mount NTFS in Linux.
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   198
====================
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   199
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   200
Mount in rw mode::
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   201
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   202
  $ man 8 ntfs-3g
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   203
  $ cat /etc/fstab
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   204
  ...
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   205
  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
   206
  ...
46cf3e8d7bc0 Mount NTFS in Linux.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   207
1493
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   208
Stop fsck running every 27 boots.
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   209
=================================
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   210
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   211
Check current settings::
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   212
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   213
  $ tune2fs -l /dev/$DISK
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   214
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   215
and tune them::
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   216
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   217
  $ tune2fs -c 0 /dev/$DISK
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   218
  $ tune2fs -i 2w /dev/$DISK
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   219
667fab70b4b1 Stop fsck running every 27 boots.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
   220
Or disable checks in ``/etc/fstab`` completely (by setting last colon to ``0``
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2053
diff changeset
   221
value)!