-   Linux - Hardware (
-   -   Re-joining Partitioned Hard drive (

akitta 09-07-2013 02:00 PM

Re-joining Partitioned Hard drive
I Tried installing another Distro' of Ubuntu on My Sony Vaio. 1TB.

I think the trouble i have is /dev/sda2 is a logical Partition.
I'm on a live session now.

Why carn't I unmount This Partition?

I need to re-join these partitions together..
I'm a bit worried about using fdisk.
But i think i'm going to have to try.
Going to go and Make a Back Up :doh:

John VV 09-07-2013 03:09 PM

if you are currently using /dev/sda2 then you can NOT unmount it because you are using it

you are trying to install a SECOND version of Ubuntu

as in 2 installs of the current 12.10 ?
or 12.10 and 13.04 ?
or what ?

the output of
--- run as root ---

fdisk -l
would help

akitta 09-07-2013 04:00 PM

Here is output of 'fdisk'

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xa250e0a5

Device Boot Start End Blocks Id System
/dev/sda1 2048 492365472 246181712+ 83 Linux
/dev/sda2 492365822 1953523711 730578945 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5 1936850944 1953523711 8336384 82 Linux swap / Solaris

I was trying to install Blackbuntu along with Ubuntu. 12.10. But i Partitioned the HD the wrong way (I want ubuntu to have the biggest Part).
I want to put sda1 back into sda2.

John VV 09-07-2013 04:10 PM


/dev/sda2 492365822 1953523711 730578945 5 Extended
well you have no logical partitions on that extended partition
so there should be NO data there and no files
it should just be a empty unset up partition

use gparted live cd
and add logical partitions
sda3,sda4 to it

but i would just reformat and start over again

back up needed data and files to dvd or to a different drive

akitta 09-07-2013 04:23 PM

On gparted, It says unallocated but there is a extended Partition, It looks ntfs, It's locked. it's as if the unallocated is inside of it.

I think a fresh boot is the best way to go.
I can have a go at doing it.. (Maybe i will learn something) didn't mean learn something from re

Infact i was using gparted from a live usb. Shouldn't that mean i wasn't using any of the drives?

michaelk 09-07-2013 04:37 PM

In a nutshell sda2 is just a container for logical partitions i.e those partitions >=5. It is not an actual filesystem.

If you want to add more space to sda1 then I would suggest running gparted from a live CD and deleting sda2 and sda5. swap space can easily be recreated. You can resize sda1 as desired. Then recreate the extended (to include the rest of the disk) and sda5 for swap (and format it).

You can now install blackbuntu.

Be sure to backup any important data just in case.

akitta 09-08-2013 06:10 AM

Muchos Gracias Micheal..,

Think i've done it (well it's booted into Ubuntu after Extending /devsda1) :)

I put Linux-swap back.
Not to sure how to do this bit

Then recreate the extended (to include the rest of the disk)
This is what it looks like now.

michaelk 09-08-2013 07:15 AM

Since swap is now on a different partition Ubuntu will not automatically use it unless you change the /etc/fstab.

Since you have used the entire disk for sda1 there isn't any room for Blackbuntu.

akitta 09-08-2013 07:30 AM

I did this on purpose. I was going to use (Install side by side, to Partition blackbuntu).

The bb install doesn't let me continue at choose picture.

I'll go and look how i change fstab.

fstab -

Do i do it like this.
/dev/sda2 swap swap default 1933045760 1953523711

Here is fsdisk -l

Device Boot Start End Blocks Id System
/dev/sda1 2048 1448157690 724077821+ 83 Linux
/dev/sda2 1933045760 1953523711 10238976 82 Linux swap / Solaris
/dev/sda3 1448159230 1933045759 242443265 5 Extended <--this is 2nd bb attempt
Partition 3 does not start on physical sector boundary.

michaelk 09-08-2013 07:37 AM


/dev/sda2 swap swap default 0 0
The fifth field is for the dump command and six fsck. See man fstab for a complete definition.

akitta 09-08-2013 08:16 AM

Device Boot Start End Blocks Id System
/dev/sda1 2048 1448157690 724077821+ 83 Linux
/dev/sda2 1933045760 1953523711 10238976 82 Linux swap / Solaris
/dev/sda3 1448159232 1933045759 242443264 83 Linux

Downloading bb again, and made Partition for it.
(Does the swap have to be on the end..?)

Thankyou for helping me with This ;)

michaelk 09-08-2013 08:23 AM


akitta 09-12-2013 01:18 PM

I now want to add a vista partition.
I've made the partition /dev/sda5/ into a NTFS partition. But when trying to install it's saying (well i think it's equivalent of> ' no root folder').
So how to I make a ('/' If i was installing linux). I don't want windows to format the partition itself.
I know i will have to fix the Grub Menu after doing this.

michaelk 09-12-2013 01:26 PM

Vista requires a primary partition. How is the drive currently partitioned?

John VV 09-12-2013 01:44 PM

and vista will want to be on the FIRST partition on the drive and have it's bootloader on the MBR

this is why almost every guide has you install Microsoft windows first

All times are GMT -5. The time now is 11:21 AM.