Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Sorry Sir I was out of town for a week and did not find time to look up your answers.
It is right that a new bigger partiotion has to be made and the appropriate entry in the /etc/fstab has to be created. But how would you populate the new bigger /usr partition. Would a simple copy from the old (to be abandoned) /usr partition to the new one would do ?
Thanks once again for taking time to reply.
Prabhat Soni
Last edited by prabhatsoni; 03-07-2007 at 11:41 PM.
Sorry, I did not try it.
IN fact my hard disk had gone bust - it was an ancient piece. SO I had to buy a bew hard disk and re-install the system. ANd this time, being a little wiser (only a little :-)) I used LVM to avoid facing such situations in future.
In fact, my last query had academic implications only. May be this would help the posterity.
How would you go about using the live CD to initialise a new /usr partition. Woulod it be:
1) Boot from the live CD
2) Mount the old /usr (physical) partition on some other point (say /mnt/oldusr).
3) Mount the new and the bigger partition on say /mnt/newusr.
4) use cp command to copy tje contents of the old partition to new partition
Will that suffice or some other voodoo incantations would be required.
Yes, that's how you would do it. Of course, there is a fifth step to perform before rebooting: fstab needs to be pointed to the new partition or it will simply boot off the old usr partition again.
There may be some complications, though. I had my tmp and var partitions under / on openSuse 10.2, then decided to move both to a single shared partition (I couldn't assign an individual partition to each because of that irritating 15 partition limit on Sata disks; it's OK if the disk is small, but if it's a 250 or 500GB, you end up with lots of space that can only serve as a data partition). Anyway, everything seemed to be fine at first but then I noticed klogd was unable to write to /var/run/klogd.pid. After a day of searching, I discovered that this was caused by the security device AppArmor; I still don't quite understand but someone recently suggested that AppArmor may actually register where certain key applications reside on the disk; if you move them over to a different partition, it's self-evidently going to have some objections. In the end, it was easy to fix, though.
Of course, it's infinitely more convenient to provide for future needs by making partitions large enough while installing. But as long as you're careful and use cp -ax, there's a way out of cramped partitions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.