This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| sudo systemctl stop plexmediaserver | |
| sudo /usr/lib/plexmediaserver/Plex\ SQLite "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db" "UPDATE metadata_items SET added_at = strftime('%s', 'now', '-1 year') WHERE added_at > strftime('%s', 'now');" | |
| sudo systemctl start plexmediaserver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Boot from Live media | |
| Try ubuntu before installing | |
| Launch terminal | |
| sudo -s | |
| Stop dmraid | |
| dmraid -an | |
| install mdadm | |
| sudo -s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo -s | |
| sgdisk -z /dev/sda -g # Delete all partitions and create a gpt table | |
| sgdisk -z /dev/sdb -g # Delete all partitions and create a gpt table | |
| sgdisk -n 1:0:+100M -t 1:ef00 -c 1:"EFI System" /dev/sda | |
| sgdisk -n 2:0:+8G -t 2:fd00 -c 2:"Linux RAID Swap" /dev/sda | |
| sgdisk -n 3:0:0 -t 3:fd00 -c 3:"Linux RAID" /dev/sda | |
| sgdisk /dev/sda -R /dev/sdb -G | |
| mkfs.fat -F 32 /dev/sda1 |