LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-25-2007, 01:51 PM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
how to restore a mountpoint after partitioning?


Hi!

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?

thanks for any help.

Last edited by xpucto; 07-25-2007 at 02:05 PM.
 
Old 07-25-2007, 02:04 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
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.
 
Old 07-25-2007, 02:07 PM   #3
dam294
LQ Newbie
 
Registered: Jun 2007
Location: Atlanta GA
Posts: 1

Rep: Reputation: 0
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.
 
Old 07-25-2007, 02:38 PM   #4
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
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
....

Last edited by xpucto; 07-25-2007 at 02:50 PM.
 
Old 07-25-2007, 03:17 PM   #5
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Now it works again! I just made an update of KDE.

Quote:
Originally Posted by dam294

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?
 
Old 07-25-2007, 04:10 PM   #6
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
Starting with the new partition mounted on /opt and the fstab entry that mounts it there, as you originally described:
Code:
umount /opt
mv /opt /opt_orig
mkdir /opt
mount /opt
cp -a /opt_orig/* /opt
 
  


Reply



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
Mountpoint cthomas Linux - Networking 1 02-23-2006 02:28 PM
Formatting/partitioning my back up hard disk cmlal Linux - Newbie 10 11-08-2005 02:36 AM
Partition vs Mountpoint Dahak Linux - Newbie 7 01-11-2005 12:06 AM
Partitioning back to Windows libster Linux - Newbie 4 10-05-2003 01:03 PM
permissions problems on mountpoint Little devil Linux - General 2 06-24-2003 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 AM.

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
Open Source Consulting | Domain Registration