Increasing hard-disk space allocated to user
Hello,
I want to know how I can increase the hard-disk (storage space) space allocated to a user. I am using Redhat 9.0. I have free space (unformatted) on my hard-disk. Can I somehow format the space and use for the existing linux installation. :confused: I do not want to reinstall linux again. Thanks in advance. Devel. |
hi,
to edit/change the space allocated to a user use the command ´edquota´. pre-condition of course, quotas are set. to use available free space of ur hdd, make a partition with fdisk and format this new partition with mk2fs. |
Hello overlord73,
Thanks for your help. For the second query, can you kindly elaborate the procedure. :scratch: As the data on the existing is very critical at this point of time. And I want to allocate entire free space available to existing linux installation. Thanks again. Devel. |
hey guam,
as root do: -fdisk /dev/hda -m shows a little help ->p shows partitiontable ->c creates a new partition ->t edit the part.type ->w writes and exit before u could do a ´fdisk -l´ to list all existing partitions so far. after creating the partition, u can format it with mke2fs, for example: mke2fs -j /dev/hda5 for ext3 on /dev/hda5 |
Hello overlord73,
I successfully created a partition of the unused space of the hard-disk. But when I tried to format the new partition with mke2fs it gives following error. /dev/hda4: Not enough space to build proposed file system while setting up superblock. What is the fix for this? Am I doing something wrong? Devel |
what does /proc/partitions show?
are you sure you have created a logical part. inside the extended? but first..more simple ;-) ...have you rebooted? |
Yes, I rebooted the system. :)
Here is what /proc/partitions says: major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq 3 0 58615704 hda 48948 70957 956210 409350 293109 3561865 30841036 26944990 -10 12935437 26877808 3 1 10482381 hda1 48281 70492 950226 408010 292577 3555997 30789848 25979340 0 861870 26398210 3 2 20972857 hda2 7 29 72 70 0 0 0 0 0 70 70 3 3 1052257 hda3 623 41 5048 980 530 5868 51184 965090 0 550700 966070 3 4 1 hda4 0 0 0 0 0 0 0 0 0 0 0 ======================================================== The fdisk -l says: Disk /dev/hda: 60.0 GB, 60022480896 bytes 255 heads, 63 sectors/track, 7297 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 1305 10482381 83 Linux /dev/hda2 1306 3916 20972857+ 83 Linux /dev/hda3 3917 4047 1052257+ 82 Linux swap /dev/hda4 4048 7297 26105625 85 Linux extended [root@viper sbin]# =========================================================== And, finally mke2fs -j /dev/hda4 says: [root@viper sbin]# ./mke2fs -j /dev/hda4 mke2fs 1.32 (09-Nov-2002) /dev/hda4: Not enough space to build proposed filesystem while setting up superblock [root@viper sbin]# ============================================================ What do you suggest now? Humm..... I shall thank you later when it works....:D Devel |
Ok, the problem you have here is with the legacy size restriction of a HDD's superblock. There is only space to list four partitions, although there is a way to get around this. I see you created an extended partition using the rest of you HDD, this is good, now what you need to do is fire up fdisk again, and create a logical partition inside the extended partition. You can put as many logical partitions inside the extended one as you like, however, if you just want to use all the space, go ahead...
After you are done this, format the partition as described above (although you don't have to use ext3, you can use reiserfs of xfs if you like), then mount it somewhere in your current filesystem structure. /home would be good choice, but make sure to back-up your current /home first, so you can copy it over once your new partition is mounted. Update /etc/fstab and you should be good to go.... |
Hello bulliver,
Thanks for the reply. I did the steps as you mentioned. I can now mount the newly formatted space to /mnt/test (this is for testing only). The goal is to increase the available space to users. That is increasing the storage space currently allocated to /home. How can I add this additional space to the user? Actually, I did not understand why you suggested to mount the new partition to /home. Devel |
Quote:
so that´s why bulliver says: 1. backup /home, 2. mount new /"home-partition", 3. restore old home-data |
Hello,
Thanks a lot, overlord73 and bulliver. Devel. |
All times are GMT -5. The time now is 06:24 AM. |