Thanks a lot. I’m going to print out these instructions and follow them step by step. There are some things I want to clarify to make sure I pull this off without any hiccups:
- Just to mention, the new command you provided:
grep -v '^\#' /etc/fstab
didn’t make any difference, it is thesame as before. So there was nothing wrong with the previous command you provided - The Fedora LiveUSB link you provided can I get fedora 27 on that. I haven’t upgraded to fedora 28 because I plan to re-install fedora.
- Your understanding sounds good. I believe those groups are called packs but I might be wrong on that. Maybe @fd0 can confirm how Restic’s deduplication actually works?
About your instructions:
-
When making the fedora LiveUSB do I select fedora workstation (the one I use) or make my own .iso file? I’m asking because both options are given in the link you sent (fedora).
-
I mentioned earlier that the reason for my back is memory issues caused by windows taking up too much space and leaving fedora with too little. Because you mentioned needing exactly the same version of fedora, I have to ask, if I delete my Linux partition (boot and swap), and use the extra space from windows to create a larger unallocated space then will these instructions still be valid? I would still install the exact version of fedora as before but this time there would be unallocated space next to fedora unlike what it is now as shown below:
df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 3.9G 0 3.9G 0% /dev tmpfs 3.9G 192M 3.7G 5% /dev/shm tmpfs 3.9G 2.0M 3.9G 1% /run tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/mapper/fedora-root 43G 32G 8.1G 80% / tmpfs 3.9G 14M 3.9G 1% /tmp /dev/sda5 976M 196M 713M 22% /boot tmpfs 789M 16K 789M 1% /run/user/42 tmpfs 789M 11M 778M 2% /run/user/1000 tmpfs 789M 0 789M 0% /run/user/0 fdisk -l Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xb72b0508 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 1026047 1024000 500M 7 HPFS/NTFS/exFAT /dev/sda2 1026048 395909025 394882978 188.3G 7 HPFS/NTFS/exFAT /dev/sda3 498311168 500113407 1802240 880M 27 Hidden NTFS WinRE /dev/sda4 395909120 498311167 102402048 48.8G 5 Extended /dev/sda5 395911168 398008319 2097152 1G 83 Linux /dev/sda6 398010368 498311167 100300800 47.8G 8e Linux LVM Partition table entries are not in disk order. Disk /dev/mapper/fedora-root: 43 GiB, 46103789568 bytes, 90046464 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/fedora-swap: 4.9 GiB, 5247074304 bytes, 10248192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
-
Is the live USB installation assuming GRUB is still installed or do I have to install it again before installing fedora from the LiveUSB? I’m not sure if the LiveUSB makes this unnecessary and if so, why?
-
I ran a script in the terminal called bootinfoscript, found here: bootinfoscript
and it confirmed that I have GRUB2 (see below) and I use bash so set up is good.Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img, but core.img can not be found at this
location.sda1: __________________________________________________________________________
File system: ntfs Boot sector type: Windows Vista/7: NTFS Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files: /bootmgr /Boot/BCD
sda2: __________________________________________________________________________
File system: ntfs Boot sector type: Windows Vista/7: NTFS Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files: /bootmgr /Windows/System32/winload.exe
sda3: __________________________________________________________________________
File system: ntfs Boot sector type: Windows Vista/7: NTFS Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files:
sda4: __________________________________________________________________________
File system: Extended Partition Boot sector type: - Boot sector info:
sda5: __________________________________________________________________________
File system: ext4 Boot sector type: - Boot sector info: Operating System: Boot files: /grub2/grub.cfg
sda6: __________________________________________________________________________
File system: LVM2_member Boot sector type: - Boot sector info:
fedora-swap’: __________________________________________________________________
File system: Boot sector type: Unknown Boot sector info: Mounting failed: mount: /tmp/BootInfo-uFhqaEk8/LVM/fedora-swap': unknown filesystem type ''.
fedora-root’: __________________________________________________________________
File system: Boot sector type: Unknown Boot sector info: Mounting failed: mount: /tmp/BootInfo-uFhqaEk8/LVM/fedora-swap': unknown filesystem type ''.
mount: /tmp/BootInfo-uFhqaEk8/LVM/fedora-root’: unknown filesystem type ‘’.
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dosPartition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 2,048 1,026,047 1,024,000 7 NTFS / exFAT / HPFS
/dev/sda2 1,026,048 395,909,025 394,882,978 7 NTFS / exFAT / HPFS
/dev/sda3 498,311,168 500,113,407 1,802,240 27 Hidden NTFS (Recovery Environment)
/dev/sda4 395,909,120 498,311,167 102,402,048 5 Extended
/dev/sda5 395,911,168 398,008,319 2,097,152 83 Linux
/dev/sda6 398,010,368 498,311,167 100,300,800 8e Linux LVM“blkid” output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/mapper/fedora-root ec219f79-0450-44e5-8b80-c58d72f39b77 ext4
/dev/mapper/fedora-swap 8be9f36d-da25-49fd-ad4d-405b863d2a8a swap
/dev/sda1 7CD2B75DD2B719FA ntfs System Reserved
/dev/sda2 1CE6DE12E6DDEC50 ntfs
/dev/sda3 4810536510535950 ntfs
/dev/sda5 aa8d191d-c06d-4d09-a37a-2843fd9bc09c ext4
/dev/sda6 tA2zmI-JNef-SD3O-Z9BC-v1Mn-JjQQ-Fq6Iig LVM2_member========================= “ls -R /dev/mapper/” output: =========================
/dev/mapper:
control
fedora-root
fedora-swap================================ Mount points: =================================
Device Mount_Point Type Options
/dev/mapper/fedora-root / ext4 (rw,relatime,seclabel,data=ordered)
/dev/sda5 /boot ext4 (rw,relatime,seclabel,data=ordered) -
If /mnt/restore is the name of the new installation to mount, in my case is this the name of the fedora version that is created in the LiveUSB?
-
Should these two commands you listed after mount be greyed out like they are in your code? I’m being careful so as not to misinterpret anything:
mount --bind /dev /mnt/restore/dev
mount --rbind /run /mnt/restore/run
-
For your last paragraph, do you mean to check if restic backed up my system properly by testing it on an external hard drive or do you mean testing the whole fedora re-installation process you outlined?
-
By the way do you have any experience with resizing windows partitions?
Thanks for the excellent breakdown. Its very coherent. The task no longer seems insurmountable.