LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-28-2009, 09:39 AM   #1
dirtmaster88
LQ Newbie
 
Registered: Sep 2007
Posts: 12

Rep: Reputation: 0
Resize a unmounted partition?


Is it possible to resize a partition without booting into a live cd such as knoppix? I have a 500 gb sata disk split into 4 partitions. I would like to resize sda3 and sda4 down to about 75 gb each which would leave me 150 gb to install another distribution.

Could I use a tool such as gparted to do this while the system is running? I would prefer not to boot with a live cd as I need to continue working while this process happens.

df -kh

Filesystem Size Used Avail Use% Mounted on
/dev/sda2 148G 14G 127G 10% /
udev 1.5G 440K 1.5G 1% /dev
/dev/sda3 148G 47G 94G 34% /vmware
/dev/sda4 159G 42G 109G 28% /samba


fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00091291

Device Boot Start End Blocks Id System
/dev/sda1 1 588 4723078+ 82 Linux swap / Solaris
/dev/sda2 * 589 20169 157284382+ 83 Linux
/dev/sda3 41221 60801 157284382+ 83 Linux
/dev/sda4 20170 41220 169092157+ 83 Linux
 
Old 01-28-2009, 09:56 AM   #2
SkinnerC
Member
 
Registered: Dec 2007
Location: New England, USA
Distribution: Ubuntu 8.04 LTS, Slackware 12.2
Posts: 138
Blog Entries: 1

Rep: Reputation: 20
Yes you can resize an unmounted partition with GParted from within the running OS. I have done this several times from within Ubuntu.
 
Old 01-28-2009, 09:57 AM   #3
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
If you unmount them, you can resize them with parted. Of course, you would back up all important data BEFORE you resize.
 
Old 01-28-2009, 10:12 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
However, since you already have 4 partitions you will be unable to create another partition until you change sda4 to be an extended partition. Then you can create up to 11 logical partitions. If working involves your /samba or /vmware partition then the answer would be only if you move everything to /. As stated backing up everything would be a very good idea.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Single, unmounted partition permission for a specific user? WetFroggy Slackware 1 08-26-2008 07:14 AM
Gparted refuses to resize NTFS (3G) partition, even if it has been unmounted. PureRumble Linux - Software 9 04-02-2007 07:02 PM
how to find unmounted partition cnm Linux - Newbie 9 11-18-2006 08:17 AM
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 04:15 PM
creating a directory in unmounted partition pgsmith Linux - Newbie 6 09-07-2005 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:11 PM.

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