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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-30-2003, 12:30 PM
|
#1
|
Member
Registered: May 2003
Posts: 49
Rep:
|
move /tmp
I have a my / partition which is nearly full /opt is also on the same partition and is occupying almost 50% of /
Can I move /opt to a second hard disk (with dd or cp) and then add an entry in /etc/fstab so that it looks like
LABEL=/ / ext3 auto 11
LABEL=/opt /opt ext3 auto 11
and mtab looks like
/dev/hda6 / ext3 rw 0 0
/dev/hdb1 /opt ext3 rw 0 0
does this look right?
|
|
|
06-30-2003, 12:48 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well mtab won't loko like anything, as you shouldn't edit it yourself. best way to move the /opt branch is probably...
mkdir /mnt/opt
find -xdev /opt | cpio -pvd /mnt
as this will take care of symlinks and such like.
|
|
|
06-30-2003, 02:03 PM
|
#3
|
Member
Registered: May 2003
Posts: 49
Original Poster
Rep:
|
But then /opt becomes /mnt/opt
What happens to all my paths (exports) do I have to change them to /mnt/opt
I wanted to move the filesystem so that it still has the /opt label
|
|
|
06-30-2003, 02:22 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
hehe, i missed the middle line... that was clever...
mount /dev/hda6 /mnt/opt
where hda6 is the new opt partition. once it's copied you can then delete the contents of /opt and mount the partition there.
|
|
|
All times are GMT -5. The time now is 12:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|