LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-10-2004, 02:06 AM   #1
RedRaven
Member
 
Registered: Sep 2004
Distribution: Debian 3.1
Posts: 71

Rep: Reputation: 15
Making the Fedora Partition larger


Hey Everyone,
Does anyone know how to make the fedora partition bigger, I am currently using FC2 and will be going to FC3 soon. Can I resize the Fedora partition or do I just have create more open space and format it to linux, and thereby create a second linux partition?
Thanks,
 
Old 11-10-2004, 03:17 AM   #2
six6
Member
 
Registered: Jun 2004
Location: In Adamantine Chains and penal Fire
Distribution: Debian Sarge & Ubuntu Breezy
Posts: 107

Rep: Reputation: 16
You can resize.

You'll have to use knoppix (or something similar) because you can't have the hard disk device mounted to resize it (in other words, you can't resize the disk when you're running Fedora off of it!). When you download and boot knoppix, use qtparted (it's straightforward).

Also, FC3 might give you the option to resize when you select "upgrade". Try that first.
 
Old 11-10-2004, 03:24 PM   #3
RedRaven
Member
 
Registered: Sep 2004
Distribution: Debian 3.1
Posts: 71

Original Poster
Rep: Reputation: 15
Would this automatically resize my windows partition or would I have to boot into windows and resize that way in order to make sure the resize is clean?
 
Old 11-10-2004, 04:44 PM   #4
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
Unless the knoppix team have applied some special patch I'm unaware of, qtparted cannot resize ext3 partitions, only reiser and ntfs (!)

http://qtparted.sourceforge.net/features.en.html

Samsara
 
Old 11-11-2004, 12:29 AM   #5
RedRaven
Member
 
Registered: Sep 2004
Distribution: Debian 3.1
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Samsara
Unless the knoppix team have applied some special patch I'm unaware of, qtparted cannot resize ext3 partitions, only reiser and ntfs (!)

http://qtparted.sourceforge.net/features.en.html

Samsara
I checked out the website, and what you said is true, so then how would i go about resizing the ext3 partition, could I use partition magic without damaging the Fedora system? Or does Fedora make its own partition resize tool? Basicly what I am trying to do is resize the linux partition and make it bigger, I never anticipated that I would get into linux and use it so much.
 
Old 11-11-2004, 09:23 PM   #6
jadupl2
LQ Newbie
 
Registered: Nov 2004
Posts: 12

Rep: Reputation: 0
Unhappy Enlarge ext3 filesystem

I have really sad that RedHat have not yet developed an utility to increase the size of an ext3 filesystem that is created in a LVM (Logical Volume).
I am a Sysadmin (AIX), moving to Some system to Linux.
On SuSE you can enlarge a filesystem while it is MOUNTED.
In a production this is really important.
Having to shut database down to increase the size of a Filesystem is a BIG OUTAGE.
When RedHat is going to understand that WE NEED to ENLARGE EXT3 FILESYSTEM WHILE THEY ARE MOUNTED ?
 
Old 11-12-2004, 01:03 PM   #7
RedRaven
Member
 
Registered: Sep 2004
Distribution: Debian 3.1
Posts: 71

Original Poster
Rep: Reputation: 15
Re: Enlarge ext3 filesystem

Quote:
Originally posted by jadupl2
I am a Sysadmin (AIX), moving to Some system to Linux.
Having to shut database down to increase the size of a Filesystem is a BIG OUTAGE.
When RedHat is going to understand that WE NEED to ENLARGE EXT3 FILESYSTEM WHILE THEY ARE MOUNTED ?
Ok so you can resize if the partition isnt mounted....how?
 
Old 11-12-2004, 01:08 PM   #8
jadupl2
LQ Newbie
 
Registered: Nov 2004
Posts: 12

Rep: Reputation: 0
Here how to expand a filesystem (logical volume) ext3 if it was created in a volume group using LVM

# lvextend -L+1G /dev/myvg/homevol
lvextend -- extending logical volume "/dev/myvg/homevol" to 13 GB
lvextend -- doing automatic backup of volume group "myvg"
lvextend -- logical volume "/dev/myvg/homevol" successfully extended

# umount /dev/myvg/homevol/dev/myvg/homevol
# resize2fs /dev/myvg/homevol
# mount /dev/myvg/homevol /home

Here you go !
 
Old 04-24-2005, 03:32 PM   #9
donv2
Member
 
Registered: Nov 2004
Location: Upper right corner of USA
Distribution: Ubuntu/Mint, unSLUng (NSLU2), Arch/PlugApps (Dockstar)
Posts: 50

Rep: Reputation: 15
Newbie assistance... not just larger but adding another?

Hi, I have a similar situation to that above, except I'd like to take a new 120GB disk that has a ~3GB FC3 install on it (transferred from an old disk using g4u) currently showing as:

Code:
[root@localhost ~]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       3193084   2929852    101032  97% /
/dev/hda1                97570     15494     77038  17% /boot
none                    127972         0    127972   0% /dev/shm
[root@localhost ~]#
Code:
[root@localhost ~]# fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
128 heads, 63 sectors/track, 29072 cylinders
Units = cylinders of 8064 * 512 = 4128768 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          25      100768+  83  Linux
/dev/hda2              26         969     3806208   8e  Linux LVM
[root@localhost ~]#
<URL to image of HW Browser was here, now removed from post>

and expand it so that it will have 2 ~55 GB areas (partitions? vol groups?).
The first of these would be for normal use by the users/system and the
second would be to store periodic 'backups' of the first using 'partimage' or similar.

OK, what I see from df -k seems to be different than what I see if I use 'fdisk -l' or the HW browser. I understand that LVMs are groups of partitions. Is this essentially saying that there is an hda2 partition and that is solely what the LVM (same thing as /dev/mapper/VolGroup00-LogVol00 ?) contains?

If so, how do I expand the hda2 partition and add the similarly sized hda3 for backups within the current structure, so that the end result uses effectively the whole disk?

BTW, is '/dev/myvg/homevol' in the example commands above equal to '/dev/mapper/VolGroup00-LogVol00' in my situation?

Thanks,
Don

Last edited by donv2; 08-15-2005 at 11:31 PM.
 
Old 04-28-2005, 04:37 AM   #10
Raymond Day
LQ Newbie
 
Registered: Aug 2004
Location: Belleville MI
Posts: 12

Rep: Reputation: 0
Here is mine
Code:
[root@Small ~]# fdisk -l

Disk /dev/hda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14        9729    78043770   8e  Linux LVM
[root@Small ~]#
I had a 80 gig and copyed it to this 320 gig hard drive. From the 80 gig it's been running for a long time and all set up real good so I did not want to do a reload.

I copyed this using True Image Backup. It said I needed to run check disk on it. But I said go on because I don't know how to run a check disk on Linux. It backed it up so it's working on the 320 gig. But I am only using about 40 gig on it and the back up is about 70 gig. I guess True Image just did not see it to good. But it did work to resort it. I did all ready use Partition Magic 8.0 on it. But it just seen it as a 80 gig and I could not do any thing in Parition Magic.

How could I resize /dec/hda2 or if not just make a new one the size of the resest of the drive?
 
Old 04-28-2005, 02:14 PM   #11
Raymond Day
LQ Newbie
 
Registered: Aug 2004
Location: Belleville MI
Posts: 12

Rep: Reputation: 0
I made a new partition with Webmin.

It was putty easy to do with webmin.

I went to "hardware" and then "Partitions on Local Disks" I think I then picked "Add primary partition" and picked "ext3" to be the type because that's what the 80 gig one is before it.

Here is what Webmin showed when it was making it:

Code:
Executing command mkfs -t ext3 -c /dev/hda3 ..

mke2fs 1.36 (05-Feb-2005)
/dev/hda3 is not a block special device.
Proceed anyway? (y,n) Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
129024 inodes, 516024 blocks
25801 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
63 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks: 
	8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409

Checking for bad blocks (read-only test): done                        
Writing inode tables: done                            
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

.. command complete.
It made it 224 GB. I then had to go to "System" and "Disk and Network Filesystems". I clicked on "Add mount" Webmin all most had all the stuff filled in all ready. I had to make a folder before this to mount it on. I just named it partition2.

I mapped it in as a network drive. But it shows Total Size as MB not GB like all the rest of my system does. It says 488 MB that I guess = .47 GB. It should say something like 224 GB. So something is wrong. I don't know what. Can any one tell me how to fix it so it will use all the 224 GB of space on this partition.

O if this will help. Now when I do a "fdisk -l" I get this:

Code:
[root@Small ~]# fdisk -l

Disk /dev/hda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14        9729    78043770   8e  Linux LVM
/dev/hda3            9730       38913   234420480   8e  Linux LVM
[root@Small ~]#
 
Old 04-29-2005, 07:34 AM   #12
Raymond Day
LQ Newbie
 
Registered: Aug 2004
Location: Belleville MI
Posts: 12

Rep: Reputation: 0
On a reboot it would not mount it.

I went in webmin to "Disk and Network Filesystems" clicked on my "/partition2" and under "Mount now?" it was checked beside "Unmount" I picked "Mount" and then save. But I would all was get a error. The error would say "mount: wrong fs type, bad option, bad superblock on /dev/loop0" I looked on google for that error. It found a lot of people had the same error. But I could not find help how to fix it.

So I went in the command Prompt and typed just what webmin did when I first made the Partition. A command just like this:

Code:
[root@Small ~]# mkfs -t ext3 -c /dev/hda3
mke2fs 1.36 (05-Feb-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
29310976 inodes, 58605120 blocks
2930256 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=58720256
1789 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872

Checking for bad blocks (read-only test):          345472/       58605120
At the end here the first number was going up slow to the size of the last number. It was about 10 hours for it to check for bad blocks!

Here is what the end looked like when it was done:

Code:
Checking for bad blocks (read-only test): done                        120
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@Small ~]#
I then went in webmin and picked "Mount" and then save again. But this time it did not tell me there was a error. I looked at what it said was free and it now says 220 GB.

I can only guess that when Webmin first made it that it did not gave the mkfs command enough time to do it. Because for me it was about 10 hours. Webmin did it in about 1 minute.

I hope this helps others to make a new partition on the free space on your hard drive. I am sure you could delete things too. Webmin will tell you that before you pick OK in it.

Wow this is the 3 post on this board for help and I found it all out by my self. This should help others. I found this with google so others my too.

Maybe people don't show the "mkfs -t ext3 -c /dev/hda3" to much because you can easy delete every thing. It worked for me and I am sure you have to know what one it will be like the ext3 can change and the -c and /dev/hda3 my be different for others.

Last edited by Raymond Day; 04-29-2005 at 07:55 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Making Topologilinux 5 Image File Larger Garibaldi3489 Slackware 1 10-31-2004 11:06 AM
cannot receive data larger than several tens KB, fedora core 2 seraph123 Linux - Networking 1 08-11-2004 04:25 PM
Making FAT32 partitions larger than 32GB's syzygy_eolith Linux - Newbie 5 04-23-2004 12:33 PM
copy root partition to a larger one? idiosynthetic Linux - General 2 12-14-2003 05:53 PM
How do I make my Linux Partition larger? SeXuaLSoYBeaN Linux - Software 1 10-17-2003 08:34 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration