LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-09-2007, 09:50 PM   #1
loincloth170
LQ Newbie
 
Registered: Dec 2006
Location: Texas
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
fdisk Troubles


I'm trying to make a new partition to install Slackware on my computer, which already has three partitions (Windows, Ubuntu, and swap). I'm going to use fdisk, but everytime I do, I type "n", but it gives me an error saying there are no more available sectors left. I thought that you could have four, and I only have three, so what's the problem? Thanks!
 
Old 01-09-2007, 10:06 PM   #2
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 22.04
Posts: 199

Rep: Reputation: 33
How about the output of "fdisk -l"? This information is relevant.

There're only have 4 primary partitions and up to 16 partitions if config extended paritions instead of a primary paritition. for example, assume exist four primary partitions(/dev/hda1, /dev/hda2, /dev/hda3, /dev/hda4), you'll be warned as continute create new partition("n"). So, it's better backup the data of last primary parition, then remove it and create new extended partition to add more logical partitions. First of all, please check "fdisk -l" carefully.


Good luck,
--Phillip

Last edited by PhillipHuang; 01-09-2007 at 10:09 PM.
 
Old 01-09-2007, 10:14 PM   #3
loincloth170
LQ Newbie
 
Registered: Dec 2006
Location: Texas
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
This is what fdisk -l looks like:

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 5099 40957686 7 HPFS/NTFS
/dev/sda2 5100 9561 35841015 83 Linux
/dev/sda3 9562 9726 1325362+ 82 Linux swap/Solaris

Thanks!

Last edited by loincloth170; 01-09-2007 at 11:09 PM.
 
Old 01-09-2007, 11:37 PM   #4
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 22.04
Posts: 199

Rep: Reputation: 33
Would you review the harddisk capacity? Check the Block column of "fdisk -l" output, it seems that the disk is full and no space left.
40957686+35841015+1325362=78124063, depend on the harddisk geometry, it would be 80GB as marked.

Regards,
Phillip
 
Old 01-09-2007, 11:55 PM   #5
loincloth170
LQ Newbie
 
Registered: Dec 2006
Location: Texas
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
So how would I change the partition sizes so that there is enough free space to add another on? Thanks again.
 
Old 01-10-2007, 01:30 AM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
You have several choices:

1. Drop a given partition(s), then recreate >1 partition in the space it used to occupy. For example, you could delete /dev/sda3 and /dev/sda2, then redefine that space into multiple smaller partitions. Note: you would lose any existing data in those partitions.

2. You could use a tool such as BootIT NG to resize your Windows partition. Note that you currently are allocating ~42G of your 80G drive to Windows, and even if half that space is empty/unused, it's all still in a partition that has been allocated to Windows (and thus is unavailable to Linux). To rectify this situation, delete any and all obsolete files in Windows, then run a defrag, then use a partitioning utility to shrink the existing Windows parition and thus make space available to Linux. (The purpose of the defrage is to maximize the amount of contiguous free space, which is helpful when you are resizing) If you shrank your 42G Windows partition down to, say, 30G, you could allocate the remaining 12G to Slack.

3. Do you have a spare hard drive that you could install into your PC? This would permit you to retain your existing installations, while allowing you to install Slack on that second drive.

4. Take the plunge, dump Windows, install Slack in /dev/sda1

Regardless of your decision, be aware that repartitioning work can be risky, so make backups of any important data. Good luck with it, welcome to LQ! As a long-time Slack user, it still remains my #1 distro choice, and I applaud your desire to install it
 
Old 01-10-2007, 10:01 AM   #7
loincloth170
LQ Newbie
 
Registered: Dec 2006
Location: Texas
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Thank you very much for your help! I think I'm going to go with option two right now, and shrink my Windows partition. I'm gradually becoming a Linux-only user, but I occassionaly use XP. Anyway, thanks again for your help!
 
  


Reply



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
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
fdisk not available charlest Fedora 1 07-17-2006 08:45 PM
Using Fdisk??? froggo Red Hat 5 05-05-2006 10:28 PM
troubles with SATA, troubles with NVIDIA aevangelica Linux - Hardware 6 10-17-2005 02:39 AM
fdisk theresaboothe Linux - Newbie 1 02-18-2005 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:52 AM.

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
Open Source Consulting | Domain Registration