LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help with parted (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-parted-831511/)

itsakc 09-11-2010 02:42 AM

Help with parted
 
Hi I am new to using parted. I want to use it to create large partition (>2TB) on a disk. The current partition table on the disk looks like below:
--------------------------------
Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c0d1: 2250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 3221MB 3221MB ext3
2 3221MB 2249GB 2246GB
3 2249GB 2250GB 1074MB linux-swap

--------------------------------

How to use parted to create 1 more ext3 partition to use the remaining space on this disk. Please give the steps to be followed.
Thanks in advance.

honeybadger 09-11-2010 02:57 AM

hi there you can just log in as the root and type parted /dev/<sda> where sda is the name of your drive and that would work fine. However, what I would suggest is using a gui tool (specially the ones that come with knoppix) and that would be a lot lot more easier.
Working with parted is fine - until you have all the backups and all you want is to hone your skills.

itsakc 09-11-2010 03:24 AM

Please give steps
 
Hi
Thanks, but this did not help. I need the exact steps to be followed after getting into the parted prompt. To use all the remaining space to create a ext3 partition.

thorkelljarl 09-11-2010 04:33 AM

I like...

You can download a copy of the live-cd "PartedMagic" and get both "parted", "parted" with a graphical display(GUI), and "fdisk" and "cfdisk".

http://partedmagic.com/download.html

http://partedmagic.com/programs.html

hughetorrance 09-11-2010 06:50 AM

Gparted is so clear and intuitive that most folks find they can use it first time they see it,further uses increase your level of confidence... you should be able to do what you want just by figuring gparted. LOL its kinda logical

This link to the UBCD has gparted and loads of other very interesting stuff.
http://www.ultimatebootcd.com/download.html

itsakc 09-11-2010 01:25 PM

Cannot use gparted
 
Thanks for the replies guys, but sorry, cannot use gparted. This is a OracleVM environment and does not support gui, not vnc or xterm. Also as this is a production system I cannot install other packages for getting this done, have to use parted cli. Any help with the steps would be appreciated. As I understand I'll have to use

parted /dev/cciss/c0d1

then
(parted) mkpart primary <START> <END>

As per my partition table in my starting query post, for the START I can use 3221.1 . Can someone help me to safely predict the END value to use the complete space left until the start of the swap partition! Thanks.

itsakc 09-12-2010 04:37 AM

Any Help!
 
Any Help!


All times are GMT -5. The time now is 07:23 AM.