LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-24-2008, 02:33 PM   #1
diver
LQ Newbie
 
Registered: Apr 2008
Posts: 24

Rep: Reputation: 15
problem with partition


Hi.
I have 120GB disk

/dev/sda1 * 1 244 1959898+ 82 Linux swap
/dev/sda2 245 14593 115258342+ 5 Extended
/dev/sda3 6324 10457 33206355 83 Linux
/dev/sda5 245 3000 22137538+ 83 Linux


I need to add /dev/sda4 new partition.
If i add new one it appear as /dev/sda6, /dev/sda7
How can i create /dev/sda4 without delete /dev/sda5 - its
my main slack partition.

Thanks
 
Old 04-24-2008, 02:51 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
fdisk will do this--I just did it on my machine with a very similar configuration. sda4 will start after sda5, which it not in itself and issue.

The problem will come when you later try to add more logical partitions--I'm not sure if the logicals can be non-contiguous.

Why not just let it create sda6, sda7, etc.?
 
Old 04-24-2008, 02:57 PM   #3
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
Quote:
How can i create /dev/sda4 without delete /dev/sda5
You can't. /dev/sda4 is the extended partition that holds /dev/sda5, /dev/sda6, etc. You can delete /dev/sda5 & all partitions above it, then create a new primary partition, /dev/sda4, but then you can't do extended partitions.
Regards,
Bill
 
Old 04-24-2008, 02:58 PM   #4
diver
LQ Newbie
 
Registered: Apr 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Hi. fdisk let me only do sda6, sda7 ...
why need sda3? I would like to test new ubuntu and can not install it.
I think it is because of my partition order ...
It see only sda and not partitions. Maybe its a bug ? Not shoure

Thanks
 
Old 04-24-2008, 03:19 PM   #5
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Partition order will almost never be an issue when installing something. Ubuntu should be able to install on a higher partition number (ie a logical partition) without any problems (if I'm wrong, tell me so -- but I'd be surprised). sda is the actual drive. If it doesn't see ANY partitions, then you're either doing something wrong or the kernel is not detecting your hardware very well. Can you tell us WHERE in the installation it is only detecting sda and no partitions? Where are you stuck? Can you continue to a next step that will clarify all of these problems? Although this article is about dual booting with Windows, the principles remain and it details every step of the install process, with screenshots: http://www.psychocats.net/ubuntu/installing (Of course it's for Gutsy Gibbon and not Hardy Heron, but the principles should be the same).
 
Old 04-24-2008, 03:26 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by TSquaredF View Post
You can't. /dev/sda4 is the extended partition that holds /dev/sda5, /dev/sda6, etc. You can delete /dev/sda5 & all partitions above it, then create a new primary partition, /dev/sda4, but then you can't do extended partitions.
Regards,
Bill
Nope....
In his case sda2 is the extended partition. My system is almost the same, and I successfully created sda4. (as a primary)

More generally, ANY partition can be the extended--not just #4.
 
Old 04-24-2008, 05:10 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
O.K. pix, how do you do that with no unallocated space, as is likely the case here ???.
If the OP had given us better information, s/he may have gotten more consistent answer(s).

Ubuntu by default (like many/most/all of the mega GUI based distros) has a lame installer. Theirs defaults to a primary for the root, and a logical for swap. Go figure.
@diver, allocate a new (logical) partition in the free space prior to the install. Use expert mode (or whatever they call it) during the partitioning, and assign the new partition as your root partition - you can also use your current swap with Ubuntu. Just make sure you don't use hibernate (to swap) on either system if you want to reboot between them.

Last edited by syg00; 04-24-2008 at 05:11 PM.
 
Old 04-24-2008, 05:22 PM   #8
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
O.K. pix, how do you do that with no unallocated space, as is likely the case here ???.
If the OP had given us better information, s/he may have gotten more consistent answer(s).
I you look at the cylinder allocation as reported by the OP there appears to be free spce on the drive in the extended partiton.

I must say though it is a weird looking partition scheme !!

Last edited by bgeddy; 04-24-2008 at 05:28 PM.
 
Old 04-24-2008, 09:22 PM   #9
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
syg00 makes a good point -- make sure you use the 'manual' or 'expert' or whatever they call it mode in Ubuntu's installer and set up the partitions you'd like to use manually (create the desired partitions before even running the Ubuntu installer, and then just choose to use them as appropriate). That's how I installed a dual boot between Windows and Ubuntu on another PC (not one that I use, if you must know) and it worked out fine (though with Gutsy Gibbon instead of Hardy Heron).
 
Old 04-24-2008, 09:30 PM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by syg00 View Post
O.K. pix, how do you do that with no unallocated space, as is likely the case here ???.
I did not do the math--I assumed that, if it would allow a new logical to be created, then there must have been space. Obviously, we need fdisk -l to give the big picture.
 
Old 04-24-2008, 10:36 PM   #11
diver
LQ Newbie
 
Registered: Apr 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Hi every one.
Thanks for help.

First of all, before posting here, i had partitions sda6 and sda7 to use them,
and it was my plan - to use them for testing some new distros.
So i added again sda6 and sda 7 like it was :

Device Boot Start End Blocks Id System
/dev/sda1 * 1 244 1959898+ 82 Linux swap
/dev/sda2 245 14593 115258342+ 5 Extended
/dev/sda3 6324 10457 33206355 83 Linux
/dev/sda5 245 3000 22137538+ 83 Linux
/dev/sda6 3001 4200 9638968+ 83 Linux
/dev/sda7 4201 6323 17052966 83 Linux


I did boot new live cd ubuntu.
I used manual partition option (I know how to go here usually. I used it 100 times before.) BUT here i didn't see my partitions at all.
All i could see its /dev/sda and only to format it all. He he, it was not my plan, i worked hard to get my slack to this stage , so i went to fdisk to play with it, but as you know now i only deleted sda6 and sda7. I firstly thought, that the problem is with missing sda4.

So, u say, missind sda4 can not be the problem.
What else can u advice me?

Quote:
Originally Posted by bgeddy View Post

I must say though it is a weird looking partition scheme !!
U are wright! But, do you think format worth it to create "a cool one" scheme?

Last edited by diver; 04-24-2008 at 10:58 PM.
 
Old 04-25-2008, 08:43 AM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You can't have sda3 (a primary partition) within the extent of the extended partition. Well, you can (as you can see), but eventually it's going to break something.
I'd say an installer has run amok.

Very odd ... I've seen similar, but can't remember the fix. If it were me, I'd just back up what I can, and redo the whole disk layout.
 
Old 04-25-2008, 09:13 AM   #13
diver
LQ Newbie
 
Registered: Apr 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Hi. It's strange ...
I did install with kubuntu new disk and it worked.
More, i could install new sda4 partition
When i run add new partition it made it sda4.
After that i run ubuntu and everything work.

fdisk output now :

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0005c927

Device Boot Start End Blocks Id System
/dev/sda1 * 1 244 1959898+ 82 Linux swap
/dev/sda2 245 6323 48829567+ 5 Extended
/dev/sda3 6324 10457 33206355 83 Linux
/dev/sda4 10458 14593 33222420 83 Linux
/dev/sda5 245 3000 22137538+ 83 Linux
/dev/sda6 3001 6323 26691966 83 Linux


He , he ... what u say ?
 
Old 04-25-2008, 12:40 PM   #14
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
Quote:
Originally Posted by diver View Post
/dev/sda1 * 1 244 1959898+ 82 Linux swap
/dev/sda2 245 14593 115258342+ 5 Extended
/dev/sda3 6324 10457 33206355 83 Linux
/dev/sda5 245 3000 22137538+ 83 Linux
Wrong partition scheme.
Quote:
Originally Posted by diver View Post
Hi every one.
Device Boot Start End Blocks Id System
/dev/sda1 * 1 244 1959898+ 82 Linux swap
/dev/sda2 245 14593 115258342+ 5 Extended
/dev/sda3 6324 10457 33206355 83 Linux
/dev/sda5 245 3000 22137538+ 83 Linux
/dev/sda6 3001 4200 9638968+ 83 Linux
/dev/sda7 4201 6323 17052966 83 Linux
Wrong partition scheme.
Quote:
Originally Posted by diver View Post
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0005c927

Device Boot Start End Blocks Id System
/dev/sda1 * 1 244 1959898+ 82 Linux swap
/dev/sda2 245 6323 48829567+ 5 Extended
/dev/sda3 6324 10457 33206355 83 Linux
/dev/sda4 10458 14593 33222420 83 Linux
/dev/sda5 245 3000 22137538+ 83 Linux
/dev/sda6 3001 6323 26691966 83 Linux
Correct partition scheme.
 
Old 04-25-2008, 12:46 PM   #15
diver
LQ Newbie
 
Registered: Apr 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Road_map.
I got your point.
Thanks.
 
  


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
,dmrc problem after moving /home partition to NTFS partition yeehung Linux - Newbie 1 11-14-2007 06:17 AM
partition problem westcor Linux - Software 1 11-29-2005 05:12 PM
Partition problem with Qtparted in Knoppix variety & mp3 support problem in FC3 eypros Linux - Software 1 06-01-2005 07:12 PM
boot problem/ partition problem? ian sil Linux - General 1 05-10-2005 06:08 PM
Problem Resizing Linux Partition From Partition magic John_Emad SUSE / openSUSE 5 02-16-2005 12:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10: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