Re: [redhat] How to move/combine /usr /var /home to / partition ?
- On 12/19/2012 4:53 PM, Jim Thisdale wrote:
>This is more of a fun exercize, then something that must be done....
> Fedora 14
> hp laptop
> small 80GB drive
> When I did this install years ago, I was advised to make separate
> partitions for things. Now I've run out of space on some of them.
> I'd like to move the data/functionality of the /var, /usr, /home
> partitions back to the / partition. Then I can delete those partitions
> and resize the / partition, thus gaining some useable space for now.
As I mentioned, use df -k and tell us which filesystems you want to
resize and why.
you must have enough room on sda to hold the whole filesystem you want
again, taring up the filesystems one at a time, tar -cvf home.tar /home
unmount the filesystem
copy the /etc/fstab to a safe place /root/fstab.orig , edit /etc/fstab
comment oout the mounted fs
copy the tar file to the mount point (make sure you are untaring
correctly so you dont muck it up)
tar -xvf home.tar
ls -l /home (look for files in the directory and subdirectories
reboot and see if it worked correctly. Now you can recover the sd6 space
I would not repeat this for /etc, unless you gave it 10gb and you need
to recover it. This and /usr can break your os if you muck it up.
>[Non-text portions of this message have been removed]
> Using gparted is not a problem.
> I need to know what I need to do so the existing fc14 knows that:
> /etc will be on say: sda1/etc instead of sda5
> /usr will be on say: sda1/usr instead of sda4
> /home will be on say: sda1/home instead of sda6
> /tmp will be on say: sda/tmp instead of sda3
> Those might not be the actual current assignments, but you get the idea.
> Messages in this topic
> Recent Activity:
> * New Members
> Visit Your Group
> Yahoo! Groups
> Switch to: Text-Only
> Daily Digest
> . Unsubscribe
> <mailto:email@example.com?subject=Unsubscribe> .