Ask Your Question
0

how to add new partition to fedora file system

asked 2016-09-11 14:17:44 -0600

redreed gravatar image

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 flag offensive close merge delete

Comments

@aeperezt thanks for the link

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

redreed gravatar imageredreed ( 2016-09-13 05:38:21 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2016-09-11 16:39:09 -0600

aeperezt gravatar image

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

edit flag offensive delete link more
0

answered 2016-09-16 14:52:33 -0600

redreed gravatar image

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

edit flag offensive delete link more

Comments

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

pandita gravatar imagepandita ( 2016-09-17 00:18:53 -0600 )edit
0

answered 2016-09-12 07:43:46 -0600

pandita gravatar image

updated 2016-09-14 16:44:45 -0600

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....)
  3. Open gparted and enter your root password
  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)
edit flag offensive delete link more

Comments

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 !!!

redreed gravatar imageredreed ( 2016-09-14 12:59:45 -0600 )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.

sideburns gravatar imagesideburns ( 2016-09-14 16:53:13 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-09-11 14:17:44 -0600

Seen: 1,745 times

Last updated: Sep 14 '16