Solved

Upgrading RedHat 6.0 -> 7.2: /usr too small

Posted on 2002-07-15
4
292 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
Comment Utility
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
Comment Utility
Thank you. How do I do it?
0
 
LVL 40

Accepted Solution

by:
jlevie earned 150 total points
Comment Utility
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
Comment Utility
Thank you. Actually, I have already done using GNU Parted.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

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). …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 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

6 Experts available now in Live!

Get 1:1 Help Now