LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 05-12-2006, 03:12 PM   #1
Lordandmaker
Member
 
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Rep: Reputation: 38
No write access to home directory after a fresh install


I've just installed (or tried to) Kubuntu 5.10, downloaded off their site, onto a new machine (X86-64).

I've changed distros from Mandriva, so i wanted it to just mount my old home directory as my new one. But it will only mount it as read-only, so I can't get KDE up. If i try
Code:
sudo startx
it still won't read the partition. I have got KDE up logged in as root once, but I don't remember how, and can't seem to manage it again.

My fstab looks like this:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda6       /home           ext3    defaults,rw       0       2
/dev/hda1       /media/windows    ntfs    defaults        0       0
/dev/sda5       none            swap    sw              0       0
/dev/hdd        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdc        /media/cdrom1   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
I put the 'rw' on the /dev/sda6 line, but it didn't make much difference.

FYI, there is one HDD with Windows on it, and another split into three partitions (/, swap, /home).

Any ideas on how to get KDE up?
 
Old 05-12-2006, 03:32 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I'm guessing that the problem is that the UID of the /home partition is different than the new Ubuntu install. Not sure what Mandriva uses for their default UID's, but Ubuntu I believe starts at 1000 (i.e. the user you created during install probably has UID=1000). I think the way around this is to make it defaults,UID=1000,GID=1000(?). No expert, but I feel like I had this problem once many moons ago...

Or maybe you can sudo chown username:groupname /home so that it changes to your new user...
 
Old 05-13-2006, 05:09 AM   #3
starkes
LQ Newbie
 
Registered: May 2006
Posts: 14

Rep: Reputation: 0
fix

on the line for your home folder, replace "defaults,rw" with "iocharset=utf8,umask=000"

no quotations though, of course, and this should work i think. i just did a similar thing on 2 ubuntu systems to fix permissions and it worked
 
Old 05-13-2006, 05:49 PM   #4
Lordandmaker
Member
 
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Original Poster
Rep: Reputation: 38
I fixed it in the end, not with either of those methods, though...

I tried appending uid=1000 and gid=1000, and neither worked, so i booted into Knoppix, and did
Code:
chown -R 1000 /dev/sda6
as root, and then it worked fine!

(except my sound problems in another thread)

Cheers!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't write to home directory error bond82 Mandriva 5 06-06-2007 02:11 PM
No write access to #home directory RichGags Linux - Newbie 9 01-24-2006 04:21 AM
Could not write to my home directory comprookie2000 Linux - Newbie 19 05-11-2004 08:36 PM
Installed newer mandrake, but /home directory doesn't have write access anymore?!? repeater75 Mandriva 2 02-19-2004 08:48 PM
"No write access to $HOME directory" Arthaus Linux - Newbie 2 01-12-2004 07:22 PM


All times are GMT -5. The time now is 08:36 AM.

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