LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-16-2010, 01:31 PM   #1
amirsd
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Rep: Reputation: 0
Increase primary /dev/sda1 partition


We have a Virtual machine that is running Redhat enterprise Linux v5. Looking at the current configuration (fdisk –l) there are two partitions /dev/sda1 & other /dev/sda2 partition for swap. We recently noticed that the size of the first primary partition /dev/sda1 is increasing. We DO have more space available which is at this time unallocated. So in other words we can go ahead and create a third partition for the unallocated space and format it to use for additional space.

My question is that our recommended strategy would be to increase the size of the primary partition /dev/sd1 instead of creating a new partition because we cannot tell our application that is growing to use a newly created third partition.

What would be the best method or strategy to extend the primary /dev/sda1 partition without losing any data? Any tips would be nice please.
 
Old 03-16-2010, 01:50 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Can you tell your application which directory on sda1 to use ?
If so, create a new partition, and mount it on a directory on sda1.
 
Old 03-16-2010, 01:58 PM   #3
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Code:
fdisk -l /dev/sda
please
 
Old 03-16-2010, 04:10 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Why not just delete the 'swap' and use qtparted or gparted to increase your '/dev/sda1' partition. After your done then just create another 'swap'. Be sure to leave some space to allow the 'swap' creation.

 
  


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
dd if=/dev/sda1 of=dev/sdb3 turns a 10gig partition into a 130gig partition ? zonemikel Linux - Hardware 4 09-12-2009 06:53 PM
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 01:52 AM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 05:54 AM
/dev/sda and /dev/sda1 disappeared using sii3112A striderstrahan Linux - Software 0 09-16-2004 06:00 AM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 10:37 AM


All times are GMT -5. The time now is 07:43 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