You are not logged in.

#1 2012-03-19 20:31:53

brambi
Member
Registered: 2012-01-29
Posts: 17

[SOLVED]Grub not installing

Hey guys,

So I've had my laptop for a few weeks now, but I want to dual boot arch linux with windows 7.

The installation went splendid, but not at the end. When I'm trying to install grub bootloader in AIF I get this in tty7:

grub> device (hd0) /dev/sda
grub> root (hd0,5)
 Filesystem type unknown, partition type 0x6
grub> setup (hd0)

Error 17: Cannot mount selected partition

Any ideas?

It's on a laptop with only 1 hd(which now consists of 5 partitions, windows, recovery, some mystery 100mb, swap and ext4(arch))

Last edited by brambi (2012-03-20 20:42:56)

Offline

#2 2012-03-19 20:35:29

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED]Grub not installing

Have you tried/checked this?


Burninate!

Offline

#3 2012-03-19 20:49:30

brambi
Member
Registered: 2012-01-29
Posts: 17

Re: [SOLVED]Grub not installing

Gcool wrote:

Have you tried/checked this?

Checked it out, thanks!

But that's only for problems when you actually boot it, here I'm in AIF and I can't install it.

And i just checked fdisk, and it's telling me my swap and ext4 are both fat16? or is that normal when installing?

Last edited by brambi (2012-03-19 20:50:36)

Offline

#4 2012-03-19 20:57:32

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED]Grub not installing

That's not normal, no. It's probably the issue mentioned the wiki article (partition table order).

Try applying the mentioned fix and see it that helps. If not, please post the output of "fdisk -l /dev/sda".


Burninate!

Offline

#5 2012-03-19 21:39:59

brambi
Member
Registered: 2012-01-29
Posts: 17

Re: [SOLVED]Grub not installing

Gcool wrote:

That's not normal, no. It's probably the issue mentioned the wiki article (partition table order).

Try applying the mentioned fix and see it that helps. If not, please post the output of "fdisk -l /dev/sda".

Tried the fixing command, tells me "Nothing to do. Ordering is correct already".



and here the requested output:
raswec.png

swap is sda5 and ext4 is sda6 (well it should be)

Last edited by brambi (2012-03-19 22:09:56)

Offline

#6 2012-03-20 07:56:20

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED]Grub not installing

That's strange to say the least; there don't seem to be any ext4/swap partitions present.

Perhaps try removing and recreating said partitions via fdisk and then print the partition table again (fdisk -l) to see what the difference is.


Burninate!

Offline

#7 2012-03-20 08:12:35

brambi
Member
Registered: 2012-01-29
Posts: 17

Re: [SOLVED]Grub not installing

Gcool wrote:

That's strange to say the least; there don't seem to be any ext4/swap partitions present.

Perhaps try removing and recreating said partitions via fdisk and then print the partition table again (fdisk -l) to see what the difference is.

I know right? I'm super positive that I created them with AIF though.

Would you mind explaining how to remove and recreate them with fdisk? I'm totally new to the command line partitioning and i think it's a little dangerous because i might screw up my whole hard disk, like I  once did, oh the horrors.

Last edited by brambi (2012-03-20 08:14:07)

Offline

#8 2012-03-20 08:25:14

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED]Grub not installing

fdisk has a fairly simple layout. If you run "fdisk /dev/sda" and then press "m", you'll get an overview of all the available commands.

What you would be looking for in this case is "d" to delete a partition and "n" to create a new one.


Burninate!

Offline

#9 2012-03-20 10:27:47

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [SOLVED]Grub not installing

I ran into the same problem, AIF created FAT16 partitions.  Finally ended up creating the partition(s) with Mageia's MCC which I had previously installed on another partition on the same hard drive.  Arch installed fine after that.  Arch's AIF has issues.

Probably this could have been fixed with fdisk, but I didn't know how to change partition types with fdisk at the time.

Offline

#10 2012-03-20 13:45:26

brambi
Member
Registered: 2012-01-29
Posts: 17

Re: [SOLVED]Grub not installing

Gcool wrote:

fdisk has a fairly simple layout. If you run "fdisk /dev/sda" and then press "m", you'll get an overview of all the available commands.

What you would be looking for in this case is "d" to delete a partition and "n" to create a new one.

Thanks ! But that's not really the case, its just that when I want to create a new one, I have no idea of how to work with these "sectors".

Offline

#11 2012-03-20 13:57:17

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED]Grub not installing

Normally when you create a new partition in fdisk it'll tell you something among the lines of "Last cylinder or +size or +sizeM or +sizeK"; which does exacltly what it says.

If you would want to create a partition of 1Gb for example; you simply enter "+1024M". It's not necessary to deal with certain amounts of sectors.


Burninate!

Offline

#12 2012-03-20 20:42:28

brambi
Member
Registered: 2012-01-29
Posts: 17

Re: [SOLVED]Grub not installing

Gcool wrote:

Normally when you create a new partition in fdisk it'll tell you something among the lines of "Last cylinder or +size or +sizeM or +sizeK"; which does exacltly what it says.

If you would want to create a partition of 1Gb for example; you simply enter "+1024M". It's not necessary to deal with certain amounts of sectors.

Ok thanks! first didn't get the "+size*" options, but now it did. Everything re-partitioned and installed now.

Thanks a lot guys!

Last edited by brambi (2012-03-20 20:54:34)

Offline

Board footer

Powered by FluxBB