SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/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.
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
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
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).
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.
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.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
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 !!
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).
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.
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
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?
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.
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
/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
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.