Solved

Upgrading RedHat 6.0 -> 7.2: /usr too small

Posted on 2002-07-15
4
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

733 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