bug-parted
[Top][All Lists]
Advanced

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

Re: Creating partitions


From: Helge Fredriksen
Subject: Re: Creating partitions
Date: Mon, 12 Apr 2010 13:52:58 +0200

Hello again!

I've been reading a bit more on GRUB, and it seems like I have overseen a stage in the
bootstrap process. I thought that the bootable entry in the partition table gave control
directly to whatever bootloader was located in the partition pointed to, BUT, it seems
there is an intermediate stage 1.5 (http://en.wikipedia.org/wiki/GNU_GRUB) where control
is passed to "the first 30 kilobytes of hard disk immediately following the MBR".

I guess that's what the steps you depict below is referring to? My question then: Is
parted involved ONLY in editing MBR or does it edit these 30 kilobytes as well?

If not, how can I in a install script perform the steps below?

Regards,
Helge Fredriksen

2010/4/12 Tim Eberhardt <address@hidden>
Hello Helge!

First you should flag the NTFS partition as bootable. Next try to reinstall
grub to the mbr using the grub shell.
e.g.:

# grub --no-floppy
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

If grub is starting correctly and you get an error after selecting your linux
to boot, there is something wrong with your menu.lst.

Best regards
Tim


Am Sonntag 11 April 2010 22:23:29 schrieb Helge Fredriksen:
> Hello!
>
> 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
>
>
> Here's
> Regards,
> Helge Fredriksen



_______________________________________________
bug-parted mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-parted


reply via email to

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