Hoe formatteer ik mijn 10002000 GB backup disk?
mkfs.ext4 -m 1 /dev/device
mke2fs -t ext4 -c -c -L backupdisk -m 1 /dev/device
tune2fs -O extents,uninit_bg,dir_index /dev/device
fsck -pf /dev/device
mke2fs – create an ext2/ext3/ext4 filesystem
mke2fs -c -c -j -L backupdisk -m 1 /dev/sdd1
-c Check the device for bad blocks before creating the file system.
If this option is specified twice, then a slower, read-write
test is used instead of a fast read-only test.
-j Create the filesystem with an ext3 journal. If the -J option is
not specified, the default journal parameters will be used to
create an appropriately sized journal (given the size of the
filesystem) stored within the filesystem. Note that you must be
using a kernel which has ext3 support in order to actually make
use of the journal.
Set the volume label for the filesystem to new-volume-label.
The maximum length of the volume label is 16 bytes.
Specify the percentage of the filesystem blocks reserved for the
super-user. This avoids fragmentation, and allows root-owned
daemons, such as syslogd(8), to continue to function correctly
after non-privileged processes are prevented from writing to the
filesystem. The default percentage is 5%.
Specify the filesystem type (i.e., ext2, ext3, ext4, etc.) that is to be cre‐
ated. If this option is not specified, mke2fs will pick a default either via
how the command was run (for example, using a name of the form mkfs.ext2,
mkfs.ext3, etc.) or via a default as defined by the /etc/mke2fs.conf(5) file.
puk9 willem # mke2fs -c -c -j -m 1 /dev/sdd1
mke2fs 1.40.8 (13-Mar-2008)
Warning: 256-byte inodes not usable on older systems
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
61054976 inodes, 244190000 blocks
2441900 blocks (1.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
7453 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
tune2fs – adjust tunable filesystem parameters on ext2/ext3 filesystems
This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
hdparm – get/set SATA/ATA device parameters
hdparm -q -S 241 /dev/sdb
-S Set the standby (spindown) timeout for the drive. This value is
used by the drive to determine how long to wait (with no disk
activity) before turning off the spindle motor to save power.
Under such circumstances, the drive may take as long as 30 sec‐
onds to respond to a subsequent disk access, though most drives
are much quicker. The encoding of the timeout value is somewhat
peculiar. A value of zero means “timeouts are disabled”: the
device will not automatically enter standby mode. Values from 1
to 240 specify multiples of 5 seconds, yielding timeouts from 5
seconds to 20 minutes. Values from 241 to 251 specify from 1 to
11 units of 30 minutes, yielding timeouts from 30 minutes to 5.5
hours. A value of 252 signifies a timeout of 21 minutes. A
value of 253 sets a vendor-defined timeout period between 8 and
12 hours, and the value 254 is reserved. 255 is interpreted as
21 minutes plus 15 seconds. Note that some older drives may
have very different interpretations of these values.