This is a bash script for mounting the /dev/mdX in the recovery mode for server4you physical servers
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

15 lignes
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