Linux: Remount device with different options
β’ 124 words β’ 1 min β’ updated
β οΈ This post is over one year old. It may no longer be up to date or relevant. Opinions may have changed.
A few recipes for remounting linux devices / disks. It mostly boils down to running mount -o remount as root.
Remount as read-write #
If /dev/sdb1 is mounted on /mnt/data as read-only (ro), it could be remounted as rw:
shell
% mount -o remount,rw /mnt/dataor
shell
% mount -o remount,rw /dev/sdb1Increase RAM disk size #
/dev/shm (shared memory) is typically allocated half of the available amount of RAM in the system. For example, in my 8GB Arch Linux system:
shell
$ df -h | grep /dev/shm
tmpfs 3.9G 127M 3.8G 4% /dev/shmTo increase the amount of space allocated to it:
shell
% mount -o remount,size=8G /dev/shmThe result:
shell
$ df -h | grep /dev/shm
tmpfs 8.0G 72M 8.0G 1% /dev/shm