Difference between revisions of "DVD Install And Custom Partitions"

From LinuxMCE
Jump to: navigation, search
(Details how to use the DVD and still have custom partitions.)
 
m
Line 13: Line 13:
 
where /dev/xxxx is the device you want to partition
 
where /dev/xxxx is the device you want to partition
  
Now use fdisk to create the partitions. The first partition should be big enough to hold LinuxMCE. I choose 80GB, to be on the save side. After that create an extended partition for the rest of the available disk space. Within the extended partition, first create a logical partition for the swap of say 2GB, then a logical partition for the rescue partition of 10GB. The rest of the space, you can partition to your liking. I ended up with this
+
Now use fdisk to create the partitions. The first partition should be big enough to hold LinuxMCE. I chose 80GB, to be on the save side. After that create an extended partition for the rest of the available disk space. Within the extended partition, first create a logical partition for the swap of say 2GB, then a logical partition for the rescue partition of 10GB. The rest of the space, you can partition to your liking. I ended up with this
 
  sda1 = / 80GB
 
  sda1 = / 80GB
 
  sda5 = swap 2GB
 
  sda5 = swap 2GB

Revision as of 12:29, 29 April 2008

Usually, a DVD install will create a standard partitioning schema, where the harddisk is split into 3 areas

sda1 = / (everything except the last 12GB)
sda5 = swap (2GB)
sda6 = /mnt/recovery (10GB)

This setup caused a problem because the harddrive space available where 1.8TB. And the BIOS and/or grub had problems installing relevant files.

Partition the disk

Before the real installation, the harddisk needs to be partitioned and setup the way we want to. To that, we boot with any live CD, or the LinuxMCE Installation DVD. I used the LinuxMCE installation DVD. Booting will present the menu, where we want to install LinuxMCE. We don't choose anything, but press <ALT><F2> to get a prompt.

Execute

sudo fdisk /dev/xxxx

where /dev/xxxx is the device you want to partition

Now use fdisk to create the partitions. The first partition should be big enough to hold LinuxMCE. I chose 80GB, to be on the save side. After that create an extended partition for the rest of the available disk space. Within the extended partition, first create a logical partition for the swap of say 2GB, then a logical partition for the rescue partition of 10GB. The rest of the space, you can partition to your liking. I ended up with this

sda1 = / 80GB
sda5 = swap 2GB
sda6 = /mnt/recovery (10GB)
sda7 = rest (1.7xTB)

Instead of using fdisk you can use any other tool you might have. Just make sure to have partitions 1,5 and 6. After creating the partitions, the partitions need to be formatted.

sda1 = mkfs.ext3 /dev/sda1
sda5 = mkswap /dev/sda5
sda6 = mkfs.ext2 /dev/sda6
sda7 = mkfs.ext3 /dev/sda7

The first three are important. The partitions you are creating after the recovery partition, can be anything you like. Now the partitioning is the way we like it.

Marking The HDD As A LinuxMCE Installation

LinuxMCE would repartition the harddisk now, if you would just start the DVD installer. We need fool LinuxMCE Installer into believing we already have a LinuxMCE installation. To do so we have to create a single file.

mount /dev/sda1 /media/target
mkdir /media/target/etc
touch /media/target/etc/pluto.conf

Done. A restart of your system with the DVD in the drive, and LinuxMCE installer will prompt you, if you want to keep your installation. I chose option 2, meaning just the home dir. LinuxMCE installer will now go ahead and install the new system, while preserving your partitions. Upon restarting, AV Wizard, and House Setup, all other partitions will be detected, and you will be asked, how you want to use them. Choose LinuxMCE directory structure, and everything is fine.