This is a bash script for mounting the /dev/mdX in the recovery mode for server4you physical servers
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

15 lines
524B

  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