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 05-04-2009, 09:18 AM   #1
saleem_ak
LQ Newbie
 
Registered: Apr 2007
Posts: 10

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


Hi,

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
soldersplash
LQ Newbie
 
Registered: May 2009
Location: England, UK
Distribution: Ubuntu 16.04
Posts: 21

Rep: Reputation: 0
Smile

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.

Cheers,
Daniel.
 
Old 05-05-2009, 01:52 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

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


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
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

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

All times are GMT -5. The time now is 10:16 PM.

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