Showing posts with label mount. Show all posts
Showing posts with label mount. Show all posts

Friday, 19 September 2014

Mount read-only a Linux ext3/ext4 partition from within Mac OS

http://diesistmein.name/?p=30

or some variation.

Might help: http://osxdaily.com/2014/03/20/mount-ext-linux-file-system-mac/

Saturday, 2 November 2013

Read ext4 on Mac


  1. install xcode
  2. install brew
  3. brew install ext4fuse
    1. follow any instructions on changing permissions
  4. ext4fuse <device> <mountpoint>

Saturday, 5 October 2013

Edit files on a remote server via your Mac using ssh, sshfs and brew


  1. install latest xcode
  2. install brew
  3. install sshfs using brew
    1. make sure to change any permissions specified
  4. mkdir mytmpdir
  5. sshfs -o uid=<your local numerical id> root@<remote server>:<remote dir> mytmpdir
    1. e.g. sshfs -o uid=501 root@10.1.0.100:images mytmpdir
  6. edit files that appear in tmpdir, and when you save them, the remote files will be updated
Unmount
  1. umount mytmpdir

Friday, 12 April 2013

Move huge directory on the root partition to a huge non-root parition


Assumption: /mnt is a huge disk partition separate from the / partition  (aka root partition)
  1. mkdir -p /mnt/home/myfatdirectory
  2. kill all processes that have open files to /home/myfatdirectory
    1. lsof /home/myfatdirectory
    2. make sure you get ZERO results, ie no processes have open files to this directory
  3. mv /home/myfatdirectory /home/myfatdirectory_old 
  4. mkdir -p /home/myfatdirectory
  5. mount --bind /mnt/home/myfatdirectory /home/myfatdirectory
  6. add to bottom of /etc/fstab, so the mount is picked up on reboot
    1. /mnt/home/myfatdirectory /home/myfatdirectory none bind 0 0
NOTES:
  1. fix perms as necessary by interleaving your own steps into the above
  2. for the paranoid: you might want to make sure fstab entries work fine on reboot


Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...