Transferring Play on Linux files

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
WHVW
Level 4
Level 4
Posts: 243
Joined: Tue May 19, 2015 4:31 pm

Transferring Play on Linux files

Post by WHVW » Thu Apr 19, 2018 2:17 pm

Hi:

Well, I thought this would be easy; just follow Cosmo's instructions as I did for Thunderbird:
viewtopic.php?f=47&t=268027
And away you go...well, not so fast, sonny boy... When I went to compress the files, I kept getting those annoying "permission denied" errors; no problem...switch to root and that will fix it... no, that will not fix it. At least I can use "apply permissions to enclosed folders".... Nope, still the same error. I could change them individually, but there are so many it would take 30 years.
Does anyone have a solution?

Thanks

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Transferring Play on Linux files

Post by Cosmo. » Thu Apr 19, 2018 4:52 pm

I noticed your report in the TB thread already. It seems, we should take a look into your home to find out, if there are ownership problems.
Mark the following command and press ctrl-c

Code: Select all

find $HOME ! -user $USER -type f
open a terminal and press ctrl-shift-V
Mark the complete result inclusive the command with the mouse and press ctrl-shift-C
In the forum click the Code-button (looks like </>) above the text edit box, than press ctrl-v.

Report in case, that there is no output.

Besides that: "Switching to root" is not a solution for such problems, it merely can create new problems, which were not there until this attempt. As a general rule: Never(!) use inside of your home elevated rights!. If this seems(!!!) to be needed, it is an indication for a problem, which needs to get fixed. This brings me back to the above advice.

WHVW
Level 4
Level 4
Posts: 243
Joined: Tue May 19, 2015 4:31 pm

Re: Transferring Play on Linux files

Post by WHVW » Thu Apr 19, 2018 9:10 pm

Cosmo:

I have one little problem, in that I am using the "from" drive as dev/sdb, with the "new", larger drive as dev/sda. Reason: I wanted to have an easier drive to drive transfer, and most importantly, that source drive rarely boots. I have tried many combinations of "mount", mount -l ext4 /dev/sdb2 (and 5) /mnt/DATA, mount device... etc., and it is all a no-go.

So.. I can't execute the terminal commands you gave me because I can't navigate to the drive at the command line. If it is worth anything, I can access it in the GUI, is there a way to obtain a terminal window from where the GUI is at?

Meanwhile, I will try to trick the drive into booting to try your commands.

Thanks.

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Transferring Play on Linux files

Post by Cosmo. » Fri Apr 20, 2018 5:22 am

The given command investigates your home. Where your home is stored, does not matter at least. Just do as advised.

WHVW
Level 4
Level 4
Posts: 243
Joined: Tue May 19, 2015 4:31 pm

Re: Transferring Play on Linux files

Post by WHVW » Fri Apr 20, 2018 12:05 pm

Cosmo: Here are the results:

Code: Select all

x@2 ~ $ find $HOME ! -user $USER -type f
/home/x/Documents/Computer Technical/Funderbird.savedSearch
/home/x/software_selection_x-OptiPlex-GX270@2018-04-20-1203-package.list

Thanks.

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Transferring Play on Linux files

Post by Cosmo. » Fri Apr 20, 2018 5:30 pm

The output does not show anything related to your problem, but correct the wrong ownership anyway:
Mark the following command completely and make sure, that you do not miss any sign, than press ctrl-c

Code: Select all

find /home/$SUDO_USER ! -user $SUDO_USER -exec chown $SUDO_USER:$SUDO_USER '{}' \;
Open a terminal and enter

Code: Select all

sudo -i
and press the Enter-key; you get prompted for your password, enter it.
Now still in the same terminal press ctrl-shift-V
Run this command and wait until it has finished. It does not produce a readable output.
Press twice ctrl-d
Immediately log off and back into your account.

What we now need is the precise error message, permission denied for what, when you try to compress?

WHVW
Level 4
Level 4
Posts: 243
Joined: Tue May 19, 2015 4:31 pm

Re: Transferring Play on Linux files

Post by WHVW » Fri Apr 20, 2018 6:48 pm

Cosmo:

I am still getting an error message: "Permission Denied". There is nothing further to click on. This occurs as I am starting to compress from the source drive, (dev/sdb). It would seem that the issue exists at the source. Also, Gparted reveals this for the new install:

It looks to me as if it were one big boot sector; I must be missing something.
Thanks
Attachments
Screenshot 20avril2018.png

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Transferring Play on Linux files

Post by Cosmo. » Sat Apr 21, 2018 6:05 am

Your picture shows sda, I cannot see anything regarding sdb.

WHVW
Level 4
Level 4
Posts: 243
Joined: Tue May 19, 2015 4:31 pm

Re: Transferring Play on Linux files

Post by WHVW » Sat Apr 21, 2018 2:50 pm

Cosmo:
That's the new install drive, the "old" drive is sdb.

I started suspecting that part of the flakeyness of that machine might be memory related, and memtester agreed. After cleaning the contacts and a light coat of De-Ox-It, it then tested 100% on both memtester and memtest86+ (or what ever it's correct name is, it is the one on the Gparted Live disk). Yet after that the compression still stopped and said "Permission Denied" (even in root). Usually there is a "details" arrow you can click on, but not with this. Is there a log of that operation kept somewhere?

I did some spot checking and could find no ownership problems, but that is not really a definitive test since I would need to check literally thousands of files to be sure. So I decided on a direct copy approach, (in root, just to make sure) and it copied without a hitch, so at least I'm at the 50% mark, I'll see if POL likes it later.

Meanwhile, back at the ranch, I figured it would be best to nuke that new install, since the drive format configuration is so bizarre. Gparted won't let me set what will be a boot sector at anything less than 15 GB, I don't know why it is acting that way, all the other installs I've done came out right, dev/sdb stands at 243 MB for example, so any suggestions would be appreciated.

Thanks.

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Transferring Play on Linux files

Post by Cosmo. » Sat Apr 21, 2018 4:09 pm

You wrote in your second last post, that sdb is the source drive. At first this is impossible, as the source must be in every case a partition, so e. g. sdb1. next you wrote, that you suspect the issue at the source. Then you wrote, that GParted reveals this and presented a picture of sda. This cannot help to see anything related.

WHVW
Level 4
Level 4
Posts: 243
Joined: Tue May 19, 2015 4:31 pm

Re: Transferring Play on Linux files

Post by WHVW » Sat Apr 21, 2018 4:56 pm

Cosmo:

Perhaps I haven't been completely clear.

(D)ev/sda and dev/sdb are two wholly separate drives, not different partitions on the same drive. (D)ev/sda, configured as the master, is the 160GB drive I wish to use for a new install, transferring files from dev/sdb, 40GB, my original drive, now configured as slave.

When I tried the compression technique, the process "error-ed out" in very short order, leading me to suspect that the routine was having trouble reading from dev/sdb, whereas if it had stopped much later in the process, I would suspect that it would be having trouble writing to dev/sda.

By way of reiteration: the compression failed with .PlayOnLinux, but not .thunderbird.

My confusion with dev/sda vis-a-vis Gparted is that there does not seem to be a separate boot partition, rather one big main partition and a small swap partition. I have never seen an install do this before. What I believe it should look like, (correct me if I have this wrong) would be something like 300MB as a boot partition (dev/sda1) 155GB for the "extended" area, (dev/sda2) and a swap area, let's say 4.7GB.

At any rate, even with the memory fixed, that computer still freezes up, although at a much longer interval.

Thanks.

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Transferring Play on Linux files

Post by Cosmo. » Sat Apr 21, 2018 5:04 pm

WHVW wrote:
Sat Apr 21, 2018 4:56 pm
(D)ev/sda and dev/sdb are two wholly separate drives, not different partitions on the same drive.
That was clear and could in no case be different. But drives themselves can never be the source (or the target) of any file operation. Only partitions can be. You see in your picture, that you have 2 partitions on sda, namely sda1 and sda5. (sda2 is a container for so called logical drives.) Also on sdb there must exist partitions, otherwise no file manager or any other application could access it. But nobody can know more without seeing your sdb.

WHVW
Level 4
Level 4
Posts: 243
Joined: Tue May 19, 2015 4:31 pm

Re: Transferring Play on Linux files

Post by WHVW » Sat Apr 21, 2018 5:39 pm

Cosmo:
And here it is:
devsdb21042018.png
Thanks.

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Transferring Play on Linux files

Post by Cosmo. » Sun Apr 22, 2018 5:58 am

The main partition on sdb, sdb5, seems to be encrypted. I don't use this and have never dealt with this. So I am out.

WHVW
Level 4
Level 4
Posts: 243
Joined: Tue May 19, 2015 4:31 pm

Re: Transferring Play on Linux files

Post by WHVW » Mon Apr 23, 2018 12:25 am

Cosmo:

I would never encrypt..that is really asking for trouble...since I did NOT encrypt, what makes it appear to be so?

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Transferring Play on Linux files

Post by Cosmo. » Mon Apr 23, 2018 5:24 am

The lvm file system for sdb5.

WHVW
Level 4
Level 4
Posts: 243
Joined: Tue May 19, 2015 4:31 pm

Re: Transferring Play on Linux files

Post by WHVW » Mon Apr 23, 2018 12:37 pm

Cosmo: You mean to say that Logical Volume Management is/a form of encryption?

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Transferring Play on Linux files

Post by Cosmo. » Mon Apr 23, 2018 3:02 pm

LVM can serve several purposes, but encrypting is likely the mostly used reason to use LVM. At least you should know, if and why you created this lvm partition; If not I can only assume you did it by error.

WHVW
Level 4
Level 4
Posts: 243
Joined: Tue May 19, 2015 4:31 pm

Re: Transferring Play on Linux files

Post by WHVW » Mon Apr 23, 2018 5:13 pm

Cosmo:

This is an old, used drive I got from somewhere some years ago, which I installed over. It might be a carry over, or maybe I decided to try LVM.
Now I know why not to check that "use Logical Volume Management" question on in install disks, and you can bet that I won't!
Another mistake made, but another lesson learned.

Thanks

Post Reply

Return to “Software & Applications”