Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-10-2010, 07:09 AM   #1
navraj 19
LQ Newbie
Registered: Nov 2010
Posts: 6

Rep: Reputation: 0
how to resize a filesystem in fedora and opensuse

does any one know how to resize the filesystem in fedora and opensuse i have succeded in doing it in centos using fdisk

i did the following steps
i delete the partition using d
then i create a new partition using n and then
i save the changes
then i run resize2fs and its done

but in fedora and opensuse its not happening can anyone help in determining the problem
Old 11-10-2010, 07:12 AM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ

Any error messages?

Kind regards
Old 11-10-2010, 11:58 AM   #3
LQ Newbie
Registered: Nov 2010
Posts: 5

Rep: Reputation: 0
If it's ext3 filesystem you will not be able to resize it if it's not over LVM
Old 11-10-2010, 12:28 PM   #4
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,710

Rep: Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090Reputation: 5090
Duplicate of another post by the same user. Specifically asking about virtual disks, in other thread, after getting pressed for details.
Old 11-11-2010, 04:53 AM   #5
navraj 19
LQ Newbie
Registered: Nov 2010
Posts: 6

Original Poster
Rep: Reputation: 0

(TO the moderator : I accidentally posted it in the wrong forum. Sorry.
But I guess its now in the correct forum. Also can any moderator delete the following new topic I started when I didnt get the topic I started in the networking forums : (Sorry about it))

Let me try to explain the whole situation again.

I have made a fedora and opensuse 1gb image in Xen HVM.
Now I want to make multiple DomUs with the 1GB .img files I made for fast deployment of DomUs.
The domUs will have 10GB+ LVMs as their Disks. So I need to resize the filesystems.
Firstly I dd the 1GB image to the 10Gb LVM.
Then when I try to fdisk /dev/vg/fedora (The 10GB LVM) I get the following message :
The number of cylinders for this disk is set to 3771.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
The fdisk still works though so I delete the first partition and add a new partition to use the whole 10GB. Writing the new partition table gives no errors.

Then I proceed to resize the filesystem.
I kpartx the LVM and run e2fsck on /dev/vg/fedorap1 and this is the following ERROR I get :
e2fsck 1.39 (29-May-2006)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/mapper/fedorap1

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
So I think the fdisk corrupted the superblock of the LVM.
What did I do wrong ???
Please help me. I think its because of the CYLINDER warning fdisk gave me.
Pleaaaaase help me.


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
Resize filesystem +RHEL alwosaby Linux - General 1 02-10-2010 12:02 PM
resize ext3 filesystem DaWallace Slackware 8 10-10-2007 07:15 AM
Resize ext3 filesystem svelloso Linux - Software 1 03-03-2006 04:54 PM
Resize ext3 filesystem dussel SUSE / openSUSE 1 02-07-2006 08:45 AM
need to resize ext3 filesystem clsonnt Linux - Newbie 2 07-09-2003 11:59 AM > Forums > Linux Forums > Linux - Server

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

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