LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-21-2011, 09:29 PM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
how to enalrge partition?


How to enalrge partition?

My box is scientific linux 6.1 x64, and "fdisk -l"is this;

Code:
[root@RedLeoWebDev t1]# fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1098fe58

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          61      485376   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              61        5283    41943040   83  Linux
/dev/sda3            5283        7894    20971520   83  Linux
/dev/sda4            7894       38914   249169920    5  Extended
/dev/sda5            7894        8024     1048576   82  Linux swap / Solaris
 
Old 11-21-2011, 09:44 PM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Lightbulb

http://partedmagic.com/doku.php?id=downloads

You can boot using a parted magic cd and do your work while the system is not mounted.
 
1 members found this post helpful.
Old 11-21-2011, 09:53 PM   #3
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 874

Rep: Reputation: 113Reputation: 113
http://gparted.sourceforge.net/livecd.php

or any live linux distro with gparted installed such as ubuntu.
 
1 members found this post helpful.
Old 11-21-2011, 11:53 PM   #4
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
I've installed gparted, but there's nothing.


http://i.imgur.com/kqArO.jpg
 
Old 11-22-2011, 12:11 AM   #5
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 874

Rep: Reputation: 113Reputation: 113
Strange might be a bug
http://www.linuxquestions.org/questi...itions-718673/

I found this that might be related

Possible fix
http://www.rodsbooks.com/missing-parts/

This info was a 5 sec google look over and was not verified in anyways. Be sure to read it throughly and understand what your doing befor you do it. Remember I googled this in 5 secs what can you google with time .

Last edited by jmc1987; 11-22-2011 at 01:51 AM.
 
2 members found this post helpful.
Old 11-22-2011, 12:20 AM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You shold parted-live-cd which you have to boot to.
Also which partition are you enlarging & which partition are you taking the space from??

Last edited by EDDY1; 11-22-2011 at 12:21 AM.
 
1 members found this post helpful.
Old 11-22-2011, 12:25 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,054

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
With that layout I'm surprised anything (fdisk included) will talk to it.
You only have 30401 cylinders - have a look where the extended partition (allegedly) finishes ...

libparted ain't going to like that. Personally I'd delete the swap and the extended and see what gparted thinks then. Use it to re-allocate as needed.
Make sure fstab gets fixed before attempting a re-boot (after playing in gparted).

BTW the "does not end on cylinder boundary." is informational only - allocation units have changed since the disk was originally set up.
 
2 members found this post helpful.
Old 11-22-2011, 12:40 AM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
The Op can also move sda5 to the right then shrink sda4 from the left using gparted-live
 
1 members found this post helpful.
Old 11-22-2011, 01:05 AM   #9
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
jmc1987/ I tried, but there is not "fixparts" command.

EDDY1/ At livecd gparted shows same state.
I want to enalrge "/" partition to 50G.

syg00/ This hard disk is 350G.

Quote:
Personally I'd delete the swap and the extended and see what gparted thinks then. Use it to re-allocate as needed. Make sure fstab gets fixed before attempting a re-boot (after playing in gparted).
The fstab file is here:
Quote:
UUID=6d68679a-06be-435a-a920-e7487bd5a7a5 / ext4 defaults 1 1
UUID=9fd10fbc-ca77-40d3-ac54-3bd21476b716 /boot ext4 defaults 1 2
UUID=4c10acd9-15a4-40d3-8a24-f6d1e0204f62 /var ext4 defaults 1 2
UUID=438d5503-5e00-45b3-af15-1bab909900de swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
Quote:
BTW the "does not end on cylinder boundary." is informational only - allocation units have changed since the disk was originally set up.
How to fix "does not end on cylinder boundary"?
 
Old 11-22-2011, 01:27 AM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
THe lead ink Jmc provided should be read more thoroughly especially
Fixing the Problem the Hard Way
http://www.rodsbooks.com/missing-parts/
 
1 members found this post helpful.
Old 11-22-2011, 01:52 AM   #11
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 874

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by EDDY1 View Post
THe lead ink Jmc provided should be read more thoroughly especially
Fixing the Problem the Hard Way
http://www.rodsbooks.com/missing-parts/
updated my original post.

Yea your right its a quick google and I meant for OP to read it and understand it. I can't say that it works because I haven't personally tested it.

So note to all who tries everything people post. Read what it is doing and understand it.

Happy trouble shooting.
 
2 members found this post helpful.
  


Reply


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
HowTo convert Primary Partition to Logical (ie move it inside the Extended Partition) Tom6 Linux - Software 3 11-29-2010 04:40 PM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 03:35 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 11:46 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 01:55 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 09:45 AM


All times are GMT -5. The time now is 12:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration