/srv/irclogs.ubuntu.com/2022/04/28/#lubuntu.txt

jonser_Saludos00:01
jonser_Podría ser este un espacio para que alguien me ayudara con un par de problemas que tengo?00:02
lubot[telegram] <N0um3n0> #lubuntu-es es the BEST place for that, this IS the english support00:03
bob5Hi, 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 I19:04
bob5can install to do this for me?19:04
arraybolt3Hey bob5. I know the answer to this one!19:05
arraybolt3Here's the commands to fix it:19:05
arraybolt3lsblk19:05
arraybolt3Find your USB drive in the output (you'll see something like "sdb" that's the same size as your flash drive).19:05
geniiAll base storage devices are owned by root by default19:05
arraybolt3Yes.19:06
arraybolt3Once 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
arraybolt3Assuming that your EXT4 partition is "sdb1", here's the commands to run:19:06
arraybolt3sudo mount /dev/sdb1 /mnt19:07
arraybolt3sudo chmod 0777 /mnt19:07
arraybolt3sudo umount /mnt19:07
arraybolt3Your flash drive should work properly after typing this command sequence.19:07
geniiAlternately, just a create a folder on the drive as root, then recursively chown it to the username you wish to writs to it as19:08
bob5Thank 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 attempt19:09
bob5Will I have to do this every time I plug in the drive?19:10
arraybolt3Nope. The changes made by this command sequence are permanent, and the drive should work on any Linux computer you plug it into. @bob519:10
arraybolt3It is odd that the last command said that it wasn't found. Are you sure you typed "umount" rather than "unmount"?19:11
arraybolt3Unmount isn't a command, but umount is.19:11
bob5Oh I typed unmount. I typed umount now in case it was needed to make it permanent19:13
arraybolt3Good. That last command just makes sure that no data written to the drive gets corrupted when you unplug it.19:13
bob5I 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
bob5I tried a few variations, ext4 EFI and Fat 32 EFI. Still couldn't make it work19:17
bob5When 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:18
bob5Any idea to save it or should I just give up and reinstall19:20
arraybolt3Sorry, lost connection. Can you resay anything that you said after it said I left? @bob519:22
bob5I can see the timestamp and I said nothing after19:22
arraybolt3Oh good.19:23
bob5Also 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
arraybolt3OK, so this is fixable, but it's complicated.19:24
arraybolt3First, boot into a live USB so you can access the rest of the system.19:24
arraybolt3(Don't worry, we're not going to reinstall.)19:25
bob5Can I safely resize the partition to only the used space without overwriting used space?19:25
bob5I am booted into lubuntu from the pendrive19:25
lubot[telegram] <teward001> ideally the system won't let you resize smaller than used space.19:25
bob5and I can access my files19:25
arraybolt3Resizing partitions is always dangerous, even when it looks safe. If you're going to do that, back up.19:25
lubot[telegram] <teward001> ^^ that19:25
arraybolt3I've accidentally nuked drives doing resizing.19:25
arraybolt3If 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
bob5the 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+ pendrive19:26
arraybolt3OK, so rather than resizing, here's what to do:19:26
arraybolt3Pop open a terminal, and type "sudo su -".19:26
bob5done19:27
arraybolt3OK, so now do "cd /media/lubuntu".19:27
bob5done19:27
arraybolt3Once 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
bob5Yes I see19:28
arraybolt3Double-click that entry, and press Ctrl+Shift+C. Then type "cd " (the space is important), then Ctrl+Shift+V.19:28
bob5odd looking name is preceded by the label I gave my intended backup drive19:28
arraybolt3That's fine. Use the odd-looking name, not the label. The odd-looking name is your main drive.19:29
bob5ok done19:29
arraybolt3Now type "ls". Do you see folders in there with names like "bin", "usr", "home", "dev", stuff like that?19:29
bob5Yes. Btw, I could navigate the drive using the 'file explorer'19:30
arraybolt3Yeah. There's a reason we're doing it this way, though.19:30
bob5I'm following you19:30
arraybolt3So, now type "ls ./blank.img". It should tell you that it could not find the file.19:30
bob5I confirm19:31
arraybolt3Good. Now, type this command: "dd if=/dev/zero of=./blank.img bs=4M status=progress". This command will take VERY LONG to execute.19:31
arraybolt3The "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:33
bob5I'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
arraybolt3You don't need to worry about that. We're going to do a full disk image backup. If you rea19:36
arraybolt3really want to peak inside those, you can do that, but it's not needed - any data in there will be saved doing this.19:37
bob5Can the pendrive I am backing up to keep other existing files on it?19:38
arraybolt3Yes, 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
bob5Yes. Will it warn me if there's not enough free space?19:38
arraybolt3Unfortunately no, but if it fails, you won't lose any data.19:39
bob5Will it tell me that it failed if it fails?19:39
arraybolt3Yes.19:39
bob5Is it possible to copy files which say permission denied?19:41
bob5When I copy and I get an error I get two options Ok and ignore. They seem identical, is there a difference?19:42
arraybolt3Yes. The full disk image backup copies EVERYTHING.19:42
arraybolt3Hold on, let me find out...19:42
arraybolt3If you're trying to copy files individually, though, you will need to do it a bit differently to deal with "permission denied".19:43
bob5I 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:43
arraybolt3You're right. Just verified.19:44
bob5I 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:44
arraybolt3Actually, 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:45
arraybolt3Once 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:47
arraybolt3I 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:48
bob5I 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
arraybolt3Let me verify so that I don't give you bad info...19:50
bob5I can always compare the backup size as atleast 7519:51
bob5nvm19:51
bob5Since it might copy folders sequentially it's possible one folder would miss just one file and I won't notice it19:52
arraybolt3It looks like it works fine if you tell it to overwrite the folder and then ignore all existing files.19:52
arraybolt3It even gets files that are hiding in other folders.19:52
bob51 folder was incomplete by 75% so it will be easy to verify19:54
bob5The option to overwrite the folder but ignore existing files doesn't make sense. I chose ignore for all.19:55
arraybolt3👍19:55
arraybolt3Your way works too.19:55
arraybolt3Oh, and copying the whole home folder also copies all hidden files.19:56
bob5I chose to only copy selected folders within home/user/19:57
arraybolt3Oh, that's won't grab the hidden files. You might lose some program configuration doing that, unless you specifically cho19:57
arraybolt3chose to view hidden files.19:57
bob5I just chose to view hidden files thanks I wasn't aware of it19:58
arraybolt3Nice.19:59
bob5There was one app which I want to save the appdata. It's an appimage and I don't know where it stores the userdata19:59
arraybolt3It'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,19:59
bob5This is paradise compared to struggling on my own O:320:01
arraybolt3Good. I like being helpful.20:01
bob5The transfers will take probably 2 hours before I do the backup you suggested20:04
bob5I'm going to try copying the hidden folders to my current instance and see if when I run the appimage it loads my accounts20:04
arraybolt3That's fine. I should still be here.20:05
bob5oh. Is there a risk my session will malfunction if I overwrite the hidden files in /home/user/ ?20:06
arraybolt3How are you overwriting them?20:07
arraybolt3With backup copies?20:07
arraybolt3If you're copying in a backup, you should be AOK. If not, then yeah, you could break stuff.20:08
arraybolt3I 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:20
bob5It'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:27
arraybolt3Really, 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:28
bob5oh oh I run out of space20:29
bob5Nothing appears to be persistent on this usb drive. How do I check if I have persistent storage enabled?20:29
bob5Also if I cancel the transfer now, will it revert all copying it did?20:30
bob5I mean I ran out of space for copying to my session's home folder20:30
arraybolt3Uh, ok hold on...20:30
arraybolt3Is your session the live USB session?20:30
bob5Yes20:30
arraybolt3Oh, that won't work.20:30
arraybolt3Uh, trying to think of a solution here...20:31
arraybolt3You've not made any permanent changes to your installed system, right?20:32
arraybolt3Only just to the backup drive?20:33
bob5Yes20:34
bob5well not since we spoke20:34
arraybolt3OK, 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:35
bob5I canceled the transfer to my session. I am currently copying non hidden folders to the backup drive20:36
bob5I will then also add the hidden folders I see20:36
arraybolt3OK.20:36
bob5I 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
bob5At least not in the current situation20:38
bob5though given how terribly slow it is. I don't mind waiting.20:38
arraybolt3Not irrational. I've lost data before. It's not fun.20:40
arraybolt3Can 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:41
bob5I was going to tell you but for the fact that I don't know how to find the download directory20:45
bob5https://wiki.bitmessage.org/releases20:45
arraybolt3OK.20:45
arraybolt3I'm juggling stuff here, so it'll be a bit before my next reply.20:45
arraybolt3Found it! OK, so, can you use your file manager to navigate to your system's main drive?20:51
bob5Yes20:52
bob5Also how did you find the appimage on the website?20:53
arraybolt3It's at appimage.bitmessage.org.20:54
arraybolt3I think I just Googled it.20:54
arraybolt3The link was hiding in a GitHub page.20:55
arraybolt3It was the official GitHub page for BitMessage, it had a link to appimage.bitmessage.org for Linux.20:56
bob5here brave search failed me but google found it20:56
bob5also one of the releases was a 0 byte file20:57
bob5which doesn't work20:57
bob5obviously20:57
arraybolt3:/20:57
arraybolt3OK, so, on your system's main drive, can you tell me if there's anything bitmessage related in home/user/.config?20:59
bob5Yes! that appears to be it!21:00
bob5Is appdata usually all in .config?21:01
arraybolt3Well, 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
arraybolt3Try copying just the bitmessage related stuff out of that folder and onto your live session into the appropriate folder.21:02
bob5unfortunately I cannot test it now as my session is out of space21:02
bob5I wish I could undo the copy I did21:03
arraybolt3Crud. Can you open up the .config file on your live session and tell me what's in there?21:03
bob5It has the bitmessage folder but that's because I ran the image earlier21:03
arraybolt3Delete the bitmessage folder **in the live session** (not the one on your machine!)21:04
arraybolt3Then copy the bitmessage folder from your machine to the live session.21:04
bob5the hdd copy is bigger than the live session copy. Thus I believe I would need to find something else to delete first21:04
bob5The backup is 50% transfered21:05
arraybolt3OK, well, what's in the .cache folder of the live session?21:05
bob5There's a ton of stuff including gimp and bravesoftware. I can safely delete those21:05
arraybolt3All 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:05
arraybolt3Yeah, delete those in the live session.21:06
bob5brave had all my profiles there so deleted 1.1GB21:06
arraybolt3Then try copying the bitmessage folder from your machine to the live session.21:06
arraybolt3That ought to do it!21:06
bob5I will tell you the results21:06
bob5I have to be super careful not to confuse the location of the folders X)21:11
arraybolt3True.21:15
bob5Still told me not enough space. The trash bin doesn't have the recently deleted folders.21:15
arraybolt3Are you sure you deleted the brave folder out of the live session, not the main machine?21:15
arraybolt3If you really did remove the folder out of the live session, then I guess the bitmessage folder must be HUGE.21:17
bob5No it can't be21:17
bob5oh it's 0.7GB21:17
bob5That's incredible for just text files.21:18
arraybolt3Ah, OK. Well, can you clear anything else out of the .cache folder **on the live session**?21:18
bob5Well I have news. the transfer to the backup finished (non hidden only)21:19
bob5So I could just restart my session to clear it out21:19
arraybolt3That's a very good idea.21:19
bob5and I confirm the 75% incomplete folder is now complete with the exact number of bytes21:22
bob5So 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:23
arraybolt3Nice. I doubt that cancelling a transfer would leave an unfinished file, but I can check to make sure.21:24
bob5Is it normal lubuntu always performs a disk check on startup?21:25
arraybolt3Yes, it is normal.21:25
arraybolt3However, canceling a transfer **does** leave a partial file on disk...21:26
arraybolt3And using the ignore option leaves the wonky file.21:26
arraybolt3So it is possible that there might be one bad file in the folder.21:30
arraybolt3@bob3 you're the person who was bob5 just a bit ago, right?21:31
bob3Yes21:34
bob3I started backing up the hidden folders21:34
bob3I also clicked to run bitmessage but nothing happened yet21:35
bob3working on it21:35
arraybolt3OK. You already copied the bitmessage folder from your main machine to the live session, right?21:35
bob3Yes. I'm trying to run the appimage from the hdd21:35
bob3I don't remember if I copied it last time21:36
bob3the thumbdrive is really fast already done. so weird21:36
bob3nvm it's not21:36
arraybolt3OK, 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:39
bob3Is it just by checking where it stopped and compare file sizes?21:42
bob3I conclude so far that it writes in sequentially in alphanumerical order.21:42
arraybolt3It'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
arraybolt3I think it might also copy your hidden files at the same time.21:43
arraybolt3Yep, it copies hidden files too.21:44
arraybolt3Whenever 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:44
bob3I'm letting the hidden files copy while I'm working on bitmessage21:45
arraybolt3oh OK.21:45
arraybolt3That's fine, 21:45
arraybolt3don't cancel anything.21:45
bob3what's the shortcut for rename?21:45
arraybolt3I don't think Lubuntu has one. I think you have to right-click the file, then click Rename.21:46
bob3Says failed to execute child process xterm no such file or directory21:46
arraybolt3Eh? Is this BitMessage saying this?21:47
bob3Also does this when I change the pybitmessage folder name21:47
bob3yes21:47
arraybolt3Hmm. 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:47
bob3oh it only does that when "trust executable" is unchecked. but when it's checked nothing happens21:48
arraybolt3Give it a bit, it might take a while. You're on Lubuntu 20.04 live ISO, right?21:48
bob3oh it works when I open it from non-root file explorer21:48
bob3as not trusted21:48
arraybolt3👍21:49
bob3it's 20. something21:49
arraybolt3Good.21:49
bob3It only worked without the copied folder21:52
bob3left a debud log in it that can't be oppened21:52
arraybolt3Hmm, 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
arraybolt3Oh, you'll have to put "sudo" in front of the "chmod" command.21:53
bob3chmod: missing operand after 0777/PyBitmessage21:59
bob3hold on21:59
bob3I think it worked21:59
bob3sudo chmod 0777 ./PyBitmessage22:00
arraybolt3^^^ correct22:00
arraybolt3Is bitmessage able to work now and still have all your old data?22:03
bob3no22:05
arraybolt3OK, 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
bob3sorry I got to eat. I'll keep doing the backups in the meantime22:06
arraybolt3OK. I should still be here.22:07

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!