LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to increase the space for linux ?? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-increase-the-space-for-linux-94054/)

bobby2k3 09-18-2003 01:09 AM

how to increase the space for linux ??
 
i have installed windows XP & redhat linux 9.0 on my PC..

During linux installation i have allocated some 6 GB for it.( mounted on / ) .. now i feel that i need to allocate more space for linux... can i do this ??? if so please explain me how to do it ..

NOTE; I have much free space left still on my PC..

ivanatora 09-18-2003 04:18 AM

Woww.. 6GBs.. That's a lot for linux system. During all my experience with linux I haven't need more than 2-3GBs..
Are you sure you want more space? Linux can read and write FAT/FAT32 file systems. You can store your additional stuff on the windows drive.

yapp 09-18-2003 04:47 AM

If you really have to... because 6gb is a lot of programs. (data is a different story perhaps :D)

- You could use a partition manager such as "Partition Magic" under Windows XP, to resize an NTFS or FAT partition.
- If you manage to get some free space at the end of the disk, convert it into an Linux partition, and mount it as /usr/ or /home/ ;) ...you'll spread your Linux installation across several partitions and disk drives. :)

Resizing ext2/3 is a bit tricky, but it can be done.
  • umount the file system. (perhaps boot from a rescue disk)
  • First resize the file system, then modify the partition boundaries.
  • Use resize2fs to resize the partition. If you don't supply the new size, the 'file system' will be resized to the size of the partition boundaries. (ie. maximize)
  • Then, resize the partition boundaries. I use cfdisk for this, but fdisk could do the job too (fdisk -l gives you good pointers) Resizing can be done by (I didn't believe it) re-creating a partition with a different size, at _exactly_ the same start-point. This scared me a lot, but I've figured out a simple way, and experimented first with some empty space. If you're using cfdisk, I'd suggest to start partitioning any leading free-space first ;)
  • btw, "e2fsck -f" complains if your partition boundary is smaller then the actual file system, so not everything is lost ;)

edit: sorry for not noticing this is the newbie forum :o I hope this help doesn't complicate stuff :-/ Yet however, it's great to try completely new things :) playing arround, learning things...

bobby2k3 09-18-2003 01:43 PM

I've done that using partition magic and moved the linux partition
now my kernel is not able to detect the boot image vmlinuz.
I use RH9 .Now i've lost all the data.Can someone plz help me .

Help needed desperately.

yapp 09-19-2003 05:42 AM

I didn't even know parition magic could move the parition :-| (mine (7) refused anything for ext3) What version did you use?

If I'm not mistaken, you need to boot from a rescue disk, and run lilo again. I'm not sure how lilo works, but I can image it has some pointers to specific sectors of your disk. (because your computer doesn't know _anything_ about file structures at boot time)


All times are GMT -5. The time now is 10:22 PM.