How to increase root space from another partition?


 
Thread Tools Search this Thread
Operating Systems Linux How to increase root space from another partition?
# 1  
Old 06-09-2013
How to increase root space from another partition?

Hi OS Experts

I would like to increase root partition from another partition so that I can save more documents in Home and Desktop. whether it is possible without formating root partition if so please explain

here is o/p of df -h

Code:
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda9       107G   98G  2.9G  98% /
udev            1.9G  4.0K  1.9G   1% /dev
tmpfs           776M  940K  775M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            1.9G  2.3M  1.9G   1% /run/shm
/dev/sda8       962M   68M  846M   8% /boot
/dev/sda10    80G   75G  770M 100% /Old_server
/dev/sdb1       932G  735G  198G  79% /media/Iomega
/dev/sda5       98G   80G   18G   82% /media/DATA_1

Here I am not using /dev/sda10 it contains some old files which I will delete and finally I would like to add 80GB from /dev/sda10 to /dev/sda9

Code:
OS    : Ubuntu 12.04 LTS 32-Bit
RAM   : 4GB
Swap  : 8GB


Please anyone help me
# 2  
Old 06-09-2013
It would be possible if you were using LVM. With your current setup it is impossible as far as I know.
# 3  
Old 06-09-2013
this is only possible on the fly with LVM's as the above post suggests.Your root partition should already be an Logical Volume, but there is no more space to increase the volume, so just add a disk, add it to the volume group of root and use lvextend to increase the lvm.
# 4  
Old 06-09-2013
It can be done, if the partition to be grown is followed, on-disk, by the partition to be subsumed.

resize2fs(8) - Linux man page

Regards,
Alister
# 5  
Old 06-12-2013
It is possibel and easy if you user Logical volumes .

Otherwise , we need to take back up of the root partition and reformat it.

And also ...Why do you increase the root partition ...It is wise to have lesser space in root and allow it not to increase ....
# 6  
Old 06-12-2013
Quote:
Originally Posted by jegaraman
It is possibel and easy if you user Logical volumes .

Otherwise , we need to take back up of the root partition and reformat it.
While it never hurts to have a backup, your categorical statement regarding reformatting is incorrect. ext2, ext3, ext4, xfs, btrfs can all be grown (even while mounted, with >= 2.6 kernels). Perhaps other filesystems can be grown as well, but I did not check.

Obviously, if the filesystem currently occupies the full partition, the partition itself needs to be redefined. However, this is not a destructive operation; it merely modifies a value in the partition table. The partition starting point must obviously be preserved.

Quote:
Originally Posted by jegaraman
And also ...Why do you increase the root partition ...It is wise to have lesser space in root and allow it not to increase ....
I agree with this, but it's not something with which I ever concern myself for personal systems. I prefer the simplicity of one large partition. For a production machine, however, it's useful to be able to tune filesystems to their function (small number of large files or large number of small files?) and to mount each with as many restrictions as possible (noexec, nosuid, nodev, etc).

Regards,
Alister

Last edited by alister; 06-12-2013 at 01:54 PM..
# 7  
Old 06-12-2013
Quote:
Originally Posted by alister
I agree with this, but it's not something with which I ever concern myself for personal systems.
I think it's especially vital for personal systems. You don't need 5 little fiddly partitions, but having just two can save you a lot of trouble. If your machine gets hard powered off or crashes for whatever reason, disk corruption tends to land wherever it's busy writing. You wouldn't let that happen much to a production machine but it happens to a personal computer a lot.

Separate root means it can begin booting, see that /home needs fsck-ing and do so and get on with its business.

All one glob means kernel panic, you need a recovery CD to fix it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Listing files/space used on root partition

For instance, root partition is full so I don't need to know about /ABC/XYZ when /ABC/XYZ is a separate mount point. (But /ABC isnt). Can I run a du command or similar and just look at contents effecting the space on that mount point (/)? (2 Replies)
Discussion started by: psychocandy
2 Replies

2. Solaris

How to use space in /tmp to increase root?

Hello All, I have solaris server running, uname -a SunOS host 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-280R Filesystem Size Used Available Capacity Mounted on /dev/md/dsk/d0 9.8G 8.7G 1.0G 90% / /dev/dsk/c1t1d0s3 4.3G 7.7M 4.2G ... (17 Replies)
Discussion started by: gull05
17 Replies

3. Solaris

Increase the / partition

Hi all im new to solaris and i got the task to increase the size of the / partition. its solaris 9 update6 running in a vmware esxi. i already added space on the VM, when im trying the "growfs" command im gettings error. see attached picture: http://i.imgur.com/9ywWLNN.png thanks for... (5 Replies)
Discussion started by: guy3145
5 Replies

4. Red Hat

increase root partition

i am using redhat 5.4 and my root size shows 98 %, how can i increase root size # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 77G 16G 75G 98% / /dev/sda1 2.4G 82M 2.2G 4% /boot tmpfs 3.8G 0 3.8G 0%... (8 Replies)
Discussion started by: reply.ravi
8 Replies

5. Red Hat

Increase root partition in LVM

I have a RHEL6 guest running on vmware esx server and the root disk size is 30G and i increased the disk size and create another partition /dev/sda3 but i do not know how to increase the size of the VG and then intrun LV .. can anyone help me on this . fdisk -l /dev/sda Disk /dev/sda:... (1 Reply)
Discussion started by: fugitive
1 Replies

6. Solaris

Increase root partition by moving starting cylinder

I am trying to expand the root partition on Solaris 10. I can expand root partition using format/partition command, but usually increasing cylinders on partition is done on back end. In this case I would have to expand from the front end following the table below, meaning I would have to move the... (12 Replies)
Discussion started by: mjaminal
12 Replies

7. Linux

shrinking root partition and using free space to create a block device

We are intending to protect a set of user specified files using LVM mirroring where the protected space on which the user files are stored is mirrored on an LV on a different disk. Our problem is that for a user with a custom layout has installed linux with 2 partitons for swap and / and there is... (0 Replies)
Discussion started by: kickdgrass
0 Replies

8. Solaris

how to increase size of the root partition

Hi we have a sunfire v880 server . we have a problem with root partion it showing 90% full. so anyone can help me how to increase the size of that partion. NOTE: It is not in veritas & SVM control. Regards prakash (6 Replies)
Discussion started by: pshelke
6 Replies

9. Shell Programming and Scripting

Disk space for root partition

Hello, I am trying to monitor disk space for each node on the machine. I am able to get all individual nodes but for the '/' node. For example: df -k: bash-2.05b# df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/xxx 4127108 2415340 1502120 62% / /dev/yyy ... (3 Replies)
Discussion started by: chiru_h
3 Replies

10. Filesystems, Disks and Memory

Ran out of space on /dev/root partition

hi, I have a SCO unix server which has a 36gb hard drive, but the IT company who supplied it assigned 1gb to /dev/root, 15mb to /dev/boot and 33gb to /dev/u. The /dev/root partition is now full, is there a way I can use the 33gb assigned to /dev/u without loosing any data, preferably... (2 Replies)
Discussion started by: Martyn
2 Replies
Login or Register to Ask a Question