Filesystems

&& Crypto,..: check subpages

swap

create and use a swapfile

 dd if=/dev/zero of=/swapfile bs=1024 count=1000000   # = 1000mb
 mkswap /swapfile
 

edit /etc/fstab – add a swap-line for auto activation after reboot:

 /swapfile       swap    swap    defaults        0       0

set permissions:

 chown root:root /swapfile
 chmod 0600 /swapfile

turn it on:

 swapon /swapfile

and verify:

 free -m
 mount



SATA PCI-Express controller

discs over 2gb need a modern controller. use these commands to activate a disc on a PCI-express controller:

show controller details and ID:

lspci -nnk

output, e.g.: SATA controller [0106]: Marvell Technology Group Ltd. Device [1b4b:9125] (rev 11)

Associate ID with the AHCI driver:

/bin/echo 1b4b 9125 > /sys/bus/pci/drivers/ahci/new_id

now the disc should appear in

fdisk -l

source: https://en.wikipedia.org/wiki/List_of_Marvell_Technology_Group_chipsets



 
Back to top
linux/filesystems.txt · Last modified: 2013/10/27 00:09 by tkilla