LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Calculate (https://www.linuxquestions.org/questions/calculate-89/)
-   -   How to move/edit files from CLD to another partition? (https://www.linuxquestions.org/questions/calculate-89/how-to-move-edit-files-from-cld-to-another-partition-4175627905/)

Bourbon 04-18-2018 06:29 AM

How to move/edit files from CLD to another partition?
 
Hi All,

Please, I have a small problem with CLD 17.12.2 amd64 - KDE: it is on multiboot with Windows10 and Linux Mint, wishing to move files between CLD and different places, I can do it without any problem to Windows and even with fat32 external hard drive, but can't do with Linux Mint.
Surely is a matter of permissions but I am afraid to mess up changing them myself, hoping someone here can tell me the right steps to do.

(Linux Mint is on /dev/sdb2; /dev/sdb1 = Swap: /dev/sdb3 = empty; /dev/sdb4 = CLD; Windows 10 = /dev/sda)

/etc/fstab here:
Code:

/ was on /dev/sdb4 during installation
UUID=0cd44e20-4cc4-4031-8c58-2490a8d3050f        /        ext4        noatime        0 1
# /boot/efi was on /dev/sda2 during installation
UUID=C0B4-AF95        /boot/efi        vfat        noatime        0 0

# swap was on /dev/sdb1 during installation
UUID=8d34147c-1839-4f9e-8004-e44f8484421d        none        swap        sw        0 0

proc                /proc                proc        defaults                0 0
shm                /dev/shm        tmpfs        nodev,nosuid,noexec        0 0

(Dolphin shows Linux Mint, Windows 10 and external hard drive on the left column "Resources"and I have access to them).

Thank you for reading

Best Regards

BW-userx 04-18-2018 09:43 AM

so say you got two Linux installs, and a Windows install. you are wanting to move some files from one Linux install to the other Linux install and are having an issue doing this. even though you're already sitting on one Linux wondering what to do to accomplish this task.

How do I get to that other Linux OS to move some files onto this one?

Have you tried using your root user to do this yet? you suggested/thought fstab mount my other OS to get to it. OK, lets look at that first.

to set up permissions for a same user on two systems then you have to mirror the user for both systems if you are wanting to use a user to do these tasks, or give the directory open permissions for everyone to read, write, execute.

666
755
775
777
are there to use. Ownership too can and does play a part in this, also. and a bunch of other stuff to do...


or lets look at this way of doing it now.

Code:

sudo mount source partition -> destination directory

#mount point
sudo mv -v destination directory/source files -> some other directory on the system

sudo umount destination directory

Case in point.
Code:

$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdb          8:16  0  1.8T  0 disk
├─sdb2        8:18  0 245.9G  0 part /media/ntfs
└─sdb1        8:17  0  1.6T  0 part /media/data
sdc          8:32  0  3.7T  0 disk
└─sdc1        8:33  0  3.7T  0 part /media/userx/4TB_esaystore
sda          8:0    0 232.9G  0 disk
├─sda4        8:4    0    1K  0 part
├─sda2        8:2    0  97.2G  0 part
├─sda7        8:7    0  63.5G  0 part : Slackware home
├─sda5        8:5    0  25.4G  0 part : Slackware
├─sda3        8:3    0  450M  0 part
├─sda1        8:1    0  500M  0 part
├─sda8        8:8    0  20.5G  0 part /home :peppermint
└─sda6        8:6    0  25.4G  0 part / :peppermint
mmcblk0    179:0    0  14.5G  0 disk
└─mmcblk0p1 179:1    0  14.5G  0 part [SWAP]

the rest on /dev/sda is windows.
if I am on this peppermint linux and I need to access Slackware system side or user side. As stated, I just mount the other OS partition to a dir on the system I am already on. then move or copy then files into that directory or do whatever I need to do in the other system.

example to get to my Slackware system.
Code:

sudo mount /dev/sda5 /mnt

cd /mnt : now everything that is on Slackware system is now connected to /mnt


Bourbon 04-18-2018 10:29 AM

Hi BW-userx,

Thank you for your kind concern. To be precise, from CLD to Linux Mint, I can go clicking on Dolphin>Resources>Linux Mint, asking me password and mounting it. After that I can surf into Linux Mint partition (User name is different to every Linux distro), I can edit a document (asking password) but can't move a file from CLD to Mint and vice versa.
I have been writing here because afraid to change permissions myself, I mean: I did it over a previous installation where Linux Mint was mounted on CLD "/" and added on fstab, but I did a big mistake because wishing to make everything "free" I did'nt think that doing that was going to change also Mint's System file permissions and got it unusable, so, I have been installing it again.
Exactly, I did this on the Linux-Mint created folder in CLD "/":
chmod -R 777 Linux-Mint
chown -R dominu:dominum Linux-Mint
chgrp -R dominum Linux-Mint

Post Scriptum

I see you are a Slacker, I love it and I kept as primary distro for long time, gave up when got machine with two HHD and multiboot with Windows 10 because unable to keep the clock in order both sides even using "ntp" on Slackware. Maybe I have been unable to set it properly. Please, do you know if needing to work on some Slackware configuration files after installing "ntp" or do we have different solution for the clock?
14.2 KDE amd64 has been the last Slackware of mine (till now) but still I feel it and sometime thinking to install it again over the free partition.
Got also problem to install Nvidia driver, because apparently now needing to install using SlackBuild and never I have been able to download it; is not a big issue because can manage with native Nouveau and needing to be patient with ffmpeg too lol
I don't remember other serious issues with Slackware.
I apologize for keeping you busy talking of it but I like Slackware :)

Best Regards

BW-userx 04-18-2018 10:45 AM

Quote:

Originally Posted by Bourbon (Post 5844704)
Hi BW-userx,

Thank you for your kind concern. To be precise, from CLD to Linux Mint, I can go clicking on Dolphin>Resources>Linux Mint, asking me password and mounting it. After that I can surf into Linux Mint partition (User name is different to every Linux distro), I can edit a document (asking password) but can't move a file from CLD to Mint and vice versa.

I have been writing here because afraid to change permissions myself, I mean: I did it over a previous installation where Linux Mint was mounted on CLD "/" and added on fstab, but I did a big mistake because wishing to make everything "free" I did'nt think that doing that was going to change also Mint's System file permissions and got it unusable, so, I have been installing it again.
Exactly, I did this on the Linux-Mint created folder in CLD "/":
chmod -R 777 Linux-Mint
chown -R dominu:dominum Linux-Mint
chgrp -R dominum Linux-Mint

to have the other system on your system at all times, might as well just run on Linux system?
I do not know how to fix it so that it will do like the other one, I've never had to look into it. as My PCMANFM does the same thing for the most part even in Slack, I just do a go to mount what I want then access it, maybe the cause is "terminal" illness that causes me to use the terminal instead of using the file manager , click add password then go into it that way.

you could set up a data partition with same user attached to it to allow you access to that via a file manager, or set up a share /home that both Linux OSes use depending on which one you're running it is still the same /home no matter what.

Though it seems strange that Mint does not have the file manager access via a password like your CLD does, ever Distro I've used I've had that, even though I usually use the mount method anyways, there's the "terminal" illness flaring up again.

I am in Windows right now so I cannot check into this to see what its really doing, but it would have something to do with polkit-1 and how it does its permissions for auto mount.


Quote:

Originally Posted by Bourbon (Post 5844704)
Post Scriptum

I see you are a Slacker, I love it and I kept as primary distro for long time, gave up when got machine with two HHD and multiboot with Windows 10 because unable to keep the clock in order both sides even using "ntp" on Slackware. Maybe I have been unable to set it properly. Please, do you know if needing to work on some Slackware configuration files after installing "ntp" or do we have different solution for the clock?
14.2 KDE amd64 has been the last Slackware of mine (till now) but still I feel it and sometime thinking to install it again over the free partition.

Got also problem to install Nvidia driver, because apparently now needing to install using SlackBuild and never I have been able to download it; is not a big issue because can manage with native Nouveau and needing to be patient with ffmpeg too lol
I don't remember other serious issues with Slackware.
I apologize for keeping you busy talking of it but I like Slackware :)

Best Regards

clock: that is easily fixed in slack as well just change the settings to localtime
Nvidia: ?? their are people in LQ that should be able to help you set that up in Slack so it works.
ffmpeg: ?? I didn't get that reference, sorry.

go back to slack, what's a matter wif you? :D

_roman_ 04-23-2018 07:55 AM

I did not read everything

quote: an do it without any problem to Windows and even with fat32 external hard drive, but can't do with Linux Mint.

gentoo for example has a fuse module or ntfs-3g since a long time.

Just use ntfs-3g with ntfs volume. i suggest that you create the ntfs volume in spyware95(or newer)

fat is limited, just do not use it!

--

In my spywareXP days I used a windows software which could access ext2. yes I used ext2 these days.

--

edit: I usually had for a very long time an /etc/fstab entry with ntfs-3g and a mount folder entry which was a subfolder of my home directory. The data could be moved easily as my main user without root, and could be accessed from SpywareXP


All times are GMT -5. The time now is 07:11 AM.