Solved

Upgrading RedHat 6.0 -> 7.2: /usr too small

Posted on 2002-07-15
4
294 Views
Last Modified: 2013-12-15
I want to upgrade from RedHat 6.0 to 7.2, but it appears that my /usr is about 700 MB too small.

Is there a way to extend /usr without reformatting the whole disk?

My computer is a dual-boot Linux/Windows, and about 6 GB are occupied by FAT partitions. I am ready to sacrifice the Windows option and to reformat the FAT partitions to Linux. But would I be able to add that space to an existing /usr partition?
0
Comment
Question by:karnovsk
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 7156927
You can't add space to the existing file system that /usr is occupying, but you could make a new file system out of part of the space that windows is using and move the contents of /usr there. Then change the mount point for /usr to the new partition and you'd have the space you need.
0
 

Author Comment

by:karnovsk
ID: 7157007
Thank you. How do I do it?
0
 
LVL 40

Accepted Solution

by:
jlevie earned 150 total points
ID: 7161000
The process goes something like this:

1) Using your favorite partition tool (fdisk, parted, Partition Magic, etc) create a Linux partition of whatever size desired out of the space windows is using. You can use 'fdisk -l /dev/hda' to see what the device node name for the new partition is, e.g. hda6, hda7, etc.

2) From Linux make a file system on the new partition with mkfs (e.g., mkfs /dev/hda7).

3) Mount the "new /usr" FS on a temporary mount point and copy the existing /usr contents to the new file system, like:

   # mount /dev/hda7 /mnt
   # cd /mnt
   # dump 0af - /usr | restore rvf -

4) Then edit /etc/fstab to reflect where /usr has moved to and boot the box.

It is best to do moving of the data in single user mode, or even better from a boot off of one of the floppy or CD bootable 'tiny' Linux packages.
0
 

Author Comment

by:karnovsk
ID: 7161284
Thank you. Actually, I have already done using GNU Parted.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now