[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating partitions

From: Helge Fredriksen
Subject: Creating partitions
Date: Sun, 11 Apr 2010 22:23:29 +0200


I have this project where i want to create a dual boot system between Windows and Linux where a script using parted creates partitions for this.
Furthermore, I have a template installation where I copy the Linux partition including grub with dd to a file. This file I want to copy into the
target installation, again using dd.

I have tried making a partition after the windows NTFS partition with parted (also tried manually using fdisk) and then copying the partition image
into this partition with dd if="image-file" of=/dev/sda2, but this do not work! I get "Unable to boot operating system" on that bootable partition.

Any ideas on what I do wrong?

Here's the output from parted -s /dev/sda u s p free

Model: ATA Hitachi HTS72108 (scsi)
Disk /dev/sda: 156301488s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 63s 8610839s 8610777s primary ntfs
2 8610840s 156296384s 147685545s primary ext3 boot

Helge Fredriksen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]