/home partition read-only

Questions about Grub, the liveCD and the installer
Forum rules
Before you post please read how to get help

/home partition read-only

Postby dupie on Sat Nov 12, 2011 6:33 pm

Whenever I boot my system, I find the /home dir (which is its own partition) is read-only.
Upon entering "mount":
Code: Select all
/dev/sda2 on /home type ext2 (rw,errors=remount-ro)

My friend, who has experience in UNIX, tells me this is caused by an unclean shutdown, but could provide no further instruction.
How can I make my /home not mount as read-only? I would be much obliged to whomever can help me with this issue.
dupie
Level 1
Level 1
 
Posts: 8
Joined: Fri Jul 15, 2011 1:52 am

Linux Mint is funded by ads and donations.
 

Re: /home partition read-only

Postby xenopeek on Sun Nov 13, 2011 8:06 am

This is correct. /home folder is read-only and can only be written to by root. Your /home/username folder should be both readable and writable by you. Please check with:
Code: Select all
ls -ld /home

That you get an output like (the parts in red should match):
drwxr-xr-x 4 root root 4096 2011-07-03 06:25 /home

And also check with:
Code: Select all
ls -ld ~

That you get an output like (the parts in red should match, but have your username instead):
drwx------ 56 vincent vincent 12288 2011-11-13 10:02 /home/vincent

If all matches, nothing is wrong. You only have write permission on your own home folder, not on anything else, and that is how it should be.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15276
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: /home partition read-only

Postby dupie on Sun Nov 13, 2011 12:54 pm

Vincent Vermeulen wrote:This is correct. /home folder is read-only and can only be written to by root. Your /home/username folder should be both readable and writable by you. Please check with:
Code: Select all
ls -ld /home

That you get an output like (the parts in red should match):
drwxr-xr-x 4 root root 4096 2011-07-03 06:25 /home

And also check with:
Code: Select all
ls -ld ~

That you get an output like (the parts in red should match, but have your username instead):
drwx------ 56 vincent vincent 12288 2011-11-13 10:02 /home/vincent

If all matches, nothing is wrong. You only have write permission on your own home folder, not on anything else, and that is how it should be.

I didn't know this was how it was meant to be, but let me correct myself.
My /home/dupie directory is read-only. I can view, but not edit or add to my documents, pictures, music, etc.
dupie
Level 1
Level 1
 
Posts: 8
Joined: Fri Jul 15, 2011 1:52 am

Re: /home partition read-only

Postby rekik on Sun Nov 13, 2011 1:38 pm

Is your Home partition automounted on boot ? If so, providing /etc/fstab content will help
rekik
Level 3
Level 3
 
Posts: 198
Joined: Wed May 06, 2009 5:24 pm

Re: /home partition read-only

Postby xenopeek on Sun Nov 13, 2011 3:58 pm

Please also post:
Code: Select all
ls -ld /home
ls -la ~

That way we can see how everything is set with regards to permissions. Don't forget to include "cat /etc/fstab", as there may be something wrong there.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15276
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 5 guests