|
1234567891011121314 |
- # 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
|