LinuxQuestions.org
Help answer threads with 0 replies.
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
  Search this Thread
Old 03-29-2005, 01:42 AM   #16
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30

Hey Guys, thanks for the help. It's much appreciated.

I've checked the /usr/usr possibility but that's not the case. The actual path is /usr/X11R6/lib. I used find to find the file and I navigated there. It is present, no doubt.

The fstab entry is very basic. I just changed the mount point from /mnt/hda6 to /usr. I left the rest unchanged. I'm at work at the moment, so I can't post the exact entry, but it's a reiserfs file system and is mounted at boot time. The entry is something like:

/dev/hda6 /usr reiserfs auto,users,exec 0 0

I've also checked /etc/ld.so.conf. There are about 6 entries in it and the 3rd or 4th one is /usr/X11R6/lib

I also noticed that there is a symlink to libX11.so.6. Could that be of any significance?

Any other suggestions? Will it help to copy /usr back to /? (Which I'd rather not do, of course.)

Thanks
Joe
 
Old 03-29-2005, 02:57 AM   #17
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
[oops, sorry, didn't mean to double post...]
 
Old 03-29-2005, 03:03 AM   #18
Orkie
Member
 
Registered: Mar 2005
Distribution: Breezy Badger
Posts: 248

Rep: Reputation: 30
Where is the symlink to the library located?
 
Old 03-29-2005, 08:54 AM   #19
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Orkie, in /usr/X11R6/lib I have the following:

lrwxrwxrwx 1 root root ... libX11.so -> libX11.so.6
lrwxrwxrwx 1 root root ... libX11.so.6 -> libX11.so.6.2
-rw-r--r--r 1 root root ... libX11.so.6.2

Hope that helps...

Cheers
Joe
 
Old 03-30-2005, 12:01 AM   #20
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
[kebump]

Seems like a simple symlink is not going to be the answer

I see two other possibilities (from a layman's view, that is):

1. Reinstall kdm. I suppose this will work, but it implies that everything else that is broken because of the /usr move will have to be installed. As far as possible, I'd like to avoid that.

2. Move /usr back to its original position. In the absence of a proper solution, I guess this one could work. And then I'd have to retry the move with varying parameters until it works.

I'd appreciate ideas and comments on the above, as well as proposals that will enable me to fix the problem.

Thanks
Joe
 
Old 03-30-2005, 01:30 AM   #21
Itzac
Member
 
Registered: Feb 2003
Distribution: VectorLinux 5.1
Posts: 116

Rep: Reputation: 15
At this point any damage done probably can't just be undone. If for some reason a file got deleted or its permissions were changed during the copy, simply copying them back won't fix that. You'll have to fix permission problems and such as you find them. Has anything else broken? If not, then it shouldn't take long to correct.

Also, the line in my fstab looks like:

/dev/hda4 /usr reiserfs defaults 1 2

You'd don't want it user because that means a regular user can mount and unmount it, which is redundant since it gets auto-mounted and only root can then unmount it. You also just don't want a regular user to be able to mount or unmount it.

Last edited by Itzac; 03-30-2005 at 01:31 AM.
 
Old 03-30-2005, 01:44 AM   #22
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Thanks for the bad news Itzac

Do you think it's a permissions problem? Or (and I'm just blue-skying here) could it be a problem with PATH?

What would you recommend as a next step? It looks more and more like I'll have to reinstall some packages - starting with kdm.
 
Old 03-30-2005, 02:30 AM   #23
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
Just a thought how about ldconfig? Since you moved it to a diff partition would that screw this all up? I mean it's worth a shot run ldconfig
 
Old 03-30-2005, 02:49 AM   #24
Orkie
Member
 
Registered: Mar 2005
Distribution: Breezy Badger
Posts: 248

Rep: Reputation: 30
What distro are are you running? If you can, it may be worth uninstalling X completely and re-installing it through their interface.

Before you do that though, chmod libX11.so.6.2 to 755. That could possibly fix it (that is what mine is set to).
 
Old 03-30-2005, 03:10 AM   #25
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
I haven't tried ldconfig - will do so when I get home. Ditto for changing libmod's permissions.

I'm running Knoppix 3.7 (kernel 2.4.26 (I think)), but I have no idea how to un- and reinstall X. Knoppix has a knoppix-install (or something like that) script which is used to install from the live cd onto a hard disk, but that does a complete install.

Anyway, I'll try the advice you guys have given above and report my success or failure.

Thanks for the help.

Cheers
Joe
 
Old 03-30-2005, 11:54 AM   #26
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Gents, I'm mildly freaked out here. I followed your good advice - rebooting between each application and it didn't work. So I started thinking about reinstalling. But, because I really don't want to reinstall, I decided to try and copy /usr back to / - y'know, the last-ditch, clutching-at-straws action.

And it worked.

And that's what's freaking me out. Why is it working? Please, can anybody shed some light or point me in the direction of an answer? Because I still want to move /usr away from / to it's own partition.

Thanks for all the help and effort thus far.

Cheers
Joe
 
Old 03-30-2005, 12:34 PM   #27
Itzac
Member
 
Registered: Feb 2003
Distribution: VectorLinux 5.1
Posts: 116

Rep: Reputation: 15
Well, I must say, that is the strangest behaviour I've ever heard of. Now, when I copied mine I used cp -pR. It was only when I was looking at the man page that I thought to myself I should also have used -P. Maybe I was wrong. The most important thing after making sure all files and links get copied correctly is making sure all the permissions and owners and such stay the same. So whether you use tar or cp, you still need to preserve permissions. The one thing I can think of is that the -P argument caused something funny to happen with symlinks.

If you try this again, I would suggest comparing the directories before deleting anything. Maybe pipe the output of ls -lr for /usr and /mnt/hda6 to files, then diff the files. You may need to run cut on the contents of each file because the modification times will differ and you don't care about that.

Also, did you try the change I suggested to your fstab? I know that with a vfat partition putting user as an option sets the owner of all the files in the partition to whichever user mounted it. It might goof things up with reiserfs too.

[Edit:]
In fact, reading over your last post again, I'm fairly certain it's the fstab entry that's the culprit. If copying everything back fixed all the problems you were having, then obviously everything was correctly copied both times. Unless you did change your fstab and remount the partition as root with the new options. In that case I'm just full of *&$@.

Last edited by Itzac; 03-30-2005 at 12:43 PM.
 
Old 03-30-2005, 01:05 PM   #28
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Hi Iztac

I'm pretty sure that I made the fstab change that you suggested and that it didn't make any difference. But I wouldn't swear to it in a court of law...

As for differences between before-cp and after-cp, here's what I have:
---- after-cp
saltheart@andelain:~$ ls -al /usr/X11R6/lib/libX11*
-rw-r--r-- 1 root root 1389904 Sep 28 2004 /usr/X11R6/lib/libX11.a
lrwxrwxrwx 1 root root 11 Mar 30 18:04 /usr/X11R6/lib/libX11.so -> libX11.so.6
lrwxrwxrwx 1 root root 13 Mar 30 18:04 /usr/X11R6/lib/libX11.so.6 -> libX11.so.6.2
-rwxr-xr-x 1 root root 813680 Sep 28 2004 /usr/X11R6/lib/libX11.so.6.2
---- before-cp
saltheart@andelain:~$ ls -al /mnt/hda6/X11R6/lib/libX11*
-rw-r--r-- 1 root root 1389904 Sep 28 2004 /mnt/hda6/X11R6/lib/libX11.a
lrwxrwxrwx 1 root root 11 Mar 28 18:22 /mnt/hda6/X11R6/lib/libX11.so -> libX11.so.6
lrwxrwxrwx 1 root root 13 Mar 28 18:22 /mnt/hda6/X11R6/lib/libX11.so.6 -> libX11.so.6.2
-rwxr-xr-x 1 root root 813680 Sep 28 2004 /mnt/hda6/X11R6/lib/libX11.so.6.2
--------

They look pretty identical, eh?

What I'm gonna try next is to do the cp without the -P, like you suggested and see what happens. Stay tuned

Cheers
Joe
 
Old 03-30-2005, 01:13 PM   #29
prj
Member
 
Registered: Aug 2003
Location: South Wales
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177

Rep: Reputation: 30
Your last effort sounds closer to my own, but it has worked so far for me

Basic method:

Temporarily mount new partition.
Copy contents of directory (/home, /usr, /var etc or even lower in hiarachy) over to new partition, normally in my case using drag and drop in Konqueror.
Unmount new partition.
Change fstab to mount new partition wherever.
Reboot.

Check everything works.
If it doesn't work I know I can lose the new mount and revert to as before because I've not deleted anything.
Also if worst happens, I look in lost and found where the unattached data now resides.

As I said this has worked for me on many occasions, whether technically correct procedure or not.
 
Old 03-30-2005, 01:43 PM   #30
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Thanks for the tip, prj. Like most great ideas it is very obvious - in hindsight...

I think I'll attempt the new change & move tomorrow, after a good night's sleep

Cheers
Joe
 
  


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
root partition full laan97ac Mandriva 6 07-23-2007 02:09 PM
root partition full, not sure how; where are my files? lefty.crupps MEPIS 10 01-31-2006 06:21 PM
root ('/') partition is FULL inon^ Linux - Hardware 2 08-08-2005 02:19 PM
root partition shows 100% full in RH 7.2 dmcmurray5 Red Hat 2 05-18-2004 04:24 PM
Root partition dangerously full HomeBrewer Linux - Newbie 2 04-27-2004 06:32 AM


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

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