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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I use Suse 9.0 and add a new HD today. suse recognized it immediatly and ask if I wanted to partition it. so I've partitioned the new HD, but made the mistake to mount /opt on this new HD. Now all what was in /opt (KDE for example) is gone! I know: very stupid of me.
1)Is there a possibility to get my moutpoint for /opt back? If yes how?
when I search for example for files (like startkde) that used to be under /opt, I get as result
Quote:
/proc/2176/fd : file or directory not found
.
2) if there is no possibility to get my mountpoint back, what would you advice me to do? Should I for example deinstall KDE, and then reinstall it?
Now all what was in /opt (KDE for example) is gone! I know: very stupid of me.
No, it isn't gone. It's still on the hard drive under the root of the file system. You've mounted another partition over it, so you can't see it.
To prove my claim, boot a livecd and mount the original partition, but not the new partition. Then, from a console, or gui filemanager, look at /opt. You will see it all there.
If the new harddive partition is listed in /etc/fstab with mount point /opt, delete or comment out the line, save the file, and reboot.
If I understand you correctly, you created a new partition and mounted it on /opt?? I assume your old /opt was just a directory off of / ?
If that is the case, more than likely you have just mounted your new partition over you existing opt directory. Try unmounting the new partition. All of your programs etc. should still be there.
If you want you can then mount your new partition to a different mount mount, copy the contents of /opt to the new partition then unmount the new partition and mount it back up to /opt.
thank you very much! And commanted /opt and got the files back.
still and I reboot, KDE tries to start but don't. I don't understand why.
when I try to start it from the command line, I get error messages like
Quote:
xsetroot: unable to open display ''
xset: unable to open display ''
ksplash: error while loading shared librairies: libkdeui.so.4: cannot open shared object file: no such file or directory
....
If you want you can then mount your new partition to a different mount mount, copy the contents of /opt to the new partition then unmount the new partition and mount it back up to /opt.
I'm not sure to understand...
now I have /opt that is under /. if I want its content in the new partition /opt (that I commented in fstab), what should I exactly do?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.