LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-21-2003, 04:03 PM   #1
quantumechanix
Member
 
Registered: Jan 2003
Posts: 47

Rep: Reputation: 15
resizing linux partitions


i am following the book from linuxfromscratch.org to make my own linux installation disk. to do this, the authors recommend doing everything in a separate partition, named, let's say "lfs". they suggest using cfdisk to create this partition from empty space. however, i have no unused space on my drives. the question is whether it is possible to resize my current linux partition without reinstalling.

i have a dual boot system: winxp(ntfs) on one hd (with shared fat32 part), rh9 on another hd. i have plenty of space on both drives within the partitions that i am not currently using, but as i said earlier this is not unallocated space.

any ideas/suggestions?
 
Old 09-21-2003, 04:50 PM   #2
Tesl
Member
 
Registered: Jun 2003
Location: Durham, UK
Distribution: Slackware 9, Mandrake 9.1
Posts: 163

Rep: Reputation: 30
you could look into Partition Magic, and resize the partitions whilst your in XP. Take a look at http://www.powerquest.com/partitionmagic/

If i were you instead of that id be tempted to try and find a cheap box for experimenting on, or maybe back up some of your data from either OS and reinstalling on less space. Thats just me though, but i think Partition Magic is actually very good software
 
Old 09-21-2003, 05:10 PM   #3
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
If you have Partition Magic then all your Windows partitions are fair game. If not then only the FAT32 and (I assume) ext2/ext3 partition are resizeable. Which one you choose to resize is your own choice however the FAT32 partition is easier to resize.

FAT32:
-- run parted. If the drive is /dev/hda then run "parted /dev/hda"
-- type print - This will show you your current partition table.
-- type help resize - This will show you how to use the resize command to resize a partition
-- type resize partition_number start end as shown in help
-- type quit
-- reboot

ext2/ext3:
-- type df --block-size=4096 to see how large your filesystem is in blocks
-- type resize2fs device blocks where device is the device special file of the partition and blocks is the number from the last step.
-- run parted as with FAT32

P.S. For ReiserFS use the same procedure as for ext2/ext3 however you need to replace resize2fs with some command which I cannot for the life of me remember and it would be wise to check the block size with "stat -f /".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing Linux' partitions. naijin Linux - General 40 01-04-2004 03:33 PM
Resizing Linux Partitions Sociologo Linux - Software 2 10-28-2003 03:13 PM
resizing partitions in linux jimieee Linux - Software 1 09-03-2003 12:41 PM
REsizing the Linux partitions noname Linux - Software 9 08-01-2002 01:25 PM
Resizing Linux partitions/Mounts Dave Campbell Linux - General 14 06-25-2002 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:54 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