LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2003, 01:09 AM   #1
bobby2k3
LQ Newbie
 
Registered: Sep 2003
Location: india
Posts: 5

Rep: Reputation: 0
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..
 
Old 09-18-2003, 04:18 AM   #2
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 32
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.
 
Old 09-18-2003, 04:47 AM   #3
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

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

- 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 I hope this help doesn't complicate stuff :-/ Yet however, it's great to try completely new things playing arround, learning things...

Last edited by yapp; 09-18-2003 at 04:55 AM.
 
Old 09-18-2003, 01:43 PM   #4
bobby2k3
LQ Newbie
 
Registered: Sep 2003
Location: india
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 09-19-2003, 05:42 AM   #5
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
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)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to increase the hard disk space of linux? hari78 Linux - Newbie 5 03-01-2005 05:09 AM
Space Increase webterractive Linux - Software 2 12-22-2004 09:42 AM
I want to increase my Linux partition.Should I take space from a Windows partition? PrinceBalak Linux - General 1 06-25-2004 05:44 PM
how to increase the space for linux ?? bobby2k3 Linux - Newbie 1 09-18-2003 06:57 AM
Increase Swap Space? star geezer Linux - Software 9 03-10-2003 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration