This is a bash script for mounting the /dev/mdX in the recovery mode for server4you physical servers
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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