Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I try mounting a USB memory stick to a new folder, I get the notice that it will be mounted in read only. If I try to chmod it to writable I get the permission denied notice. It makes no difference is I make the folder where this USB stick is to be mounted drwxrwxr-x and the files in that folder the same.
Thank you
Most people use FAT so a USB stick is cross-compatible with multiple operating systems (proprietary or not). You may have to move the data off the stick (copy, back it up), format the stick, then move the data back on to it. If you still have problems after that, then you are doing something wrong, possibly your user is not set to access some external data sources (optical media, etc), you may want to check in to that too. You didn't give much detail so I had to cover everything I could think of.
Edit: Have you tried opening the 'USB folder' as root? Possibly start your file manager as root, then see how it behaves. Just another suggestion.
Most people use FAT so a USB stick is cross-compatible with multiple operating systems (proprietary or not). You may have to move the data off the stick (copy, back it up), format the stick, then move the data back on to it. If you still have problems after that, then you are doing something wrong, possibly your user is not set to access some external data sources (optical media, etc), you may want to check in to that too. You didn't give much detail so I had to cover everything I could think of.
Edit: Have you tried opening the 'USB folder' as root? Possibly start your file manager as root, then see how it behaves. Just another suggestion.
I can sudo write new file to the stick but I cannot see any of the files that were on the stick before I mounted it. That is really what I want to see. When I umount the stick and look at the property on a Window machine, I see that the file system is Fat32. Is this a problem? You mention most people use FAT. Is Fat32 the same? I am very new to all this. I am working from the command line and do not have access to GUI. I am running Raspian on a Raspberry pi. What else would you like to know. Please tell me if I am in the wrong Forum.
Thank you
No no, you are in the right place, but your latest post provides much more information and a new can of worms, lol. The command line is relatively the same no matter what hardware or distro you use. FAT32 is the common file system for USB sticks, but I don't believe is supports permission bits (with the exception of pre-set attribute files like read-only and locked). What it looks like you need to do is learn the proper/exact command line string to mount the stick, then learn the command to browse the files page by page in the CL. You may also might want to try changing the attributes (if any) in Windows and then try again. Read only just prevents files from being altered, accidentally or maliciously.
I would love to help you with the CL file browsing commands but everybody's setup is different, for that you might want to talk to the same distro users/Raspian users.
Linux file systems and NTFS, etc, support USER permission bits. I have a storage drive that is purposely NTFS in case I have to read it from a Windows machine in an emergency (there is no Windows in my house except the glass ones that keep out the weather, lol), the two distros I run on the same machine have different default user numbers (one is 500 and the other is 1000), so I purposely have the fstab file (file system table) in both distros auto-mount the storage drive as rwrwrw (no restrictions for anybody, this is my choice, I am not recommending it). So if I want to swap a file between the distros, I just copy it to that storage drive from the booted distro, boot in to the other distro and use the file without any user 500/1000 issues. I'm getting carried away, just trying to give you an idea how permissions work and how strict and finicky operating systems can be with them.
Since you have a windows filesystem (FAT32) on the drive, can you see the files you want when you boot into windows?
What was on the stick before, was it just data files/directories?
What exactly is the message you get, is there any info why it is mounted ro?
mount: warning: /mnt/usbstick seems to be mounted read-only When I try cd into the usbstick directory, I get -bash: cd: usbstick: permission denied.
Thank you
Since you have a windows filesystem (FAT32) on the drive, can you see the files you want when you boot into windows?
What was on the stick before, was it just data files/directories?
Yes I can see the files on my window system. The files are mostly jpep pictures some in directories.
Where is the mount point? If it is outside your /home/user directory, you need to mount as rooot (using sudo).
What is the exact command you use to mount it?
Where is the mount point? If it is outside your /home/user directory, you need to mount as rooot (using sudo).
What is the exact command you use to mount it?
Yesterday 07:27 PM
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.