Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
This is why I hate making so many partitions on a system... just look at /opt. You have 1.7 gig allocated to /opt and only 20k in use. The ONLY reason to make seperate partitions is if you want to limit how much space can be used by that mount point (unless you are making an NFS server where mount points give you more security), otherwise you get yourself into these types of situations. You would have been much better off just having /, /tmp, /usr, and /home as partitions.
The only utility I know of that will let you do this is Partition Magic. I believe it works with linux partitions now.
To do this manually will be a bit difficult, but it can be done.
If this were my system I would think about swapping the /opt and /home partitions. Here's how I would do that...
1) Shutdown to single user mode, or boot to failsafe/maintenance mode.
2) copy all the data in /home to /home.old (on the root partiton):
mkdir /home.old
cd /home.old
tar -cf - -C /home . | tar -xvf -
3) copy all the data in /opt to /opt.old:
mkdir /opt.old
cd /opt.old
tar -cf - -C /opt . | tar -xvf -
4) unmount /home and /opt
5) edit /etc/fstab and switch the mount points for /home and /opt
6) remount /home and /opt
7) remove all the data on both partitions
8) restore the data
cd /home
tar -cf - -C /home.old . | tar -xvf -
cd /opt
tar -cf - -C /opt.old . | tar -xvf -
Aside from Partition Magic, you may rather look into using GNU Parted. If it wasn't installed during the initial setup, or you are not sure, it's on one of the three discs. Just install from there and read up on how to resize with it. It's a good little utility, you just need to be carefull as with any parting and make backups that you can just rename if you lose a part. etc...
The only way to do that is to use a partitioning utility like fdisk or harddrake, which will destroy all the data on those partitons. It won't work though if the 2 partitons aren't right together on the disk. Looking at your device file numbers, it looks like /home and /tmp are probably better candidates for merging. You can still use the procedure above to copy and restore the data though.
I think at this point, Partition Magic Pro would be a worthwhile investment... it can do everything you want and not affect the data.
Server A /opt which contains our Lotus Notes server is going to be kill off. I have already setup a webmail (Hotmail like) on Server B which stores all the mails on the /home.
I am goin to resize Server A /opt and distribute abt 2Gb to Server A /home and the rest to Server B /home by mount on to Server B file system. It complicated here...: )
I believe you can make a boot floppy with PM that will run a text based version of the software. Just bring that floppy to your Linux box and boot from it. Should be pretty simple.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.