LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-02-2018, 12:50 AM   #1
zio_mangrovia
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Rep: Reputation: Disabled
extend first partition


I'm migrating from Fedora Core 1 virtual server to Centos 6 one but at this time I need to enlarge / file system and disk has several partitions so I don't know what steps follow:

/dev/sda1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
/dev/sda7 on /tmp type ext3 (rw)
/dev/sda6 on /usr type ext3 (rw)
/dev/sda2 on /usr/local type ext3 (rw)
/dev/sda5 on /var type ext3 (rw)
/dev/sda8 on /home/appliacation type ext3 (rw)
/dev/sdb1 on /area type ext3 (rw)

I just enlarged physical disk size by vmware but now I have to enlarge fs to /dev/sda1.
Geometry is very complex and Gparted is failed during resize process.
What can you suggest me?
 
Old 06-02-2018, 01:29 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Fedora core 1 is from 2003!
 
Old 06-02-2018, 09:22 AM   #3
_roman_
Member
 
Registered: Dec 2017
Location: _Austro_Bavaria_
Distribution: gentoo / linux mint
Posts: 433

Rep: Reputation: 29
Quote:
I just enlarged physical disk size by vmware but now I have to enlarge fs to /dev/sda1.
jsut get a proper new vmware image.

This topic should be moved as it is a user issue software issue. => enlarged physical disk size by vmware
 
Old 06-02-2018, 02:32 PM   #4
zio_mangrovia
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by _roman_ View Post
This topic should be moved as it is a user issue software issue. => enlarged physical disk size by vmware
I'm not agree with you because now my environment is as if I disk was cloned to another bigger, infact now there is raw space to end of disk and OS detects real disk size.
Virtual environment or physical environment in this case doesn't affect about resizing. New disk is bigger and it's necessary to resize partitions.
Many years ago physical disk was cloned to new bigger one and afterwards replaced it, the process is the same.
 
Old 06-02-2018, 02:33 PM   #5
zio_mangrovia
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keruskerfuerst View Post
Fedora core 1 is from 2003!


So?!
I know infact I'm migrating to new server but now I need to resize disk.
 
Old 06-02-2018, 06:17 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Maybe you should read this somewhat related current thread. I can't believe there are people still running real work on FC1.

The simple answer for the partition question is to use a current gparted livecd to move the other partitions around to ensure sufficient free space immediately follows /dev/sda1, then resize it.
You give no indication of current phyiscal layout, or the errors gparted fails with, so any suggestions would be guess-work.
 
Old 06-02-2018, 11:27 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Is there any particular reason you wouldn't install the latest centos? Is there anything on the drive you want to keep? If not, you can boot the Knoppix CD and partition the drive with parted.
 
Old 06-03-2018, 12:56 AM   #8
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
You should reinstall completly.
 
Old 06-03-2018, 04:20 AM   #9
zio_mangrovia
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Maybe you should read this somewhat related current thread. I can't believe there are people still running real work on FC1.

You give no indication of current phyiscal layout, or the errors gparted fails with, so any suggestions would be guess-work.
As soon as possible, I'll give all info
 
Old 06-03-2018, 04:22 AM   #10
zio_mangrovia
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
Is there any particular reason you wouldn't install the latest centos? Is there anything on the drive you want to keep? If not, you can boot the Knoppix CD and partition the drive with parted.
it's application problem to pass latest Centos 7.x so It's necessary to migrate to 6.
I tried only with Gpart, but I Made all steps together and perhaps I should process in steps... (move partition, resize, ...) because disk geometry is very complex .
 
Old 06-04-2018, 12:17 AM   #11
zio_mangrovia
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Maybe you should read this somewhat related current thread. I can't believe there are people still running real work on FC1.

The simple answer for the partition question is to use a current gparted livecd to move the other partitions around to ensure sufficient free space immediately follows /dev/sda1, then resize it.
You give no indication of current phyiscal layout, or the errors gparted fails with, so any suggestions would be guess-work.

Here is partitions layout:

GNU Parted 1.6.3
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

Using /dev/sda
Warning: Unable to align partition properly. This probably means that another partitioning tool generated an incorrect partition table, because it didn't have the correct BIOS
geometry. It is safe to ignore,but ignoring may cause (fixable) problems with some boot loaders.
Ignore/Cancel? i
(parted) print
Disk geometry for /dev/sda: 0.000-61440.000 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 1027.595 primary ext3 boot
2 1027.595 9216.979 primary ext3
3 9216.980 13311.672 primary linux-swap
4 13311.672 46080.000 extended
5 17368.000 21462.661 logical ext3
6 23659.000 31946.000 logical ext3
7 31946.088 41983.000 logical ext3
8 41983.683 46080.000 logical ext3

it's enough?
As you can see disk size is larger used space so there is raw space which I can use.
See you on bottom side GUI Gpart layout
Attached Thumbnails
Click image for larger version

Name:	partitions.JPG
Views:	20
Size:	96.0 KB
ID:	27808  

Last edited by zio_mangrovia; 06-04-2018 at 01:19 AM.
 
Old 06-06-2018, 08:42 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
OK, this is like a "sliding block" game. You need to slide all the partitions (other than /dev/sda1) to the right so the unallocated 15 Gig relocates to be be immediately next to /dev/sda1.
First you need to grab the right edge of the extended partition /dev/sda4 and pull it all the way to the right - the unallocated will then be inside the extended partition, which is just a container.
Then slide - in this order - sda8, sda7, sda6 and sda5 as far right as they will go. That will effectively "move" the free space. Then drag the left edge of sda4 to the right so the free space is outside of sda4.
Then slide /dev/sda3 then sda2 to the right so the free space is next to /dev/sda1, then you can resize /dev/sda1.

This usually works fine, but backups should always be taken before moving partitions around - especially with a system so far out of support.
 
Old 06-20-2018, 01:55 AM   #13
zio_mangrovia
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
OK, this is like a "sliding block" game.
First you need to grab the right edge of the extended partition /dev/sda4 and pull it all the way to the right - the unallocated will then be inside the extended partition, which is just a container.
far out of support.
I select /dev/sda4, extended partition, I'm not able to move this partition to the right but only resize partition.
See image:
Attached Thumbnails
Click image for larger version

Name:	ext-disk-2.JPG
Views:	11
Size:	33.2 KB
ID:	27968  
 
Old 06-20-2018, 05:15 AM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
I select /dev/sda4, extended partition, I'm not able to move this partition to the right but only resize partition.
Exactly, that is what you need to do and for safety sake, after rezing the Extended partition so that includes the current logical partitions plus the free space at the end, move the logical partitions in the order suggested in post 12 above, sda8 first then moving down, sda7, sda6, etc.
 
Old 06-20-2018, 06:14 AM   #15
zio_mangrovia
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Exactly, that is what you need to do and for safety sake, after rezing the Extended partition so that includes the current logical partitions plus the free space at the end, move the logical partitions in the order suggested in post 12 above, sda8 first then moving down, sda7, sda6, etc.
You didn't see what I wrote: Gparted cannot permit me to move this specific partition (sda4) but only to resize, while with other ones Gparted permit to move them.
 
  


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
Extend Linux Partition (Extend LVM) osama.mansoor Linux - Newbie 5 11-27-2015 01:09 AM
Nagios Root partition warning - How do I extend partition? fireshooter Linux - Newbie 10 01-04-2013 07:01 AM
Extend an partition Jordan Miguel Linux - General 9 04-27-2011 07:51 PM
Extend a partition musiqdefunk Linux - Newbie 7 03-25-2011 02:12 PM
how to extend partition? Sushy *BSD 2 01-25-2007 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:06 AM.

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