LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-21-2011, 10:32 PM   #31
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649

Quote:
device boot start end blocks Id system
/dev/sda1 1 18845 151367187+ 83 linux
/dev/sda4 37883 38914 8279041 5 extended
/dev/sda5 37883 38914 8279040 82 linux - swap/solaris
Are these the only partitions you have?
I've never seen sda2 & 3 missing.
Everytime I've partitioned or deleted partition it was renamed to the previous partition #
 
Old 01-22-2011, 05:29 AM   #32
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
@EDDY1 this is not the problem, please read post #29
Primary and extended partitions are numbered from 1-4 and logical partitions begin with 5. Logical partitions are created inside the extended partition and are useful if you want to have more than only four partitions.

@linux/unix87: when I told you to decrease the size of the big partition /dev/sda1 before creating an extended partition, I meant to make the free space big enough. I think you should decrease /dev/sda1 down to about 50GB, this will give you about 100GB of free space. For swap you'll need a maximum of 512MB, for LFS you'll need about 10GB of space. As I understood you're running Ubuntu on partition /dev/sda1, doesn't your Ubuntu have a separate partition for the /home folder?

Markus
 
Old 01-22-2011, 07:13 PM   #33
linux/unix87
Member
 
Registered: Oct 2010
Posts: 190

Original Poster
Rep: Reputation: 6
I never decreased or increased anything thats the way its been since i installed it. Im wondering you guys said to use something other than the host to partition. could i use partition wizard it is a bootable cd? or do i have to use gparted? because i dont have gparted.
 
Old 01-22-2011, 07:18 PM   #34
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Well, you can burn the gparted iso-image: http://gparted.sourceforge.net/download.php on a CD. You can boot it like any other Linux-live-CD and then decrease your /dev/sda1 partition. Afterwards you may delete /dev/sda4
and create a new extended partition.

Markus
 
Old 01-22-2011, 07:19 PM   #35
linux/unix87
Member
 
Registered: Oct 2010
Posts: 190

Original Poster
Rep: Reputation: 6
oh and for the swap i have read and been told diff things on the size of that like: use 1 and half times your ram and 512mb and many others. also im trying to follow what the manual says on lfs it says i can use fdisk to create my partitions but the error its giving me is "no free sectors" so then i tried using an easier cfdisk but that says fatal error cannot open disk drive?
 
Old 01-22-2011, 07:21 PM   #36
linux/unix87
Member
 
Registered: Oct 2010
Posts: 190

Original Poster
Rep: Reputation: 6
how big is the iso file cause if its the size of the distrobution download it would take me hours so would partition wizard work? nevermind im downloading it now

Last edited by linux/unix87; 01-22-2011 at 07:31 PM.
 
Old 01-22-2011, 07:22 PM   #37
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Well, fdisk cannot create partitions if there is no free space (space without a parition) left on the device. Don't confuse "free diskspace" and not "partitioned space".

With swap, you'll need as least as much swap as RAM if you want to hibernate.
Normally you'll need much less of swap. How many RAM do you have?

Markus
 
Old 01-22-2011, 07:26 PM   #38
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
the iso has about 120MB. Be aware, that it is possible, if you already have an Ubuntu or Suse Live-CD or DVD, that there is gparted installed. You may boot the Live-CD and find this out. If you want to resize a partition, you'll have to use a live-CD since you cannot change a partition which is already mounted (which would be the case if you would use gparted when your Ubuntu is running).

Markus

Last edited by markush; 01-22-2011 at 07:34 PM.
 
Old 01-22-2011, 08:47 PM   #39
linux/unix87
Member
 
Registered: Oct 2010
Posts: 190

Original Poster
Rep: Reputation: 6
i have 3 gb of ram. I downloaded gparted live and its on a cd in the computer so i downsize partition /dev/sda1 and then delete /devsda4? In what order ,if there is any, do you partition? ok so what if you unmount it because i was able to create a partition using fdisk while running ubuntu but i had to restart to actually mount it. oh another thing is there was unallocated space about 147gb but it wouldnt let me partition that at all?
 
Old 01-22-2011, 09:00 PM   #40
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
No specific order.
 
Old 01-22-2011, 09:00 PM   #41
linux/unix87
Member
 
Registered: Oct 2010
Posts: 190

Original Poster
Rep: Reputation: 6
gparted wont let me delete /dev/sda4? How can i do this?
 
Old 01-22-2011, 09:04 PM   #42
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
If logica you have to delete the partitions inside first.
sda5
 
1 members found this post helpful.
Old 01-22-2011, 09:07 PM   #43
linux/unix87
Member
 
Registered: Oct 2010
Posts: 190

Original Poster
Rep: Reputation: 6
so how big should i make /dev/sda2 extended? and how do i put the partitions in the extended from what im understanding cause i just figured out how to delete it. my swap was in the extended i deleted that then deleted partition 4.
 
Old 01-22-2011, 09:20 PM   #44
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You have to go back thru the post and look for information on that, I don't know anything about lfs, and use guided partitioning.
usually / has own partition and then all others are within extended(logical).
http://www.dedoimedo.com/computers/gparted.html
 
Old 01-22-2011, 09:24 PM   #45
linux/unix87
Member
 
Registered: Oct 2010
Posts: 190

Original Poster
Rep: Reputation: 6
ok an operating system needs three partitions right? home,extended,and swap. now when your doing say lfs you would need those partitions together right? also what goes in the extended?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need Hepl about Compilation in LFS (Linux From Scratch)...!!! luckybtn Linux - Newbie 1 07-30-2008 06:30 AM


All times are GMT -5. The time now is 05:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration