This is a bash script for mounting the /dev/mdX in the recovery mode for server4you physical servers
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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