LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Create a dualboot system by repartitioning an existing hard drive (https://www.linuxquestions.org/questions/fedora-35/create-a-dualboot-system-by-repartitioning-an-existing-hard-drive-4175423008/)

satimis 08-20-2012 03:21 AM

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

yancek 08-20-2012 04:21 PM

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.


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