Last active
May 5, 2018 05:30
-
-
Save smallvn94/4b56a78f25ba3b69c4df to your computer and use it in GitHub Desktop.
Install fresh fedora 20 with bcache partition for beginers
This file contains 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 into Live Fedora, and type in Terminal | |
*Working with root access: | |
$ su root | |
*Install Bcache and Gparted packages: | |
# yum install bcache-tools gparted | |
*First, Open Gparted: | |
# gparted | |
then... | |
Create "GPT Partition Table" on SSD, HDD Disks | |
Add HDD Partition /dev/sda1 (type: cleared) | |
Add SSD Partition /dev/sdb1 (type: cleared) | |
*Clean everything on Partitions with wipefs commands: | |
# wipefs -f -a /dev/sda1 | |
# wipefs -f -a /dev/sdb1 | |
*Create /dev/bcache0 by this way: | |
# make-bcache --wipe-bcache -w512 --discard --writeback -B /dev/sda1 -C /dev/sdb1 | |
# mkfs.ext4 /dev/bcache0 | |
*Start Fedora Installer with English Language: | |
then... | |
Click the "Installation Destination" button, select "bcache0" and "sda" | |
Click "Full disk summary and bootloader...", Select "Green Mark HDD" (not bcache0) | |
Click the "Done" button | |
Select "LVM" from the Partition scheme droplist | |
Select "I want to review/modify my disk partitions" before click "Continue" button | |
Let installer auto create moute points and partition by clicking "Auto ...." | |
Remove / and /home moute points with "-" button | |
After that expand "Unknown" | |
Select "bcache0" partition, in the right side type / in moute point field, check "Reformat" then click the "Update ..." button | |
Click the "Done" button | |
*Finish the install normally "but not reboot system" | |
*Use chroot command to login to installed system: | |
# chroot /mnt/sysimage | |
*Install bcache tools: | |
# yum install bcache-tools | |
*Rebuild initramfs: | |
# dracut -f | |
*Check status bcache: | |
# bcache-status | |
REBOOT YOUR SYSTEM. DONE! | |
--------------------------------------------------------- | |
More views: | |
https://gist.github.com/buckelij/8016541 | |
http://forums.fedoraforum.org/showthread.php?t=296015 | |
http://www.webupd8.org/2014/01/how-to-fix-non-bootable-ubuntu-system.html | |
# sudo mount ROOT-PARTITION /mnt | |
# for i in /sys /proc /run /dev /dev/pts; do sudo mount --bind "$i" "/mnt$i"; done | |
# sudo cp /etc/resolv.conf /mnt/etc/ | |
# sudo mount /dev/sdaX /mnt/boot ##X is boot partition | |
# sudo chroot /mnt | |
UBUNTU | |
# add-apt-repository ppa:g2p/storage | |
# apt-get update | |
# apt-get install bcache-tools | |
UBUNTU rebuild initframfs | |
# update-initramfs -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment