You are not logged in.

#1 2012-07-15 21:11:16

Thom
Member
Registered: 2012-05-22
Posts: 72
Website

[solved] - Grub - can't boot

Hi everyone !

I've read some stuff on the wiki on read many topic on the forum, but I can't solve my problem...

Now, i'm on a Live Cd (mint) for fixed it.

Disk

I've got a 4 disk.

My arch one
-sda1 rfs 20 gb /
-sda4 xfs 120gb /home
-sda5 fat 6gb /partage - for quick partage with my windows, I've to try to found another R&W file system
-sda6 swap 4gb

My SSD win
-sdb2 ext2 100mb boot - Yes, i know 100mb is too much
-sdb1 ntfs - win ssd

My win' home
-sdbc

My hard drive back up
-sdd

This the fdisk :

Disk /dev/sda: 160.0 GB, 160040803840 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312579695 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: 0x17df17de

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63    43552214    21776076   83  Linux
/dev/sda3       293060720   312579694     9759487+   5  Extended
/dev/sda4        43552215   293060719   124754252+  83  Linux
/dev/sda5   *   293060783   304772104     5855661   83  Linux
/dev/sda6       304772168   312579694     3903763+  83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 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: 0x24880018

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *      206848   250068991   124931072    7  HPFS/NTFS/exFAT
/dev/sdb2   *          63      206847      103392+  83  Linux

Partition table entries are not in disk order

Disk /dev/sdd: 320.1 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625140335 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: 0xd1c3b656

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1            2048   625137663   312567808    7  HPFS/NTFS/exFAT
/dev/sdd4   *           0           0           0    0  Empty

Disk /dev/sdc: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 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: 0x72599e54

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048  1250260991   625129472    7  HPFS/NTFS/exFAT
/dev/sdc2      1250260992  1250263039        1024    7  HPFS/NTFS/exFAT
/dev/sdc4   *           0           0           0    0  Empty

Disk /dev/sde: 4009 MB, 4009754624 bytes
64 heads, 32 sectors/track, 3824 cylinders, total 7831552 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: 0x2d2040cf

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1   *           0     1812479      906240   17  Hidden HPFS/NTFS

Disk /dev/sde1: 927 MB, 927989760 bytes
64 heads, 32 sectors/track, 885 cylinders, total 1812480 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: 0x2d2040cf

     Device Boot      Start         End      Blocks   Id  System
/dev/sde1p1   *           0     1812479      906240   17  Hidden HPFS/NTFS

So, I have a grub install on sdb2 and my arch install on sda1.
My menu.lst is :
The win chain is workin.

# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst

# DEVICE NAME CONVERSIONS 
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,1)
#  /dev/sda3       (hd0,2)
#

#  FRAMEBUFFER RESOLUTION SETTINGS
#     +-------------------------------------------------+
#          | 640x480    800x600    1024x768   1280x1024
#      ----+--------------------------------------------
#      256 | 0x301=769  0x303=771  0x305=773   0x307=775
#      32K | 0x310=784  0x313=787  0x316=790   0x319=793
#      64K | 0x311=785  0x314=788  0x317=791   0x31A=794
#      16M | 0x312=786  0x315=789  0x318=792   0x31B=795
#     +-------------------------------------------------+
#  for more details and different resolutions see
#  https://wiki.archlinux.org/index.php/GRUB#Framebuffer_resolution

# general configuration:
timeout   10
default   0
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

# (0) Arch Linux
title  Arch Linux
root   (hd0,1)
kernel /vmlinuz-linux root=/dev/sda1 ro
initrd /initramfs-linux.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,1)
kernel /vmlinuz-linux root=/dev/sda1 ro
initrd /initramfs-linux-fallback.img

# (2) Windows
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1

What I'm doing wrong ?

I apologie for my english and trulley thanks you for any help.

Last edited by Thom (2012-07-16 23:11:26)

Offline

#2 2012-07-15 21:23:35

Arctus
Member
Registered: 2012-07-14
Posts: 99

Re: [solved] - Grub - can't boot

Since windows is working, and it's on hd0,0 in menu.lst, your arch disk is probably not hd0. Try changing the Linux roots to (hd1,1), (hd2,1) and (hd3,1) (This can be done by pressing E whilst in Grub, if you didn't already know this).

Offline

#3 2012-07-15 21:26:36

Thom
Member
Registered: 2012-05-22
Posts: 72
Website

Re: [solved] - Grub - can't boot

My "boot" partition is on the ssd, so on the same disk than win but not on the same partition.

Offline

#4 2012-07-15 21:36:02

Arctus
Member
Registered: 2012-07-14
Posts: 99

Re: [solved] - Grub - can't boot

Oh, sorry, hadn't noticed you're using a separate boot partition, never really seen a reason to do that.
Where in the process does it fail?
You could try using the UUID instead of /dev/sda1, in case the disks are named differently in Grub for some reason (Might be indicated by the disk named sdb in fdisk is hd0 in Grub).
Other than that, I don't think I can help you much, haven't used Grub-legacy in a long time, you could consider trying Grub2 instead, I find it easier to set up.

Last edited by Arctus (2012-07-15 21:36:18)

Offline

#5 2012-07-15 21:47:33

Thom
Member
Registered: 2012-05-22
Posts: 72
Website

Re: [solved] - Grub - can't boot

I make this choice for testing some fun file system for / and still have a fast boot.

uuid sound a good idea :

mint@mint ~ $ sudo ls -lF /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Jul 15 20:51 3A7437317436EEEF -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jul 15  2012 4bcd96bd-ee8f-4411-ba5c-a1d42e5bc44f -> ../../sda6
lrwxrwxrwx 1 root root 10 Jul 15 20:53 6111e8b1-ba2d-427c-8d54-7a7b022aecbf -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 15 20:53 ADA6-3C08 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jul 15  2012 C8745CE5745CD830 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jul 15 20:53 d808df0a-49ac-4618-a934-0d2fe0470291 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jul 15 20:51 e9e0a468-7114-48da-9b6d-bacf1ceef13d -> ../../sdb2
lrwxrwxrwx 1 root root 10 Jul 15 20:53 F22C0F1D2C0EDC8B -> ../../sdc1

give me a new menu.lst (just for the first arch line)

# (0) Arch Linux
title  Arch Linux
root   (hd0,1)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/6111e8b1-ba2d-427c-8d54-7a7b022aecbf ro
initrd /initramfs-linux.img

The first root (hd0,1) is for the "boot" ?
the second root = dev/... is for the "/" ?

Offline

#6 2012-07-15 21:54:47

Thom
Member
Registered: 2012-05-22
Posts: 72
Website

Re: [solved] - Grub - can't boot

Argh... same error

::Running Hook [udev]
::Triggering uevents...done
Waiting 10 seconds for device /dev/disk/by-uuid/6111e8b1-ba2d-427c-8d54-7a7b022aecbf ...

Root device '/dev/disk/by-uuid/6111e8b1-ba2d-427c-8d54-7a7b022aecbf' doesn't exit. Attempting to create it.

ERROR : Unable to determine major / minor number of root device '/dev/disk/by-uuid/6111e8b1-ba2d-427c-8d54-7a7b022aecbf'

You are being dropped to a recovery shell
Type 'exit' to try and continue booting

sh : can't access tty ; job control turned off

Offline

#7 2012-07-15 21:55:28

Arctus
Member
Registered: 2012-07-14
Posts: 99

Re: [solved] - Grub - can't boot

Yes, that looks correct, except you might want to add /boot infront of it, as in /boot/vmlinuz... and /boot/initram... , although I'm not sure it's needed, the wiki is unclear.

Offline

#8 2012-07-15 22:07:33

Thom
Member
Registered: 2012-05-22
Posts: 72
Website

Re: [solved] - Grub - can't boot

It's a little bite late (nearly one in the morning)

Thanks for helping, I will try to fixed it tomorrow.

Offline

#9 2012-07-16 09:35:46

Arctus
Member
Registered: 2012-07-14
Posts: 99

Re: [solved] - Grub - can't boot

That error is probably not Grub related, it seems to be a problem with your initramfs, as seen in this thread.
Can you post your hooks line in /etc/mkinitcpio ?

Offline

#10 2012-07-16 12:41:37

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [solved] - Grub - can't boot

Rebuild your initramfs but keep the autodetect hook, else it would be like booting the Fallback image.

https://wiki.archlinux.org/index.php/Pa … onger_boot.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#11 2012-07-16 23:12:27

Thom
Member
Registered: 2012-05-22
Posts: 72
Website

Re: [solved] - Grub - can't boot

Thanks all !

Many mistake with pacman. I just re-install all and it's just working.

(See you soon ! )

Offline

Board footer

Powered by FluxBB