Mount, READ and WRITE reiserfs and ext3 partitions
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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
If you look at your mount points you'll probably see ownership of root:root and permissions of drwxrwxr-x. Changing the ownership/permissions of the mount points before mounting won't work because when you mount the partitions, ownership will revert to root. The easiest way to make directories writable on the partitions is to change the ownership/permissions of the mount points or their top level directories after they are mounted.
For example, after mounting try the following, using a user:group from your system:
Is this a complicated o/p structure? if not can I go ahead and try the code you gave me above? How do I make this happen each time aI boot, I am assuming I have to do this each time after I boot???? I may be wrong. Once again, many thanks,
Last edited by smiley_lauf; 04-02-2006 at 05:48 PM.
Sorry, I should have shown that as ls -lR /media/hda6 /media/hda7 | more to display all of the files. Because the entries are in /etc/fstab the file systems should already be mounted. If that's the case, the ls command should show the info.
No problem - what I'm doing is trying to find out whether there is just one owner of the files on those partitions or whether there are many owners. If the file listings are showing the owner as root:root for everything then it's a reasonably simple situation.
Since your mount point is under media, I'm assuming that those are data files (documents, music, video etc.) and not system files (executables, libraries, etc.) so it won't be a problem to change the ownership to a user:group of your choosing. If they are system files (for another Linux distribution for example) DON'T DO THE FOLLOWING.
If the files are data files, you can run the chown and chmod commands from earlier. It's a one-off step that won't need to be repeated. Just make sure you use a user/group that exists on your system:
The risks here are:
- If the files are not data files and in fact belong to another Linux system, changing ownership/permissions can break the normal operation of that system and is very bad;
- If there are multiple owners of files (e.g. you own one directory, a friend owns another and the person who sold you the PC owns a third directory), that separation of ownership is lost and everything is owned by one person. This is inconvenient but only a "little" bad in the scheme of things
You'll need to run the command as root - possibly it doesn't like the ':users' part (although it shouldn't matter). Although you've probably done this, can you confirm the username with grep smiley /etc/passwd and then try:
It looks like a typo and that smiley doesn't exist in /etc/fstab. The way to confirm it is to combine the check for the username with the chown statement. If smiley exists in /etc/passwd the following will work: