You are not logged in.

#1 2011-03-05 22:22:58

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

booting from flash, GRUB error

Hi!

I have installed AL on a USB memory stick (default base packages were selected) using uuid for partitions identification. On booting boot partition is found, but GRUB claims partition type is 82 (instead of 83). I have used manual partitioning, and, of course, /boot is Linux partition rather swap one.

The aim is to have a Linux OS for home NAS on flash drive. I have tried Ubuntu Server, it boots from flash drive without problems. But Arch is more appropriate distribution for NAS, I think, as it hasn't pain upgrade procedure as Ubuntu has.

Where to dig in?


"I exist" is the best myth I know..

Offline

#2 2011-03-05 22:52:45

jakobm
Member
Registered: 2008-03-24
Posts: 132

Re: booting from flash, GRUB error

Are you selecting the right partition with grub's 'root' parameter?

Can you provide us with the partition table and the grub configuration?

Offline

#3 2011-03-05 23:00:10

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: booting from flash, GRUB error

jakobm wrote:

Are you selecting the right partition with grub's 'root' parameter?

Can you provide us with the partition table and the grub configuration?

Sure. Not-commented out lines from /boot/grub/menu.lst:

timeout   5
default   0
color light-blue/black light-cyan/blue

# (0) Arch Linux
title  Arch Linux
root   (hd1,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/b6526d0b-875d-46b7-8448-7beb2608c544 ro
initrd /kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd1,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/b6526d0b-875d-46b7-8448-7beb2608c544 ro
initrd /kernel26-fallback.img

hd0 is a hard drive. Partitions are:

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
------------------------------------------------------------------------------
    sdb1        Boot        Primary   Linux ext2                         131.61
    sdb2                    Primary   Linux ext3                       10001.95
    sdb3                    Primary   Linux ext3                        5000.98
    sdb4                    Primary   Linux swap / Solaris              1093.97

I have tried grub>find /[tab] to be sure a root is appropriate. Both img are there.

Last edited by student975 (2011-03-05 23:01:01)


"I exist" is the best myth I know..

Offline

#4 2011-03-06 00:00:58

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: booting from flash, GRUB error

Or such fdisk output with explicit type ids:

-----------
$ sudo fdisk -l /dev/sdb

Disk /dev/sdb: 8006 MB, 8006926336 bytes
247 heads, 62 sectors/track, 1021 cylinders
Units = cylinders of 15314 * 512 = 7840768 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000737ef

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13       99510   83  Linux
/dev/sdb2             919        1021      788671   82  Linux swap / Solaris
/dev/sdb3              14         918     6929585   83  Linux

Partition table entries are not in disk order
-----------

Have no idea wrt  "not in disk order"..


"I exist" is the best myth I know..

Offline

#5 2011-03-06 01:24:27

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: booting from flash, GRUB error

Don't take in mind. I have found my fault. In grub shell I didn't changed root before 'find' command. Sorry for noise. Just first playing with grub.


"I exist" is the best myth I know..

Offline

Board footer

Powered by FluxBB