Solved

Upgrading RedHat 6.0 -> 7.2: /usr too small

Posted on 2002-07-15
4
296 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
High Bandwidth Usage 6 75
reset ubuntu password for root and admin after clearing it. 7 56
VMware Tools Install On Linux Problem 3 82
I NEED A "BARE" LINUX ... 9 56
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…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

809 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