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.
|
- # This is a script for mounting the /dev/mdX in recovery mode for server4you
- #
- # Call with "wget -O - https://raw.githubusercontent.com/theodotos/arena/master/s4y_chroot.sh | bash"
-
- /sbin/mdadm --assemble --run /dev/md/0
- /sbin/mdadm --assemble --run /dev/md/1
- /sbin/mdadm --assemble --run /dev/md/2
- /bin/mount /dev/md2 /mnt
- /bin/mount /dev/md0 /mnt/boot
- /bin/mount -o bind /dev /mnt/dev
- /bin/mount -o bind /dev/pts /mnt/dev/pts
- /bin/mount -t proc /proc /mnt/proc
- /bin/mount -t sysfs /sys /mnt/sys
- exec /usr/sbin/chroot /mnt
|