[opensuse] How to resize root partition using resize2fs in opensuse 12.1
HI all, I want to enlarge my root partition.So I use the resize2fs command. But when I run the command,I got the following information: linux-ua9t:~ # resize2fs /dev/sda8 20G resize2fs 1.41.14 (22-Dec-2010) The filesystem is already 5242880 blocks long. Nothing to do! How can I enlarge my root partition? Thanks. Brad Yan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2012/03/29 07:05 (GMT+0800) yanliang composed:
I want to enlarge my root partition.So I use the resize2fs command. But when I run the command,I got the following information:
linux-ua9t:~ # resize2fs /dev/sda8 20G resize2fs 1.41.14 (22-Dec-2010) The filesystem is already 5242880 blocks long. Nothing to do!
How can I enlarge my root partition?
There are two parts to resizing a conventional partition: 1-changing the partition size (in the partition tables) 2-conforming the filesystem size to the partition size Resize2fs is only for #2. #1 has to be done first, using a partitioning tool. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
yanliang said the following on 03/28/2012 07:05 PM:
I want to enlarge my root partition.So I use the resize2fs command. But when I run the command,I got the following information:
linux-ua9t:~ # resize2fs /dev/sda8 20G resize2fs 1.41.14 (22-Dec-2010) The filesystem is already 5242880 blocks long. Nothing to do!
How can I enlarge my root partition?
First, check the list archives. This seems recurring question. Has it been transferred to the Wiki? I know I've answered it at least twice. The short answer is that 'resize2fs;' is for resizing the file system. It can only grow as big as the partition. Unless you use LVM your partitions are set when you did the install and you can see them with tools like gparted (for graphics) or cfdisk (for CLI). You can't simply move the end point of one partition to make it larger since that will overwrite the start of the next partition and the file system there. A good way to hose your system. That is why I recommend using LVM whenever you install a system. All this is discussed back in the list archives as well as other approaches. -- wind catches lily scatt'ring petals to the wind segmentation fault -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 3/28/2012 4:05 PM, yanliang wrote:
HI all,
I want to enlarge my root partition.So I use the resize2fs command. But when I run the command,I got the following information:
linux-ua9t:~ # resize2fs /dev/sda8 20G resize2fs 1.41.14 (22-Dec-2010) The filesystem is already 5242880 blocks long. Nothing to do!
How can I enlarge my root partition?
Thanks.
Brad Yan
Download this Bootable live CD. http://gparted.sourceforge.net/download.php Burn to CD, and boot from it. Its a one stop shopping center for this kind of operation. It does both parts, partition size and filesystem size. Read the info in the yellow box on that page. -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 3/28/12 6:05 PM, yanliang wrote:
HI all,
I want to enlarge my root partition.So I use the resize2fs command. But when I run the command,I got the following information:
linux-ua9t:~ # resize2fs /dev/sda8 20G resize2fs 1.41.14 (22-Dec-2010) The filesystem is already 5242880 blocks long. Nothing to do!
How can I enlarge my root partition?
Thanks.
Brad Yan
I had good luck with cfdisk. Install it using Yast. See email from previous post here http://lists.opensuse.org/opensuse/2012-03/msg00258.html Good luck, and perhaps back up first. Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Anton Aylward
-
Felix Miata
-
Jim Flanagan
-
John Andersen
-
yanliang