LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-20-2012, 04:21 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Rep: Reputation: 53
Create a dualboot system by repartitioning an existing hard drive


Hi,

I was following;
Dualboot on lvm with luks
http://superuser.com/questions/39271...-lvm-with-luks

to create a dualboot system on the running hard drive and to install Fedora 17 on the unused space. There is plenty of unused space on the hard drive. Only the OS, Ubuntu 12.04, is running.


Hard drive 160G
Installed OS Ubuntu 12.04 desktop, 64bit
OS to be installed Fedora 17 desktop, 64bit

Fired up the PC with Fedora-Live-USB.

# fdisk -l
Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000d52d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   296331263   148164608   83  Linux
/dev/sda2       296333310   312580095     8123393    5  Extended
/dev/sda5       296333312   312580095     8123392   82  Linux swap / Solaris

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 4111 MB, 4111466496 bytes
255 heads, 63 sectors/track, 499 cylinders, total 8030208 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1d459011

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           0     1320959      660480    0  Empty
/dev/sdb2             164        1299         568   ef  EFI (FAT-12/16/32)
/dev/sdb3            1348        3587        1120    0  Empty

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb1'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb1: 676 MB, 676331520 bytes
255 heads, 63 sectors/track, 82 cylinders, total 1320960 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1d459011

     Device Boot      Start         End      Blocks   Id  System
/dev/sdb1p1   *           0     1320959      660480    0  Empty
/dev/sdb1p2             164        1299         568   ef  EFI (FAT-12/16/32)
/dev/sdb1p3            1348        3587        1120    0  Empty

Disk /dev/mapper/live-rw: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders, total 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/live-osimg-min: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders, total 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
/dev/sda Hard drive
/dev/sdb Fedora-Live-USB


# lvm vgchange -a y
Code:
  No volume groups found
# pvdisplay
No printout


Why there are no output? Whether I should skip the lvm part and go straight to parted?

# parted /dev/sda

Please advise. TIA


B.Regards
satimis
 
Old 08-20-2012, 05:21 PM   #2
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,073

Rep: Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804
There's a difference between unused space and unallocated or unpartitioned space. Your fdisk output above shows sda1 taking up over 90% of the drive and the Extended partition also contains only your swap partition. You would need to shrink (resize) sda1 to get space on which you can create another partition (or partitions) for Fedora. Download GParted or PartedMagic and burn it to a CD and use that.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to mount a hard drive with my pre existing file system and data kizoin Linux - Newbie 1 03-23-2010 03:38 PM
how to create a new logical drive in an existing linux system vijaya_svk Linux - Software 5 02-01-2008 11:34 AM
Repartitioning the Hard Drive......... bijit Linux - General 2 07-23-2007 11:34 AM
How to add a hard drive existing Linux system a1ntsk33r3d Linux - Hardware 5 06-28-2005 03:20 PM
How to install a new hard drive on to existing system ksgill Linux - Newbie 3 02-07-2005 01:17 AM


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

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