LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2023, 01:43 PM   #76
Camello
Member
 
Registered: Apr 2021
Location: USA
Distribution: MX-LINUX
Posts: 218

Original Poster
Rep: Reputation: Disabled

I think it is ok now:

Code:
keos@keos:~
$ sudo mount /dev/sdb3 /mnt
keos@keos:~
$ mkdir /mnt/files
mkdir: cannot create directory ‘/mnt/files’: Permission denied
keos@keos:~
$ sudo mkdir /mnt/files
keos@keos:~
$ chmod 777 /mnt/files
chmod: changing permissions of '/mnt/files': Operation not permitted
keos@keos:~
$ sudo chmod 777 /mnt/files
keos@keos:~
$
What is next ...?
 
Old 12-29-2023, 01:58 PM   #77
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Copy files to the files folder, you should be be able to do this from thunar

Last edited by colorpurple21859; 12-29-2023 at 01:59 PM.
 
Old 12-29-2023, 02:54 PM   #78
Camello
Member
 
Registered: Apr 2021
Location: USA
Distribution: MX-LINUX
Posts: 218

Original Poster
Rep: Reputation: Disabled
Quote:
Copy files to the files folder, you should be be able to do this from thunar
To "file folders"? -- i'm trying to copy in Thunar but from my system/'documents' to into 'Data' but I got an error ...(and it is mounted):

https://www.linuxquestions.org/quest...1&d=1703883090

I'll be back tomorrow. Thanks.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2023-12-29_15-45-26.png
Views:	13
Size:	125.4 KB
ID:	42313  
 
Old 12-29-2023, 05:21 PM   #79
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
You are attempting to copy folders to the top of the data partition, can't be done as a user unless mount permissions are set. You need to copy the Documents folder into the files folder on the data partition.

If want the Document folder on the same level as the files folder you will have to do this for each directory you are attempting to copy directly to the data partition.
Code:
sudo mount /dev/sda3 /mnt
sudo mkdir /mnt/Documents
sudo chmod 777 /mnt/Documents
Then copy the contents of the Documents folder to /media/keos/Data/Documents.

Setting permissions for all users to write/access files to the top of a partition tree is done by setting the permissions of the directory where the partition is mounted, easily done on an installed system not so much on a live iso system. This permission issue would be bypassed if the partition is formatted exfat or ntfs

Last edited by colorpurple21859; 12-29-2023 at 05:50 PM.
 
Old 12-29-2023, 06:02 PM   #80
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
The system automatically mounted the partition to /media/keos/Data and the OP manually mounted it to /mnt

You need to change the permissions of the mount point otherwise you can not create any files or subdirectories by just drag in drop. The permissions are written to the filesystem so change one mountpoint should allow writing to the other.

Last edited by michaelk; 12-29-2023 at 06:12 PM.
 
Old 12-29-2023, 06:42 PM   #81
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Quote:
You need to change the permissions of the mount point otherwise you can not create any files or subdirectories by just drag in drop.
True, now I think about it. I guess the opp could change the permissions of the mount point on the installed system with
Code:
chmod 777 /media/keos/Data/
The problem is the op would have to chmod 777 the mount point of the partition each time the partition is mounted in a live iso.
 
Old 12-29-2023, 07:22 PM   #82
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Permissions are attached to the filesystem (i.e native linux filesystems) and the OP is using ext4. With 777 the data partition should be writable regardless. Granted, it works with installed systems but I have only tested on one live ISO, LMDE but I don't know why it would not work on others.

A directory can have any sort of permissions but when used as a mount point will change to the permissions of the mounted filesystem (again linux native filesystems).
 
Old 12-30-2023, 04:20 AM   #83
Camello
Member
 
Registered: Apr 2021
Location: USA
Distribution: MX-LINUX
Posts: 218

Original Poster
Rep: Reputation: Disabled
Unhappy

As you may have noticed I am just a user not versed in these technicalities so I deduce that perhaps the most practical for me is:

Quote:
This permission issue would be bypassed if the partition is formatted exfat or ntfs
Isn't that right?
 
Old 12-30-2023, 05:19 AM   #84
Camello
Member
 
Registered: Apr 2021
Location: USA
Distribution: MX-LINUX
Posts: 218

Original Poster
Rep: Reputation: Disabled
Now I tried to do it again in Thunar but as 'root' and it worked, the documents are already in 'Data'



-- but when going to ventoy to the F2: Browse option, to search for them, they are not there, only 'the names' as in post #61
Attached Thumbnails
Click image for larger version

Name:	2023-12-30-060408_1366x768_scrot.png
Views:	6
Size:	188.1 KB
ID:	42316  
 
Old 12-30-2023, 06:54 AM   #85
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,569

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
Quote:
but when going to ventoy to the F2: Browse option, to search for them, they are not there, only 'the names' as in post #61
When booting the MX iso on the usb drive, you need to mount that Data partition before any of the files will be available which of course, will likely require root (sudo) permissions. As I understand it, the MX on the usb drive is a 'live' Linux iso and will not automatically mount that partition which from your earlier posts appears to be sda3. If you boot MX on the usb drive, copy and paste the following command into a terminal. It will not change/modify anything but simply output information:

Quote:
cat /etc/fstab
Do you see an entry there for sda3? Not likely, which is why you need to manually mount each time. The MX iso on the flash drive is a 'live' system which means it is read only and you cannot modify system files.

On a Linux system, you generally need root (sudo) permissions to access anything outside the user /home /directory and mounting is also generally done using root (sudo).

An example would be to simply run: sudo mount /dev/sda3 /mnt
That should mount the DATA partition at /mnt and make it available and you should see any data you copied from your installed OS.
 
Old 12-30-2023, 06:59 AM   #86
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Support for NTFS and exFAT depends on distribution version as well as kernel version. The main stream distributions usually include support for exFAT and NTFS but may or may not be included by default in the live version. Both filesystems are becoming builtin and in the future are probably going to require the same permissions as regular filesystems so I can not guarantee they will be automatically mounted with r/w for a regular user.

Your screenshot appears to show the same directories but not the contents so I can not tell if they are empty or not.
 
Old 12-30-2023, 07:48 AM   #87
Camello
Member
 
Registered: Apr 2021
Location: USA
Distribution: MX-LINUX
Posts: 218

Original Poster
Rep: Reputation: Disabled
Are you telling me to go in ventoy to the operating system, and from there, open a terminal and run:

Code:
sudo mount /dev/sda3 /mnt
--and this has to be done every time I want to access the Data?
 
Old 12-30-2023, 08:17 AM   #88
Camello
Member
 
Registered: Apr 2021
Location: USA
Distribution: MX-LINUX
Posts: 218

Original Poster
Rep: Reputation: Disabled
This is from inside the ventoy/mx-23 USB:

Code:
keos@keos:~
$ cat /etc/fstab
# /etc/fstab: static file system information
#
# Created by make-fstab on Sat Dec 30 09:04:54 EST 2023

# <file system>                            <mount point>                               <type>     <options>                       <dump/pass>

# Added by make-fstab /dev/nvme0n1p2
UUID=857acb06-9ea7-4274-b0f6-bced4ca2c251  swap                                        swap       defaults                        0 0
keos@keos:~
$
Data' is automatically mounted when I open the system (USB) and it appears in Thunar, but not in Ventoy/F2:Browse. (?).
 
Old 12-30-2023, 08:43 AM   #89
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Are you talking about this: https://www.ventoy.net/en/doc_vlnk.html see bottom of webpage for example

The f2 key in ventoy boot menu will only display directories and iso files.

Last edited by colorpurple21859; 12-30-2023 at 09:10 AM.
 
Old 12-30-2023, 08:52 AM   #90
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
I guess it depends on the distribution. I have only tested two live versions, MX and LMDE. MX running from Ventoy does not automatically mount the data partition but it is automatically mounted with LMDE.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can I make a USB hard drive bootable with same procedure to make USB stick bootable? Tem2 Linux - Hardware 1 02-16-2019 08:25 AM
[SOLVED] If I dd copy a bootable usb drive to an iso will the iso be bootable? mgallatin Linux - Software 5 03-23-2011 04:46 PM
Creating bootable CDROM from a bootable USB drive seaquesttr Linux - Desktop 2 08-01-2010 11:57 AM
Making a USB stick bootable from a bootable cdrom cwwilson721 Slackware 2 10-23-2009 09:18 PM
How to make a bootable DVD along with RPMs azgs Linux - Newbie 1 09-06-2007 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration