LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 04-02-2006, 02:32 PM   #1
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Rep: Reputation: 30
Question Mount, READ and WRITE reiserfs and ext3 partitions


I have been unsuccessful in getting fstab to load, amd make the other linux partitions writable.
The closest reference I could get to what I needed to do was here http://www.tuxfiles.org/linuxhelp/fstab.html

but would prefer some specific instructions on getting my hda6 reiserfs and hda7 ext3 partions writable.

Cuurent fstab looka like this for hda6 and hda7:
Code:
/dev/hda6       /media/hda6     reiserfs defaults        0       2
/dev/hda7       /media/hda7     ext3  defaults        0       2
In both the cases I am able to read but not write. I am in ubuntu.

Can anyone help?

many thanks
Smiley
 
Old 04-02-2006, 02:45 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
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:
Code:
chown -R smiley:users /media/hda6
chmod -R ug+w /media/hda6
I don't have a spare partition to test this at the moment - so back up first if you have a complicated ownership/permissions structure on those drives...
 
Old 04-02-2006, 04:19 PM   #3
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
sorry how do I check the ownership/permissions structure on those drives? I can them post this here and we ca take it from there?

Thanks Steve,
 
Old 04-02-2006, 04:30 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Open a terminal window and type ls -ld /media/hda6 /media/hda7 - that should do it. The other commands are also for a terminal window.
 
Old 04-02-2006, 04:44 PM   #5
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
Let's start with the hda6 drive reiserfs ofrmat (I have ext3 on another machine so am unable to chekc that right now)Here is the output. Thanks

Code:
drwxr-xr-x 23 root root 688 2006-03-30 12:19 /media/hda6
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,
Smiley

Last edited by smiley_lauf; 04-02-2006 at 04:48 PM.
 
Old 04-02-2006, 06:13 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
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.
 
Old 04-02-2006, 06:32 PM   #7
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
the | more option creates heaps of output, which part of the output shoudl I show you? Sorry, I am being very slow here?
 
Old 04-02-2006, 06:58 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
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:
Code:
chown -R smiley:users /media/hda6
chmod -R ug+w /media/hda6
chown -R smiley:users /media/hda7
chmod -R ug+w /media/hda7
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
 
Old 04-02-2006, 07:32 PM   #9
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
Thanks, I am afraid they are system files (another linux OS), so I guess i am stuffed?? Can we not specify which directory on the partition say /home/smiley, ?

thanks,
 
Old 04-02-2006, 07:41 PM   #10
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Yep, you can certainly do that - if you use something like:
Code:
chown -R smiley:users /media/hda6/home/smiley
chmod -R ug+w /media/hda6/home/smiley
It should work just fine.
 
Old 04-02-2006, 08:08 PM   #11
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
ok, I will give it a tryright now, and report back asap
 
Old 04-02-2006, 08:12 PM   #12
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
Code:
chown: `smiley:users': invalid user
and I am sure of the spelling and case sensitivity. So what am I not doing right?
 
Old 04-02-2006, 08:36 PM   #13
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
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:
Code:
chown -R smiley /media/hda6/home/smiley
 
Old 04-02-2006, 08:56 PM   #14
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Original Poster
Rep: Reputation: 30
Code:
$ sudo chown -R smiley /media/hda6/home/smiley
chown: `smiley': invalid user
Sorry no luck.
 
Old 04-02-2006, 09:43 PM   #15
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
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:
Code:
chown -Rc $(grep smiley /etc/passwd | cut -d: -f1) /media/hda6/home/smiley
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Windows read ext3 partitions? mcah5 Linux - Newbie 15 02-07-2007 05:22 PM
ReiserFS and LILO read-write kule Slackware 3 07-12-2004 06:58 AM
Read/Write access ext3 partition st00 *BSD 5 06-28-2004 08:46 PM
Cant write or read ext3 partitions?!?!?! wasabi Linux - General 9 06-17-2004 07:07 AM
Trouble bootine SuSE 8.2 with ReiserFS in Read/Write mode alan8373 Linux - General 2 03-07-2004 12:09 AM


All times are GMT -5. The time now is 04:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration