LinuxQuestions.org
Review your favorite Linux distribution.
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 03-30-2019, 02:52 PM   #16
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925

Ok, let's go back to:

Code:
sudo chown -R $USER:$USER /media/Danceman/Linux\ files
 
1 members found this post helpful.
Old 03-30-2019, 03:16 PM   #17
DanceMan
Member
 
Registered: Mar 2009
Location: Vancouver BC
Distribution: MX Linux
Posts: 159

Original Poster
Rep: Reputation: 22
MX linux still won't let me enter a password for sudo so I've had to switch to the Mint Mate laptop to run the commands.

The result is "no such file or directory." So I ran it again with "/media/Danceman/Linux files" and with /media/Danceman/"Linux files" after the initial part of the command and both returned the same error message. It's beginning to look like I may have to copy the files off the usb hdd to somewhere else and reformat that drive correctly. I've resisted doing that because I don't have a convenient place to put them.
 
Old 03-30-2019, 03:27 PM   #18
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Does the mount command show that the USB device is still mounted in the same location, i.e. /media/Danceman/Linux\ files?

Also, could you please paste here the exact command and output that you are experiencing (copy and paste it from the command line).

Last edited by hydrurga; 03-30-2019 at 03:29 PM.
 
Old 03-30-2019, 03:39 PM   #19
DanceMan
Member
 
Registered: Mar 2009
Location: Vancouver BC
Distribution: MX Linux
Posts: 159

Original Poster
Rep: Reputation: 22
/dev/sdb1 on /media/Danceman/Linux files type ext4 (rw,nosuid,nodev,relatime,stripe=8191)
 
Old 03-30-2019, 03:48 PM   #20
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
You may have missed my edit again. The terminal command/output would also be useful.
 
Old 03-30-2019, 03:55 PM   #21
DanceMan
Member
 
Registered: Mar 2009
Location: Vancouver BC
Distribution: MX Linux
Posts: 159

Original Poster
Rep: Reputation: 22
$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=1937028k,nr_inodes=484257,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=393324k,mode=755)
/dev/mapper/rootfs on / type ext4 (rw,noatime)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
pstore on /sys/fs/pstore type pstore (rw,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=786640k)
/dev/sda1 on /boot type ext4 (rw,noatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,size=12k,mode=755)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/run/cgmanager/agents/cgm-release-agent.systemd,name=systemd)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=393324k,mode=700,uid=1000,gid=1000)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sdb1 on /media/Danceman/Linux files type ext4 (rw,nosuid,nodev,relatime,stripe=8191)
 
Old 03-30-2019, 04:02 PM   #22
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Sorry, I meant the command where you try to chown the files on the media device and it fails (see post #17).
 
Old 03-30-2019, 05:01 PM   #23
DanceMan
Member
 
Registered: Mar 2009
Location: Vancouver BC
Distribution: MX Linux
Posts: 159

Original Poster
Rep: Reputation: 22
danceman@T410-1:~$ sudo chown -R $USER:$USER /media/Danceman/Linux\ files
[sudo] password for danceman:
chown: cannot access '/media/Danceman/Linux files': No such file or directory
danceman@T410-1:~$
danceman@T410-1:~$
danceman@T410-1:~$ sudo chown -R $USER:$USER /media/danceman/Linux\ files
danceman@T410-1:~$
____________________________________________________

This appears to have solved the problem and files are now transferring by drag and drop. As you can see above it appears to have been an issue with case sensitivity in the username.

Thank you very much for the help and for sticking with me. I will have to check that this is also working in the T400 with MX linux and start another thread to find out why MX linux is not accepting the root password. I have had more success with programs that I use installing and running properly in MX linux so that is currently the direction I'm heading.
 
Old 03-30-2019, 05:10 PM   #24
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Great to hear. As regards the danceman/Danceman difference, the whoami you ran earlier definitely said that you were Danceman and the mount and ls commands confirmed that. Is there a possibility that on Mint and MX your username is different (danceman on one, Danceman on the other) and you were inadvertently providing output from both distros during this thread?
 
Old 03-30-2019, 05:15 PM   #25
DanceMan
Member
 
Registered: Mar 2009
Location: Vancouver BC
Distribution: MX Linux
Posts: 159

Original Poster
Rep: Reputation: 22
I'm sure that is the answer since I was switching back and forth between the two laptops. Details are important.
 
Old 03-30-2019, 05:28 PM   #26
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
No problem. I was just trying to figure out how it happened.

Of interest to me, but I didn't mention it, is that the mount command shows your external HDD to have been mounted with a stripe parameter. I've never seen that before while using Mint and I thought it was usually used for a device that is part of a RAID array. If you have problems with that device, or you are just very inquisitive, you might want to start a thread to ask about that. It's probably nothing. Perhaps it is an MX thing?
 
Old 03-30-2019, 06:43 PM   #27
DanceMan
Member
 
Registered: Mar 2009
Location: Vancouver BC
Distribution: MX Linux
Posts: 159

Original Poster
Rep: Reputation: 22
I checked and the case on the username was indeed different between the two laptops.

The procedure used was a new unused Seagate 4T usb hdd, using Gparted, deleted the factory (Windows NTFS) partitions, then formatted with ext4, all done using Gparted (with GUI.) I later found instructions on dealing with the root issue while formatting that I now cannot seem to find again.

Checking in MX linux I could transfer files, but only by clicking on "open as root" in the Thunar menu. This is dangerous so I still need to find a solution. More searching has revealed that MX/antiX is set up to not like "sudo". I need to do more reading, but the command may be su or sux.
 
Old 03-30-2019, 07:30 PM   #28
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
you might want to run chown on the partition, not the dir, if that is what you did.
 
Old 03-30-2019, 07:38 PM   #29
DanceMan
Member
 
Registered: Mar 2009
Location: Vancouver BC
Distribution: MX Linux
Posts: 159

Original Poster
Rep: Reputation: 22
There is only one partition on the drive, not sure how I would differentiate that in the command line.
 
Old 03-30-2019, 07:43 PM   #30
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by BW-userx View Post
you might want to run chown on the partition, not the dir, if that is what you did.
The chown was done recursively on the root filesystem on the device's single partition. All should be good.
 
  


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] Time taken to copy data from PC to External USB HDD and External USB HDD to PC will same? jegadezz Linux - Newbie 3 11-14-2017 09:22 AM
Run customised HDD driver for external HDD while generic HDD driver for bootable purpose sonia49 Linux - Newbie 1 09-28-2016 08:52 PM
[SOLVED] Permissions Permissions Permissions! makem Linux - Newbie 13 07-30-2015 11:54 AM
[SOLVED] filesystem permissions question - making so user can't change permissions? c0pe Linux - Security 4 07-12-2010 09:06 AM
Change HDD rw permissions from terminal? callasabra Fedora 3 07-06-2009 07:20 PM

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

All times are GMT -5. The time now is 06:39 PM.

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