[00:01] <jonser_> Saludos
[00:02] <jonser_> Podría ser este un espacio para que alguien me ayudara con un par de problemas que tengo?
 #lubuntu-es es the BEST place for that, this IS the english support
[19:04] <bob5> Hi, I formatted an USB pendrive to EXT4. However when I mount it from the file explorer, I can't write to it, unlike with every other drive. Can someone explain to me the 50 different commands on a terminal to do this or should I just plug my brain into the matrix so I can read my email because of retarded UX design? jk, is there an application I
[19:04] <bob5> can install to do this for me?
[19:05] <arraybolt3> Hey bob5. I know the answer to this one!
[19:05] <arraybolt3> Here's the commands to fix it:
[19:05] <arraybolt3> lsblk
[19:05] <arraybolt3> Find your USB drive in the output (you'll see something like "sdb" that's the same size as your flash drive).
[19:05] <genii> All base storage devices are owned by root by default
[19:06] <arraybolt3> Yes.
[19:06] <arraybolt3> Once you find your flash drive, you'll see under it something like "sdb1" that's also the same size as your flash drive. This is the EXT4 partition you just made.
[19:06] <arraybolt3> Assuming that your EXT4 partition is "sdb1", here's the commands to run:
[19:07] <arraybolt3> sudo mount /dev/sdb1 /mnt
[19:07] <arraybolt3> sudo chmod 0777 /mnt
[19:07] <arraybolt3> sudo umount /mnt
[19:07] <arraybolt3> Your flash drive should work properly after typing this command sequence.
[19:08] <genii> Alternately, just a create a folder on the drive as root, then recursively chown it to the username you wish to writs to it as
[19:09] <bob5> Thank you arraybolt3 I am able to write to it now. The final command said no such command found. but I was in root from a previous attempt
[19:10] <bob5> Will I have to do this every time I plug in the drive?
[19:10] <arraybolt3> Nope. The changes made by this command sequence are permanent, and the drive should work on any Linux computer you plug it into. @bob5
[19:11] <arraybolt3> It is odd that the last command said that it wasn't found. Are you sure you typed "umount" rather than "unmount"?
[19:11] <arraybolt3> Unmount isn't a command, but umount is.
[19:13] <bob5> Oh I typed unmount. I typed umount now in case it was needed to make it permanent
[19:13] <arraybolt3> Good. That last command just makes sure that no data written to the drive gets corrupted when you unplug it.
[19:17] <bob5> I once pressed the power button and could not boot back into any OS. Long story short, I deleted everything but the lubuntu partition. I tried recreating an EFI with Grub2 to boot into lubuntu with boot-repair but it still says no OS found.
[19:17] <bob5> I tried a few variations, ext4 EFI and Fat 32 EFI. Still couldn't make it work
[19:18] <bob5> When I installed a new lubuntu partition from the lubuntu on my USB, I still couldn't boot into that either after it was installed.
[19:20] <bob5> Any idea to save it or should I just give up and reinstall
[19:22] <arraybolt3> Sorry, lost connection. Can you resay anything that you said after it said I left? @bob5
[19:22] <bob5> I can see the timestamp and I said nothing after
[19:23] <arraybolt3> Oh good.
[19:24] <bob5> Also I found the header of the partition table was corrupt and I restored it from backup. Something bad must of happened. I can backup my files but there's some appdata I'd like to save which I will have to forfeit.
[19:24] <arraybolt3> OK, so this is fixable, but it's complicated.
[19:24] <arraybolt3> First, boot into a live USB so you can access the rest of the system.
[19:25] <arraybolt3> (Don't worry, we're not going to reinstall.)
[19:25] <bob5> Can I safely resize the partition to only the used space without overwriting used space?
[19:25] <bob5> I am booted into lubuntu from the pendrive
 ideally the system won't let you resize smaller than used space.
[19:25] <bob5> and I can access my files
[19:25] <arraybolt3> Resizing partitions is always dangerous, even when it looks safe. If you're going to do that, back up.
 ^^ that
[19:25] <arraybolt3> I've accidentally nuked drives doing resizing.
[19:26] <arraybolt3> If you're trying to resize so that you can make a disk image that's small, there's a good way to do that without resizing.
[19:26] <bob5> the partition is 121GB. It's too impractical to resize. I wanted to shrink it to its used space fo 20GB and put it on my other 20GB+ pendrive
[19:26] <arraybolt3> OK, so rather than resizing, here's what to do:
[19:26] <arraybolt3> Pop open a terminal, and type "sudo su -".
[19:27] <bob5> done
[19:27] <arraybolt3> OK, so now do "cd /media/lubuntu".
[19:27] <bob5> done
[19:28] <arraybolt3> Once that's done, type "ls" to see what's in there. You should see one entry with a very long, odd-looking name.
[19:28] <bob5> Yes I see
[19:28] <arraybolt3> Double-click that entry, and press Ctrl+Shift+C. Then type "cd " (the space is important), then Ctrl+Shift+V.
[19:28] <bob5> odd looking name is preceded by the label I gave my intended backup drive
[19:29] <arraybolt3> That's fine. Use the odd-looking name, not the label. The odd-looking name is your main drive.
[19:29] <bob5> ok done
[19:29] <arraybolt3> Now type "ls". Do you see folders in there with names like "bin", "usr", "home", "dev", stuff like that?
[19:30] <bob5> Yes. Btw, I could navigate the drive using the 'file explorer'
[19:30] <arraybolt3> Yeah. There's a reason we're doing it this way, though.
[19:30] <bob5> I'm following you
[19:30] <arraybolt3> So, now type "ls ./blank.img". It should tell you that it could not find the file.
[19:31] <bob5> I confirm
[19:31] <arraybolt3> Good. Now, type this command: "dd if=/dev/zero of=./blank.img bs=4M status=progress". This command will take VERY LONG to execute.
[19:33] <arraybolt3> The "dd" command will make it so that you can back up your whole drive to your 20 GB flash drive without having to resize anything.
[19:36] <bob5> I'm doing another backup of my home folder first. In the meantime, is it possible some files are hidden? for example the "public" folder is empty and the snap folder won't let me access it. I don't remember using these folders either.
[19:36] <arraybolt3> You don't need to worry about that. We're going to do a full disk image backup. If you rea
[19:37] <arraybolt3> really want to peak inside those, you can do that, but it's not needed - any data in there will be saved doing this.
[19:38] <bob5> Can the pendrive I am backing up to keep other existing files on it?
[19:38] <arraybolt3> Yes, but if there's too much data on the pendrive, it might not let the disk image quite fit. Your pendrive is formatted to EXT4, right?
[19:38] <bob5> Yes. Will it warn me if there's not enough free space?
[19:39] <arraybolt3> Unfortunately no, but if it fails, you won't lose any data.
[19:39] <bob5> Will it tell me that it failed if it fails?
[19:39] <arraybolt3> Yes.
[19:41] <bob5> Is it possible to copy files which say permission denied?
[19:42] <bob5> When I copy and I get an error I get two options Ok and ignore. They seem identical, is there a difference?
[19:42] <arraybolt3> Yes. The full disk image backup copies EVERYTHING.
[19:42] <arraybolt3> Hold on, let me find out...
[19:43] <arraybolt3> If you're trying to copy files individually, though, you will need to do it a bit differently to deal with "permission denied".
[19:43] <bob5> I think I found out. After spamming ok at every prompt, I used ignore and now it doesn't prompt me anymore so I think it just ignores the current and all subsequent instances of not having permission.
[19:44] <arraybolt3> You're right. Just verified.
[19:44] <bob5> I wish I had a log of what could not be copied. At least I can copy my html files now without file name problems I had with fat32.
[19:45] <arraybolt3> Actually, if you're trying to do a file copy backup and want to get stuff with permission denied errors, stop the current copy, click on "Tools", and click "Open Tab in Admin Mode".
[19:47] <arraybolt3> Once you do that, you can copy your home folder, click your pendrive, do "Open Tab in Admin Mode" again, then paste, and you should be good to go!
[19:48] <arraybolt3> I just discovered that "Open Tab in Admin Mode" is only a feature of newer version of Lubuntu, so if you're using 20.04, don't do that.
[19:50] <bob5> I used open as root as I did not see admin mode. Do I have to overwrite everything or if I apply ignore to all existing files, will it still add files which are missing from folders which started copying?
[19:50] <arraybolt3> Let me verify so that I don't give you bad info...
[19:51] <bob5> I can always compare the backup size as atleast 75
[19:51] <bob5> nvm
[19:52] <bob5> Since it might copy folders sequentially it's possible one folder would miss just one file and I won't notice it
[19:52] <arraybolt3> It looks like it works fine if you tell it to overwrite the folder and then ignore all existing files.
[19:52] <arraybolt3> It even gets files that are hiding in other folders.
[19:54] <bob5> 1 folder was incomplete by 75% so it will be easy to verify
[19:55] <bob5> The option to overwrite the folder but ignore existing files doesn't make sense. I chose ignore for all.
[19:55] <arraybolt3> 👍
[19:55] <arraybolt3> Your way works too.
[19:56] <arraybolt3> Oh, and copying the whole home folder also copies all hidden files.
[19:57] <bob5> I chose to only copy selected folders within home/user/
[19:57] <arraybolt3> Oh, that's won't grab the hidden files. You might lose some program configuration doing that, unless you specifically cho
[19:57] <arraybolt3> chose to view hidden files.
[19:58] <bob5> I just chose to view hidden files thanks I wasn't aware of it
[19:59] <arraybolt3> Nice.
[19:59] <bob5> There was one app which I want to save the appdata. It's an appimage and I don't know where it stores the userdata
[19:59] <arraybolt3> It's pretty unlikely that it's storing it anywhere outside of your home folder, since most of the folders outside there can't be written to by a normal user,
[20:01] <bob5> This is paradise compared to struggling on my own O:3
[20:01] <arraybolt3> Good. I like being helpful.
[20:04] <bob5> The transfers will take probably 2 hours before I do the backup you suggested
[20:04] <bob5> I'm going to try copying the hidden folders to my current instance and see if when I run the appimage it loads my accounts
[20:05] <arraybolt3> That's fine. I should still be here.
[20:06] <bob5> oh. Is there a risk my session will malfunction if I overwrite the hidden files in /home/user/ ?
[20:07] <arraybolt3> How are you overwriting them?
[20:07] <arraybolt3> With backup copies?
[20:08] <arraybolt3> If you're copying in a backup, you should be AOK. If not, then yeah, you could break stuff.
[20:20] <arraybolt3> I just did some more testing. So long as you're OK with your new system being configured very similarly to your old system, it should be safe.
[20:27] <bob5> It's not a backup so I decided not to overwrite the temp files in my current session but I did decide to copy while not overwriting (ignoring)
[20:27] <arraybolt3> 👍
[20:28] <arraybolt3> Really, with what you're trying to acheive, I don't think you'll need to do the fancy "full disk-image backup" at all. I think just copying all of /home/user (along with all hidden files) and then plopping that on the new machine ought to do it.
[20:29] <bob5> oh oh I run out of space
[20:29] <bob5> Nothing appears to be persistent on this usb drive. How do I check if I have persistent storage enabled?
[20:30] <bob5> Also if I cancel the transfer now, will it revert all copying it did?
[20:30] <bob5> I mean I ran out of space for copying to my session's home folder
[20:30] <arraybolt3> Uh, ok hold on...
[20:30] <arraybolt3> Is your session the live USB session?
[20:30] <bob5> Yes
[20:30] <arraybolt3> Oh, that won't work.
[20:31] <arraybolt3> Uh, trying to think of a solution here...
[20:32] <arraybolt3> You've not made any permanent changes to your installed system, right?
[20:33] <arraybolt3> Only just to the backup drive?
[20:34] <bob5> Yes
[20:34] <bob5> well not since we spoke
[20:35] <arraybolt3> OK, so here's what I'd do. Cancel the transfer that you're doing to your session, then use the file manager root instance trick to back up your home folder (including all hidden files) to your backup drive.
[20:36] <bob5> I canceled the transfer to my session. I am currently copying non hidden folders to the backup drive
[20:36] <bob5> I will then also add the hidden folders I see
[20:36] <arraybolt3> OK.
[20:38] <bob5> I also have another fat32 drive with an older backup. When the current transfer is over I plan to format drive 3 to ext4 and backup to it too. All this because I don't want to overwrite my external backup without having an external backup. Irrational.
[20:38] <bob5> At least not in the current situation
[20:38] <bob5> though given how terribly slow it is. I don't mind waiting.
[20:40] <arraybolt3> Not irrational. I've lost data before. It's not fun.
[20:41] <arraybolt3> Can you tell me what the name of the appimage you're using is? That will help us find its config data, and we can test to make sure everything's going to work before doing anything permanent to your system.
[20:45] <bob5> I was going to tell you but for the fact that I don't know how to find the download directory
[20:45] <bob5> https://wiki.bitmessage.org/releases
[20:45] <arraybolt3> OK.
[20:45] <arraybolt3> I'm juggling stuff here, so it'll be a bit before my next reply.
[20:51] <arraybolt3> Found it! OK, so, can you use your file manager to navigate to your system's main drive?
[20:52] <bob5> Yes
[20:53] <bob5> Also how did you find the appimage on the website?
[20:54] <arraybolt3> It's at appimage.bitmessage.org.
[20:54] <arraybolt3> I think I just Googled it.
[20:55] <arraybolt3> The link was hiding in a GitHub page.
[20:56] <arraybolt3> It was the official GitHub page for BitMessage, it had a link to appimage.bitmessage.org for Linux.
[20:56] <bob5> here brave search failed me but google found it
[20:57] <bob5> also one of the releases was a 0 byte file
[20:57] <bob5> which doesn't work
[20:57] <bob5> obviously
[20:57] <arraybolt3> :/
[20:59] <arraybolt3> OK, so, on your system's main drive, can you tell me if there's anything bitmessage related in home/user/.config?
[21:00] <bob5> Yes! that appears to be it!
[21:01] <bob5> Is appdata usually all in .config?
[21:02] <arraybolt3> Well, it can be stored in several hidden folders in your home folder, but .config is the most likely spot to find configuration stuff.
[21:02] <arraybolt3> Try copying just the bitmessage related stuff out of that folder and onto your live session into the appropriate folder.
[21:02] <bob5> unfortunately I cannot test it now as my session is out of space
[21:03] <bob5> I wish I could undo the copy I did
[21:03] <arraybolt3> Crud. Can you open up the .config file on your live session and tell me what's in there?
[21:03] <bob5> It has the bitmessage folder but that's because I ran the image earlier
[21:04] <arraybolt3> Delete the bitmessage folder **in the live session** (not the one on your machine!)
[21:04] <arraybolt3> Then copy the bitmessage folder from your machine to the live session.
[21:04] <bob5> the hdd copy is bigger than the live session copy. Thus I believe I would need to find something else to delete first
[21:05] <bob5> The backup is 50% transfered
[21:05] <arraybolt3> OK, well, what's in the .cache folder of the live session?
[21:05] <bob5> There's a ton of stuff including gimp and bravesoftware. I can safely delete those
[21:05] <arraybolt3> All we need to do is free enough space in the live session to allow you to copy the bitmessage folder, and any changes made to a live session are temporary anyway, so it's unlikely we'll break anything.
[21:06] <arraybolt3> Yeah, delete those in the live session.
[21:06] <bob5> brave had all my profiles there so deleted 1.1GB
[21:06] <arraybolt3> Then try copying the bitmessage folder from your machine to the live session.
[21:06] <arraybolt3> That ought to do it!
[21:06] <bob5> I will tell you the results
[21:11] <bob5> I have to be super careful not to confuse the location of the folders X)
[21:15] <arraybolt3> True.
[21:15] <bob5> Still told me not enough space. The trash bin doesn't have the recently deleted folders.
[21:15] <arraybolt3> Are you sure you deleted the brave folder out of the live session, not the main machine?
[21:17] <arraybolt3> If you really did remove the folder out of the live session, then I guess the bitmessage folder must be HUGE.
[21:17] <bob5> No it can't be
[21:17] <bob5> oh it's 0.7GB
[21:18] <bob5> That's incredible for just text files.
[21:18] <arraybolt3> Ah, OK. Well, can you clear anything else out of the .cache folder **on the live session**?
[21:19] <bob5> Well I have news. the transfer to the backup finished (non hidden only)
[21:19] <bob5> So I could just restart my session to clear it out
[21:19] <arraybolt3> That's a very good idea.
[21:22] <bob5> and I confirm the 75% incomplete folder is now complete with the exact number of bytes
[21:23] <bob5> So choosing ignore when prompting to copy folders of the same name does check for missing contents. I guess it's safe as long as cancelling a transfer doesn't leave an unfinished file.
[21:24] <arraybolt3> Nice. I doubt that cancelling a transfer would leave an unfinished file, but I can check to make sure.
[21:25] <bob5> Is it normal lubuntu always performs a disk check on startup?
[21:25] <arraybolt3> Yes, it is normal.
[21:26] <arraybolt3> However, canceling a transfer **does** leave a partial file on disk...
[21:26] <arraybolt3> And using the ignore option leaves the wonky file.
[21:30] <arraybolt3> So it is possible that there might be one bad file in the folder.
[21:31] <arraybolt3> @bob3 you're the person who was bob5 just a bit ago, right?
[21:34] <bob3> Yes
[21:34] <bob3> I started backing up the hidden folders
[21:35] <bob3> I also clicked to run bitmessage but nothing happened yet
[21:35] <bob3> working on it
[21:35] <arraybolt3> OK. You already copied the bitmessage folder from your main machine to the live session, right?
[21:35] <bob3> Yes. I'm trying to run the appimage from the hdd
[21:36] <bob3> I don't remember if I copied it last time
[21:36] <bob3> the thumbdrive is really fast already done. so weird
[21:36] <bob3> nvm it's not
[21:39] <arraybolt3> OK, so, I discovered that cancelling a transfer **does** risk leaving a partial file on disk. I also discovered how to find and fix that file automatically without having to recopy everything.
[21:42] <bob3> Is it just by checking where it stopped and compare file sizes?
[21:42] <bob3> I conclude so far that it writes in sequentially in alphanumerical order.
[21:43] <arraybolt3> It's a command that compares the file sizes of everything in the source and the backup, and when it finds a file in the backup that's smaller than the source, it overwrites the backup with the source file.
[21:43] <arraybolt3> I think it might also copy your hidden files at the same time.
[21:44] <arraybolt3> Yep, it copies hidden files too.
[21:44] <arraybolt3> Whenever you've verified whether bitmessage is working or not, let me know, and don't start copying the hidden files into your backup yet.
[21:45] <bob3> I'm letting the hidden files copy while I'm working on bitmessage
[21:45] <arraybolt3> oh OK.
[21:45] <arraybolt3> That's fine, 
[21:45] <arraybolt3> don't cancel anything.
[21:45] <bob3> what's the shortcut for rename?
[21:46] <arraybolt3> I don't think Lubuntu has one. I think you have to right-click the file, then click Rename.
[21:46] <bob3> Says failed to execute child process xterm no such file or directory
[21:47] <arraybolt3> Eh? Is this BitMessage saying this?
[21:47] <bob3> Also does this when I change the pybitmessage folder name
[21:47] <bob3> yes
[21:47] <arraybolt3> Hmm. I just opened bitmessage a bit ago and it didn't do that to me. Can you download the newest release from the bitmessage appimage place?
[21:48] <bob3> oh it only does that when "trust executable" is unchecked. but when it's checked nothing happens
[21:48] <arraybolt3> Give it a bit, it might take a while. You're on Lubuntu 20.04 live ISO, right?
[21:48] <bob3> oh it works when I open it from non-root file explorer
[21:48] <bob3> as not trusted
[21:49] <arraybolt3> 👍
[21:49] <bob3> it's 20. something
[21:49] <arraybolt3> Good.
[21:52] <bob3> It only worked without the copied folder
[21:52] <bob3> left a debud log in it that can't be oppened
[21:53] <arraybolt3> Hmm, crud. Can you pop open a terminal type "cd /home/lubuntu/.config", and then run "chmod 0777 ./<bitmessagefolder>", replacing <bitmessagefolder with the copied folder name?
[21:53] <arraybolt3> Oh, you'll have to put "sudo" in front of the "chmod" command.
[21:59] <bob3> chmod: missing operand after 0777/PyBitmessage
[21:59] <bob3> hold on
[21:59] <bob3> I think it worked
[22:00] <bob3> sudo chmod 0777 ./PyBitmessage
[22:00] <arraybolt3> ^^^ correct
[22:03] <arraybolt3> Is bitmessage able to work now and still have all your old data?
[22:05] <bob3> no
[22:06] <arraybolt3> OK, so maybe there's more data than just in config. Go back to your main machine's drive, and check home/user/.cache for anything bitmessage related.
[22:06] <bob3> sorry I got to eat. I'll keep doing the backups in the meantime
[22:07] <arraybolt3> OK. I should still be here.