LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to increase the partion devoted to Fedora 19 (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-increase-the-partion-devoted-to-fedora-19-a-4175472116/)

TwiToiT 08-04-2013 11:57 PM

How to increase the partion devoted to Fedora 19
 
Hello there,

I am new to linux.
I wanted to install fedora on 400GB space of my 500GB harddisk and wanted to have 100GB seperated disk.

But, during the installation process I did some blunder and now I have ended up with Fedora 19 Genome installed on 100B space of my 500 GB hdd with 400GB missing altogether.

What is the easiest possible way to get to the point where I originally headed to ?

chrism01 08-05-2013 03:39 AM

Can you show the current layout eg
Code:

fdisk -l
That's a lowercase L btw

schneidz 08-05-2013 04:59 PM

i would boot a live-usb and use gparted to extend/move/delete/copy/play around with you partitions.

TwiToiT 08-15-2013 10:26 AM

[root@localhost /]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x250e7697

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2099199 1048576 b W95 FAT32
/dev/sda2 2099200 206907391 102404096 8e Linux LVM
/dev/sda4 767055872 976773119 104858624 83 Linux

Disk /dev/mapper/fedora-root: 104.9 GB, 104857600000 bytes, 204800000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

dt64 08-16-2013 04:31 AM

your 100GB partition is /dev/sda2. This holds a LVM group and partition.
Show us the output of
Code:

pvdisplay
and
Code:

lvdisplay
.

you 400GB partition is /dev/sda4.

When we are lucky (since you said it's a new system) you do not have any data on sda4 yet.
What you want to do in this case:
- unmount sda4
- remove sda4 using fdisk
- enlarge sda2 using fdisk
- resize LVM volume group on sda2 using pvresize
- resize LVM partition and file system on sda2 using lvresize

If you already have data on sda4 you start decreasing sda4 and moving it to the end of the HDD using gparted.

Be warned: You need to have a backup of all data. Messing around with partitions and no experience has a great chance to end in a desaster. With experience it still has a great chance to end up in a huge fail.

If you search in the forum here you'll find more details about the single steps. If you have any issues let us know.


All times are GMT -5. The time now is 05:45 AM.