LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 09-07-2013, 01:00 PM   #1
akitta
LQ Newbie
 
Registered: Jan 2010
Posts: 29

Rep: Reputation: 0
Re-joining Partitioned Hard drive


I Tried installing another Distro' of Ubuntu on My Sony Vaio. 1TB.
http://postimg.org/image/zdb4vudpt/

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

Last edited by akitta; 09-07-2013 at 01:06 PM.
 
Old 09-07-2013, 02:09 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,110

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
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 ---
Code:
fdisk -l
would help
 
Old 09-07-2013, 03:00 PM   #3
akitta
LQ Newbie
 
Registered: Jan 2010
Posts: 29

Original Poster
Rep: Reputation: 0
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.
 
Old 09-07-2013, 03:10 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,110

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Quote:
/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
http://gparted.sourceforge.net/

but i would just reformat and start over again

back up needed data and files to dvd or to a different drive
 
Old 09-07-2013, 03:23 PM   #5
akitta
LQ Newbie
 
Registered: Jan 2010
Posts: 29

Original Poster
Rep: Reputation: 0
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 formatting..lol
Thanxs.

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

Last edited by akitta; 09-07-2013 at 03:37 PM.
 
Old 09-07-2013, 03:37 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,546

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
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.
 
2 members found this post helpful.
Old 09-08-2013, 05:10 AM   #7
akitta
LQ Newbie
 
Registered: Jan 2010
Posts: 29

Original Poster
Rep: Reputation: 0
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
Quote:
Then recreate the extended (to include the rest of the disk)
This is what it looks like now.
http://postimg.org/image/sg6iyefwx/
 
Old 09-08-2013, 06:15 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,546

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
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.
 
Old 09-08-2013, 06:30 AM   #9
akitta
LQ Newbie
 
Registered: Jan 2010
Posts: 29

Original Poster
Rep: Reputation: 0
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 - http://pastebin.com/bmg4bChF

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.

Last edited by akitta; 09-08-2013 at 06:36 AM.
 
Old 09-08-2013, 06:37 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,546

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Nope.
Quote:
/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.
 
Old 09-08-2013, 07:16 AM   #11
akitta
LQ Newbie
 
Registered: Jan 2010
Posts: 29

Original Poster
Rep: Reputation: 0
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

Last edited by akitta; 09-08-2013 at 07:21 AM.
 
Old 09-08-2013, 07:23 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,546

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Nope.

Last edited by michaelk; 09-08-2013 at 07:31 AM.
 
Old 09-12-2013, 12:18 PM   #13
akitta
LQ Newbie
 
Registered: Jan 2010
Posts: 29

Original Poster
Rep: Reputation: 0
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.

Last edited by akitta; 09-12-2013 at 12:19 PM.
 
Old 09-12-2013, 12:26 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,546

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Vista requires a primary partition. How is the drive currently partitioned?
 
Old 09-12-2013, 12:44 PM   #15
John VV
Guru
 
Registered: Aug 2005
Posts: 12,110

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
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
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Partitioned hard drive, cannot connect to wireless interent layniekay Linux - Wireless Networking 3 08-22-2012 07:55 PM
[SOLVED] How should a secondary,external hard drive be partitioned? rgannon Linux - Newbie 7 03-02-2010 02:36 AM
Need to know the command which shows all non-partitioned & partitioned hard drive saidul Linux - Newbie 2 12-04-2007 04:02 PM
My partitioned hard drive-how to get more use out of it lrecine Linux - Desktop 2 09-08-2006 07:17 AM
Hard drive partitioned and cannot view files Johnny2003 Linux - Newbie 4 01-20-2004 07:22 PM


All times are GMT -5. The time now is 09:09 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration