LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to make/add a new partition? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-add-a-new-partition-704390/)

QueenZ 02-13-2009 05:16 AM

How to make/add a new partition?
 
OK, for now I have nothing but Ubuntu on my PC. It's fresh :) Now i have one partition (i think)...

But i remember on windows machine i had two partitions - Local Disc C:\ and Other D:\
One is for Windows and other is for my all important documents.

Now, I would really like to make the same on Linux.

As far as i know the one partition that i have is / (root). Right? And no i need another one \ or something.. i don't know how it will be but it won't go like D:\ that's for sure.. maybe \ or / or something.. In other words, Please help! :D

Can i give labels for my new partitions too? like i had on windows (Local Disc and Other)

your_shadow03 02-13-2009 05:26 AM

You can use fdisk utility for a new partition.
I would like you to google "fdisk linux"

repo 02-13-2009 05:27 AM

Use a partition manager like qparted, to schrink the existing partition, and to create the new one.
Best is to download a live cd.
Then edit /etc/fstab to add the new partition.

QueenZ 02-13-2009 06:02 AM

I downloaded and installed gParted but it doesn't allow me to resize or create a new patition.. take a look.. what's wrong? :(

http://www.freeimagehosting.net/uploads/e4f099e219.jpg

ajlewis2 02-13-2009 06:02 AM

Here is a good document at Ubuntu's wiki about partitioning. See especially Resizing, Extended partition (which is a good idea so that you can make more than 4 partitions eventually) and Reformatting (since after you make the partition, you will need to format it in order to use it).

https://help.ubuntu.com/community/HowtoPartition

repo 02-13-2009 06:15 AM

Quote:

I downloaded and installed gParted but it doesn't allow me to resize or create a new patition.. take a look.. what's wrong?
You need to unmount the partition, in order to resize it.
I would suggest to boot from a live cd, and the resize

QueenZ 02-13-2009 06:15 AM

I don't have cd rom and i want to resize it.. why do i need to unmount it and can i unmount it?

does it mean i can't resize it now?

brianL 02-13-2009 06:17 AM

Mmm, that's odd - you've got unallocated space in between your Windows & Linux partitions. I'm not sure, I've never tried it, but I think you can move your ext3 partition to take up that space, move your swap as well (run swapoff /dev/sda5 first).
You'll have to use a live CD.

repo 02-13-2009 06:18 AM

did you tried to unmount it?

repo 02-13-2009 06:21 AM

Quote:

OK, for now I have nothing but Ubuntu on my PC.
so you have sda2 for linux
Is there something on sda1?
You can use sda1 for your data partition.

QueenZ 02-13-2009 06:29 AM

ok guys, i did it ! :) I used that unallocated space between win and linux partition and i made a new partition and gave it label "other" :) And it's ext2 with 3MB space. That's great! I can put all my word documents there now! :)

But when i went to computer:// and tried to open other (my new partition) it asked me for password (weird) and then when i gave it my password it showed error - "Unable to mount location. Internal error: No mount object for mounted volume" what's that :( What's happening :(:(

QueenZ 02-13-2009 06:30 AM

But when i chose to open my new partition from sidebar places section, it opened successfully.. weird again.. and i found lost+found folder in it (huh??)

ajlewis2 02-13-2009 07:02 AM

Quote:

Originally Posted by QueenZ (Post 3442164)
But when i chose to open my new partition from sidebar places section, it opened successfully.. weird again.. and i found lost+found folder in it (huh??)

lost+found is normally made with a newly formatted partition.

If you can make a cd, there is a 100Mb iso available for a livecd for gparted: http://sourceforge.net/project/showf...kage_id=271779

It would also be good to know if you already have 4 primary partitions before you attempt to resize. If you already have 4 primaries, you will not be able to use the new space. You can do 'fdisk -l' to see what your partitions look like and report here if you want advice.

thorkelljarl 02-13-2009 08:13 AM

Try this

Here is the link to an introduction course on linux that many have recommended. It explains the general structure and terminology of linux and has a section on partitions.

http://www.linux.org/lessons/

Welcome to the project.

repo 02-13-2009 08:17 AM

Is there something on sda1?


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