Remount filesystem read-write

Remount the root filesystem as read-write (e.g. after rescue boot)

mount -o remount,rw /

tool
linux133 commands
tags
linuxfilesystem

More linux commands

  • fsck -n /dev/sdb1

    Dry-run fsck check (no changes); unmount first for a live fix

  • mkfs.ext4 -L datalabel /dev/sdb1

    Format partition as ext4 with a label

  • resize2fs /dev/sdb1

    Grow ext4 to fill the partition (after partition resize)

  • tune2fs -l /dev/sda1 | grep -E 'Block (count|size)|Mount count|Last mount'

    Show ext2/3/4 metadata: block size, mount count, last mount time

  • du -h --max-depth=2 /var | sort -rh | head -20

    Disk usage of /var up to 2 directory levels deep

all 133 linux commands