Search Debian Channel Logs

Monday, February 27, 2017

#debian channel featuring mtn, SerajewelKS, dontknow, judd, missmbob, nickgaw,

jhutchins_wk 2017-02-27 10:45:31
nickgaw: I have never heard that there is one.
jhutchins_wk 2017-02-27 10:46:07
dontknow: Do you remember where in the dialog that option occurs?
dontknow 2017-02-27 10:46:09
nickgaw, i don't know if graphical installer have that, but there is in netinstall. i think it appears if you do manual partitioning
dontknow 2017-02-27 10:46:32
jhutchins_wk, ^
nickgaw 2017-02-27 10:46:41
I was using the net installation.
dontknow 2017-02-27 10:47:38
nickgaw, you do manual partitioning?
nickgaw 2017-02-27 10:48:15
yes I used the used guided encryption to setup encrypted LVM first is that the option I should use?
jhutchins_wk 2017-02-27 10:50:32
nickgaw: That's probably the answer, it would be under manual instead of guided.
dontknow 2017-02-27 10:50:58
nickgaw, you need to choose manual partitioning. i installed jessie multiple times without erasing disk. but i don't remember where the option is
nickgaw 2017-02-27 10:51:08
Just don't encrypt the boot partition and things should work ok if I setup encrypted partitioning then?
dontknow 2017-02-27 10:51:27
right. spare 250 mb for boot
nickgaw 2017-02-27 10:51:38
yes
nickgaw 2017-02-27 10:52:24
but if I wanted the rest of the drive to be encrypted both / and /home is this possible or is it possible if I already have this setup to convert to disk encryption?
mtn 2017-02-27 10:53:03
what is the bot query to check to see if it is possible to build a backport of a package?
missmbob 2017-02-27 10:53:08
there's no converting
missmbob 2017-02-27 10:53:17
mtn: judd checkbackport
mtn 2017-02-27 10:53:23
missmbob, ty
dontknow 2017-02-27 10:56:00
nickgaw, i don't get what you are saying
dontknow 2017-02-27 10:56:40
chose encrypt partition and set up for lvm
dontknow 2017-02-27 10:56:53
set up lvm
SerajewelKS 2017-02-27 11:07:53
honestly i don't use guided mode anymore because i know how it sets things up, and i like to do little tweaks here and there to the process
SerajewelKS 2017-02-27 11:08:06
i enjoy setting up dm-crypt and lvm myself
nickgaw 2017-02-27 11:09:09
If I have my system setup just want to add encryption to my system is this possible where I will have to enter in a pass phrase to boot up?
SerajewelKS 2017-02-27 11:09:30
well, encrypting an existing volume isn't super easy
nickgaw 2017-02-27 11:09:46
but can it be done?
SerajewelKS 2017-02-27 11:09:57
yes, provided you have sufficient other storage to hold the contents or an image
missmbob 2017-02-27 11:10:13
iow, no. you backup and restore later
SerajewelKS 2017-02-27 11:10:17
basically you have to make a copy of the volume (or its contents, or just the important contents), wipe out the original, create an encrypted volume in its place, copy your stuff back
nickgaw 2017-02-27 11:10:20
so not with my data in place?
missmbob 2017-02-27 11:10:32
no converting in place like i already said
SerajewelKS 2017-02-27 11:10:36
no, and i wouldn't want to do that anyway because a power interruption could corrupt the volume
SerajewelKS 2017-02-27 11:10:47
you would want a backup *anyway*
nickgaw 2017-02-27 11:10:56
true
dontknow 2017-02-27 11:11:18
nickgaw, if you have data in your partition it will be lost
SerajewelKS 2017-02-27 11:11:21
at which point, there really isn't any real reason to convert in-place vs nuking it and copying your stuff back, it's basically the same amount of work
nickgaw 2017-02-27 11:11:39
nothing important is on the system just want to save time in the encryption process do I need to setup LVM in order to do the encryption if I reinstall stable?
SerajewelKS 2017-02-27 11:11:58
you don't need LVM to do encryption but it doesn't hurt either
SerajewelKS 2017-02-27 11:12:23
i use it just because it makes future expansion a hell of a lot easier if it's already there
nickgaw 2017-02-27 11:12:39
If I wish to reinstall stable and do this disk encryption with manual partitioning of the entire system what options should I pick for the quickest process?
SerajewelKS 2017-02-27 11:13:02
LVM lets you do some interesting things like safely migrate volumes between physical disks *while the volume in is use*
SerajewelKS 2017-02-27 11:13:26
is in*
SerajewelKS 2017-02-27 11:14:16
if you don't really know what you are doing, i honestly would stick with guided setup and just let the long erasure process happen overnight
SerajewelKS 2017-02-27 11:14:32
it's less likely you will have to do it over again because of a fuckup
nickgaw 2017-02-27 11:14:39
Before I do the reinstallation is there a tool I can use to do a backup of the entire system either a file full backup or an image backup tool both partitions are ext4?
SerajewelKS 2017-02-27 11:14:56
well, you can use tar or rsync
SerajewelKS 2017-02-27 11:15:26
i'd do backups from the rescue mode of the installer so that you aren't backing up a running system, which can cause data integrity issues depending on what data is important to you
SerajewelKS 2017-02-27 11:15:48
e.g. backing up a mysql or postgresql datadir while the DB server is running is almost guaranteed to corrupt your backup
nickgaw 2017-02-27 11:16:27
what tools should I use in the rescue mode to do the backup as I don't think ntfs-3g is supported in the installation system?
SerajewelKS 2017-02-27 11:16:42
oh are you installing over windows?
nickgaw 2017-02-27 11:17:11
no my external drives are all formatted as ntfs this laptop just has debian stable on it.
SerajewelKS 2017-02-27 11:17:42
i see, so you are wanting to backup your debian stable system to ntfs external volumes?
nickgaw 2017-02-27 11:18:25
yes to some type of archive or image file format.
nickgaw 2017-02-27 11:18:48
Would buying another external drive and formatting it as ext4 be best?
SerajewelKS 2017-02-27 11:18:49
if so, the gparted live CD http://gparted.org/download.php is something i've found success with. it's not officially supported here, technically, but i'd wager enough of us use it to help out with backing up a debian system.
SerajewelKS 2017-02-27 11:18:59
that live environment does have ntfs-3g
SerajewelKS 2017-02-27 11:19:40
nickgaw: you can but you shouldn't have to if you have enough free space on the external volume
SerajewelKS 2017-02-27 11:20:14
you can either image the partitions directly or you can mount them read-only and use 'tar --one-file-system -jcf destination source' to create a bzip2-compressed backup
nickgaw 2017-02-27 11:20:41
is the gparted disc console or X based?
SerajewelKS 2017-02-27 11:20:49
you pick when you run it
nickgaw 2017-02-27 11:21:11
I will have to look at that disc.
SerajewelKS 2017-02-27 11:21:15
usually if i'm not going to actually run the gparted tool i will stick with console
SerajewelKS 2017-02-27 11:21:35
or if X doesn't want to start on the hardware
jonkristian 2017-02-27 11:21:39
JBD2: Detected IO errors while flushing file data on vda1-8 <- Is this something that can be repaired? It's a kvm lvm vm which got corrupted by os-prober during host updates.
SerajewelKS 2017-02-27 11:22:08
nickgaw: what i usually do for backups, i have a debian box acting as a file server and i'll actually pipe the tar output to ssh or nc, and take backups over the network directly to the file server
SerajewelKS 2017-02-27 11:22:27
that way i'm not juggling external drives
SerajewelKS 2017-02-27 11:22:51
of course it sounds like you don't really have any other systems to send the backup to. in which case, using ntfs-3g should be perfectly fine.
SerajewelKS 2017-02-27 11:23:03
i wouldn't expect it to be terribly fast, backing up to an external volume, but it should work
SerajewelKS 2017-02-27 11:23:33
jonkristian: what is an "lvm vm?"
dontknow 2017-02-27 11:23:42
nickgaw, here you can choose "erase data: no"
dontknow 2017-02-27 11:23:45
http://www.tecmint.com/wp-content/uploads/2015/06/Encrypted-Partition-Summary-600x450.png
nickgaw 2017-02-27 11:23:46
Do you know if the gparted disc has either speakup or the orca screen reader as I am totally blind so use the talking installation method that debian provides? If it does not is there a contact form I could use to contact the developers on putting accessibility into that disc? I have a windows 10 pro 64 bit laptop as well could I not backup the disk image to it?
SerajewelKS 2017-02-27 11:24:26
nickgaw: honestly i have no idea, that's an interesting query
SerajewelKS 2017-02-27 11:24:52
i don't have a disc around to check on either
nickgaw 2017-02-27 11:25:11
Ubuntu has orca on it do any tools exist on that disc I could use?
jonkristian 2017-02-27 11:25:18
SerajewelKS, I meant LV parition, in reference to this: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788062
judd 2017-02-27 11:25:19
Bug http://bugs.debian.org/788062 in os-prober (closed, patch): «os-prober corrupts LVs/partitions while being mounted inside a VM»; severity: critical; opened: 2015-06-08; last modified: 2017-02-06.
SerajewelKS 2017-02-27 11:26:30
nickgaw: possibly, but i try to stay away from ubuntu as a general rule :)
jonkristian 2017-02-27 11:26:39
Just trying to find out if there's any way to fix these IO errors or if I have to just bite the bullet and set up a new vm and copy everything over. Lesson learned, I don't have a backup vm before it happened :/
nickgaw 2017-02-27 11:26:59
why do you not like Ubuntu?
SerajewelKS 2017-02-27 11:27:14
jonkristian: oh, interesting. TBH i'm not sure, i was just asking because i didn't understand that term.
SerajewelKS 2017-02-27 11:27:29
nickgaw: i could write a book-length reply, but it's not really on-topic here
SerajewelKS 2017-02-27 11:28:07
nickgaw: side note, debian's live-tools provides a way for you to create totally custom live CDs fairly easily. i have done so before for various tasks.
SerajewelKS 2017-02-27 11:28:27
nickgaw: but this might be using a shotgun to kill a fly
SerajewelKS 2017-02-27 11:29:07
nickgaw: i will be back in a few (usually i don't say that when stepping away but we've been having a pretty in-depth conversation)