# how to add new partition to fedora file system

so i installed fedora 24 with windows 10 and i gave around 60 to 70 gc space for fedora . but not i wanna use kali through virtual box but have no space so i made a extra partition from main hard disk by shrinking in windows . now how do i add it to my fedora file system to access it

edit retag close merge delete

@pandita could u elaborate the how-to as i am pretty new to fedora and yes i used windows to shrink

( 2016-09-13 05:38:21 -0500 )edit

Sort by » oldest newest most voted

If you used lvm on the installation follow this https://www.turnkeylinux.org/blog/ext...

more

thank you so much guys @pandita thank you again !! it works and lives :P

more

No worries, glad it helped :) You can accept my answer if it was useful.

( 2016-09-17 00:18:53 -0500 )edit

You can use gparted to make a new partition from the space that you got by shrinking the windows partition (I assume you did this from windows). Gparted is available via the software centre.

Creating a new partition from unused space is fairly straight forward, however it is important to be really, really, really careful when using gparted. Don't be careless and triple check that you are doing what you want to the right partition and the right device.

Here's a picture of gparted (I can't upload because I'm too new apparently)....

Anyway:

1. Install gparted via the Fedora software center (hit win key, type software, enter, type gparted, click install)
2. Backup any files that are important to you on an external drive. This is good advice in any case. Have a backup of everything you think is important. Really do. Particularly for USBs.... (sensitive bastards....)
4. Top right of the window: select the hard drive you are after. You can click through any of them in case you have more. It will show you the different partitions on the harddrives in the main window. Select the one where you created unallocated space.
5. Right click and click on 'New'
6. In the next window you tell gparted what you want. Presumably you are going to choose the maximum size. "Create as: Primary Partition" is most likely what you want. "Align to: MB" probably as well. Choose your partition name and label. For "File system" choose "ext4" if you only want to use the new partition in linux. Choose "fat.." or "nfts" if you also want to be able to access the new partition from windows
7. Click ok
8. Be really sure that you are working on the right device (i.e. do the partitions you see make sense to you, is the size of the device correct?). The partitions you are seeing should look like the ones when you created the unallocated space in windows. Go back to windows and check it if you are unsure.
9. Click the green arrow

Now gparted will create the new partition... after a few warnings similar to mine above.

You can then mount the partition within your home directory if you like, which would give quick access. For this you'll need to edit the /etc/fstab file and for ease of use change the ownership of the folder you mount the new partition to.

Type in a terminal:

cd
mkdir ./mountpoint_new_partition


This creates a folder. Give it a better name.

sudo nano /etc/fstab


Go to the bottom and add:

/dev/sdz5  /home/<your username>/mountpoint_new_partition  ext4 nodev,nosuid 0 2


Instead of /dev/sdz5 write the name of the partition as it appears in gparted. Also use the folder name you have chosen instead of mountpoint_new_partition. Lastly you need to change ext4 to whatever files system you have chosen when you created the partition.

In words this is telling linux: "Mount partition /dev/sdz5 at ...

more

thank you so much man I will give it a try tomm morning and let u no what happens

again thanks for the answer cheers !!!

( 2016-09-14 12:59:45 -0500 )edit

One important thing: be sure to hit Enter after adding that line to /etc/fstab because mount is very, very fussy about that. Also, instead of removing your additions if there's trouble, just put a # in front of it as that makes it into a comment.

( 2016-09-14 16:53:13 -0500 )edit