I think it depends entirely on your use case. I've been using btrfs for about 6 years on a single disk and doesn't really worry about file system corruptions. But I don't really trust it for Precious Memories on a multi disk setup with its fancy features enabled just because I like to keep it simple when it comes to data so if something goes wrong, I only have to worry about one thing instead of three things. Plus I don't understand how COW would deal with fragmentation on HDDs if we're talking bulk storage.
This can be said about subvolumes too. But it depends on how many you're planning on having and why.
df have been updated to give relatively accurate numbers. I think that was a hold over from the early days where df gives all btrfs allocated chunks and not just the spaces in use but now it's OK.
Lastly, I'll leave with filesystems should be something that should just be there humming away as storing data reliably. People evangelize about certain features that just does not matter for your average home user. I can guarantee your system of check summing your backups against live data -key word regularly- will benefit you more than some complicated "enterprise" setup off of a YouTube video because you understand it better.
I think the common thing that's missing is what they've tried already. It would help more if they link the resources they used, specify the step where things went wrong, and what follow up troubleshooting happened.
I think this would also reduce early but ultimately incorrect replies.
I would reinstall the nouveau drivers and try again. I know someone else said to uninstall and try the fallback Intel drivers but I believe the logs show that's not working. I'm assuming you have a desktop and that's your only card in it with no GPU.
Update your crypttab and fstab. You should already have entries there for your root partition, follow the format and update them with the appropriate data drive values.
Just thought of something else too. After your cryptsetup open, do a vgscan, vgchange, and lvscan and see if the newly created encrypted device shows up.
I can be done after. As a matter of fact, I should've realized it's already encrypted and setup under debian right? If that's the case, nothing needs to be done on it, just cryptsetup open and mount it and you should be good. That's probably why you were trying to do luks open and vgchange earlier? Sorry, I was thinking about your root partition and not your data partition. Hopefully you didn't luksFormat your data drive if it's already setup.
So "format" and luksformat is totally different. "Format" (mkfs) makes a file systems on top of a device, whether that device be a disk, an encrypted disk, or a lvm volume. luksFormat makes the luks header on the disk with information like encryption method, hash method, valid passphrases, etc.
Each layer essentially maps one device unto another device for the next layer. cryptsetup maps sda2 to sda2_crypt so to lvm, sda2_crypt looks like a regular disk. lvm maps sda2_crypt into vga-root, so to mkfs, vga-root looks like a regular disk. You'd have to do each operation in order or it won't work.
If you didn't luksFormat, it should give you an error when you try to open it.
vgchange wouldn't work right after though because you just wiped the drive so there's nothing to change from. You'd have to do the pvcreate, vgcreate, and lvcreate steps to make new volumes.
Edit: I'm assuming you're starting fresh, as it will destroy existing data.
So it sounds like you ran cryptsetup luksFormat already. What happens after cryptsetup open /dev/sda2 sda2_crypt? (Substitute the appropriate configs if different than Debian setup).
For the use case you outlined above, it makes the most sense to have two volume groups. Unless I'm not understanding something, if you configured lvm on dm-crypt for your root drive, repeat the same procedure for your data drive should work.
Are you typing two passwords to unlock the two drives?
After setting up your boot and root partitions, you'd cryptsetup your second drive, run lvm on it, make the file system and make the appropriate entries on crypttab and fstab.
Problem is if you go to restore from the drive, you'd get files instead of links. Those files won't be updated when the original sources changes. I'd just tar it.
I also have btrfs on LUKS with a SSD and my kernel boot is only around 15 secs (I have BIOS boot with my /boot on an unencrypted ext4). What changed for the kernel to go from 3 mins to 1 min? It should be noticeable between the boot loader and when the disk gets decrypted. Bad initramfs and bad compression would just be two things I'd guess off the top of my head.
I usually start over but it really depend on how much stuff you have and how customized they are.
Personally, I'm pretty vanilla and minimum. I get get my browser, office, and media player working, copy over some config files, and get what I need when I need it. I like the control of getting what I need without having to think "did I actually install all of this?"
On the other hand, if you have a full DE, made a bunch of customizations, and want the stuff to just work on day one, you may want to just grab everything.
I think it depends entirely on your use case. I've been using btrfs for about 6 years on a single disk and doesn't really worry about file system corruptions. But I don't really trust it for Precious Memories on a multi disk setup with its fancy features enabled just because I like to keep it simple when it comes to data so if something goes wrong, I only have to worry about one thing instead of three things. Plus I don't understand how COW would deal with fragmentation on HDDs if we're talking bulk storage.
This can be said about subvolumes too. But it depends on how many you're planning on having and why.
df have been updated to give relatively accurate numbers. I think that was a hold over from the early days where df gives all btrfs allocated chunks and not just the spaces in use but now it's OK.
Lastly, I'll leave with filesystems should be something that should just be there humming away as storing data reliably. People evangelize about certain features that just does not matter for your average home user. I can guarantee your system of check summing your backups against live data -key word regularly- will benefit you more than some complicated "enterprise" setup off of a YouTube video because you understand it better.
I think the common thing that's missing is what they've tried already. It would help more if they link the resources they used, specify the step where things went wrong, and what follow up troubleshooting happened.
I think this would also reduce early but ultimately incorrect replies.
I would reinstall the nouveau drivers and try again. I know someone else said to uninstall and try the fallback Intel drivers but I believe the logs show that's not working. I'm assuming you have a desktop and that's your only card in it with no GPU.
Your X server is stopping for some reason. Can you upload /var/log/Xorg.0.log?
That's weird. I just tried adding the define block to two machines both command line and conf file and it "worked for me".
I think they're just double tapping. Your rules looks fine and you can also refer to the upstream examples, although they just have the input chain.
Awesome. Glad to hear it.
You're welcome. I'm just glad we didn't wipe your data drive by accident.
Should be the same time as root, but i don't know personally.
Update your crypttab and fstab. You should already have entries there for your root partition, follow the format and update them with the appropriate data drive values.
Just thought of something else too. After your cryptsetup open, do a vgscan, vgchange, and lvscan and see if the newly created encrypted device shows up.
Nah, it sounds like you already had your data drive working under Debian and luksformat will wipe your data drive.
I would completely setup your OS first and then work on the data drive in this case then. One thing at a time, less variables to deal with.
I can be done after. As a matter of fact, I should've realized it's already encrypted and setup under debian right? If that's the case, nothing needs to be done on it, just cryptsetup open and mount it and you should be good. That's probably why you were trying to do luks open and vgchange earlier? Sorry, I was thinking about your root partition and not your data partition. Hopefully you didn't luksFormat your data drive if it's already setup.
You can certainly make your OS drive first and make sure that works before working on your data drive. I would say you have to do boot as well though.
So "format" and luksformat is totally different. "Format" (mkfs) makes a file systems on top of a device, whether that device be a disk, an encrypted disk, or a lvm volume. luksFormat makes the luks header on the disk with information like encryption method, hash method, valid passphrases, etc.
Each layer essentially maps one device unto another device for the next layer. cryptsetup maps sda2 to sda2_crypt so to lvm, sda2_crypt looks like a regular disk. lvm maps sda2_crypt into vga-root, so to mkfs, vga-root looks like a regular disk. You'd have to do each operation in order or it won't work.
If you didn't luksFormat, it should give you an error when you try to open it.
vgchange wouldn't work right after though because you just wiped the drive so there's nothing to change from. You'd have to do the pvcreate, vgcreate, and lvcreate steps to make new volumes.
Edit: I'm assuming you're starting fresh, as it will destroy existing data.
So it sounds like you ran cryptsetup luksFormat already. What happens after cryptsetup open /dev/sda2 sda2_crypt? (Substitute the appropriate configs if different than Debian setup).
For the use case you outlined above, it makes the most sense to have two volume groups. Unless I'm not understanding something, if you configured lvm on dm-crypt for your root drive, repeat the same procedure for your data drive should work.
Are you typing two passwords to unlock the two drives?
Have you looked at LVM on LUKS?
After setting up your boot and root partitions, you'd cryptsetup your second drive, run lvm on it, make the file system and make the appropriate entries on crypttab and fstab.
Problem is if you go to restore from the drive, you'd get files instead of links. Those files won't be updated when the original sources changes. I'd just tar it.
I actually have it in my hooks, but I don't ever remembering it actually doing it; or if it does it, the time isn't significant.
I also have btrfs on LUKS with a SSD and my kernel boot is only around 15 secs (I have BIOS boot with my /boot on an unencrypted ext4). What changed for the kernel to go from 3 mins to 1 min? It should be noticeable between the boot loader and when the disk gets decrypted. Bad initramfs and bad compression would just be two things I'd guess off the top of my head.
I usually start over but it really depend on how much stuff you have and how customized they are.
Personally, I'm pretty vanilla and minimum. I get get my browser, office, and media player working, copy over some config files, and get what I need when I need it. I like the control of getting what I need without having to think "did I actually install all of this?"
On the other hand, if you have a full DE, made a bunch of customizations, and want the stuff to just work on day one, you may want to just grab everything.
Wouldn't pacman -Rsp be better? If foo is a dependency of both libgme and bar, my understanding is Rc would remove foo but Rs wouldn't.
It looks right. Although I haven't used GRUB that much lately.