This is a bash script for mounting the /dev/mdX in the recovery mode for server4you physical servers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

s4y_chroot.sh 524B

5 years ago
1234567891011121314
  1. # This is a script for mounting the /dev/mdX in recovery mode for server4you
  2. #
  3. # Call with "wget -O - https://raw.githubusercontent.com/theodotos/arena/master/s4y_chroot.sh | bash"
  4. /sbin/mdadm --assemble --run /dev/md/0
  5. /sbin/mdadm --assemble --run /dev/md/1
  6. /sbin/mdadm --assemble --run /dev/md/2
  7. /bin/mount /dev/md2 /mnt
  8. /bin/mount /dev/md0 /mnt/boot
  9. /bin/mount -o bind /dev /mnt/dev
  10. /bin/mount -o bind /dev/pts /mnt/dev/pts
  11. /bin/mount -t proc /proc /mnt/proc
  12. /bin/mount -t sysfs /sys /mnt/sys
  13. exec /usr/sbin/chroot /mnt