Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-04-2009, 09:18 AM   #1
LQ Newbie
Registered: Apr 2007
Posts: 10

Rep: Reputation: 0
Shrinking the ext3 partition during the boot and creation of new partition


Trying to shrink the existing partition of size 80GB, during the OS bootup (Fedora core 3). This is a root filesystem partition which I want shrink, to make way for CentOS to be install in the new partition.

For this I changed the initrd after mkrootdev command in the init file.

e2fsck -fy /dev/sda2

Resizing root device

resize2fs -f /dev/sda2 25G

After replacing the changed initrd and rebooting failed to get the partition resized. Are the steps being done are correct and is this feasible way to do this, since I want to avoid doing it in the rescue mode or using some bootable usb with os.
Old 05-04-2009, 04:11 PM   #2
LQ Newbie
Registered: May 2009
Location: England, UK
Distribution: Ubuntu 16.04
Posts: 21

Rep: Reputation: 0

Hi saleem_ak,

I am not so sure what you mean by trying to shrink DURING bootup but....

When I want to re-size / change partitions I usually find Ubuntu Live CD pretty handy. It has GParted which is an easy to use GUI partition editor. I think there is also a specific GParted Live CD available. I'm sure if you Google Ubuntu or gparted you will find these.

Old 05-05-2009, 01:52 AM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,406

Rep: Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396
What you've done should resize the partition. There's no need to mess with the initrd, it's not related.


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
New ext3 partition doesn't mount on boot asininity Linux - Newbie 2 11-05-2007 03:48 PM
colinux access to ext3 partition (opensuse root partition) billtracy1957 Linux - General 0 05-03-2007 10:29 PM
Shrinking Linux Partition w/ Partition Magic jrdioko Linux - Newbie 11 12-21-2003 03:46 PM
Shrinking a ext3 partition (/usr) Radicalm16 Linux - General 4 01-21-2003 09:56 PM
Shrinking a ext3 partition Radicalm16 Linux - Newbie 4 01-21-2003 09:37 PM > Forums > Linux Forums > Linux - Newbie

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