Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18
It seems as though no matter what command I enter into the grub command line I get "Error 27 Unrecognized command" How do I fix this?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Jan 2010
    Location
    Mass
    Posts
    9

    It seems as though no matter what command I enter into the grub command line I get "Error 27 Unrecognized command"

    How do I fix this?

  2. #12
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,101
    Can you still boot xp and Ubuntu with both drives attached? If you used the commands I suggested in my earlier post and set the external as first boot priority, it would be completely illogical to get the result you did "cannot mount selected partition"?? Run the sudo fdisk -l command and post again and post your menu.lst file.

  3. #13
    Just Joined!
    Join Date
    Jan 2010
    Location
    Mass
    Posts
    9
    yes, this has all happen with both drive attached. When i rebooted it brought up the dual boot menu, I chose Ubuntu and got the error that i mentioned, i then rebooted and tried xp got another error. Then i rebooted, went into setup and changed the boot order to boot my internal drive first, after that i was able to select and boot into ubuntu or windows.

    Disk /dev/sda: 58.5 GB, 58506416640 bytes
    255 heads, 63 sectors/track, 7113 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x41ab2316

    Device Boot Start End Blocks Id System
    /dev/sda1 1 5 40131 6 FAT16
    /dev/sda2 * 6 5063 40628385 7 HPFS/NTFS
    /dev/sda3 5064 6653 12771675 7 HPFS/NTFS
    /dev/sda4 6654 7113 3694950 db CP/M / CTOS / ...

    Disk /dev/sdb: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x5c74ae42

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 29063 233448516 7 HPFS/NTFS
    /dev/sdb2 * 29064 29685 4996215 83 Linux
    /dev/sdb3 30153 30401 2000092+ 82 Linux swap / Solaris
    /dev/sdb4 29686 30152 3751177+ 83 Linux

    Partition table entries are not in disk order
    -------------------------------------------------------------------------------------------------------
    # examples
    #
    # title Windows 95/98/NT/2000
    # root (hd0,0)
    # makeactive
    # chainloader +1
    #
    # title Linux
    # root (hd0,1)
    # kernel /vmlinuz root=/dev/hda2 ro
    #

    #
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below

    ## DO NOT UNCOMMENT THEM, Just edit them to your needs

    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ## kopt_2_6_8=root=/dev/hdc1 ro
    ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=5950d448-faaa-46a1-b574-3a800da41a80 ro

    ## Setup crashdump menu entries
    ## e.g. crashdump=1
    # crashdump=0

    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd1,1)

    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ## alternative=false
    # alternative=true

    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ## lockalternative=false
    # lockalternative=false

    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash

    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ## lockold=true
    # lockold=false

    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=

    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0

    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ## altoptions=(recovery) single
    # altoptions=(recovery mode) single

    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ## howmany=7
    # howmany=all

    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ## memtest86=false
    # memtest86=true

    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false

    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false

    ## ## End Default Options ##

    title Ubuntu 8.04, kernel 2.6.24-16-generic
    root (hd1,1)
    kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=5950d448-faaa-46a1-b574-3a800da41a80 ro quiet splash
    initrd /boot/initrd.img-2.6.24-16-generic
    quiet

    title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
    root (hd1,1)
    kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=5950d448-faaa-46a1-b574-3a800da41a80 ro single
    initrd /boot/initrd.img-2.6.24-16-generic

    title Ubuntu 8.04, kernel 2.6.22-14-generic
    root (hd1,1)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5950d448-faaa-46a1-b574-3a800da41a80 ro quiet splash
    initrd /boot/initrd.img-2.6.22-14-generic
    quiet

    title Ubuntu 8.04, kernel 2.6.22-14-generic (recovery mode)
    root (hd1,1)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5950d448-faaa-46a1-b574-3a800da41a80 ro single
    initrd /boot/initrd.img-2.6.22-14-generic

    title Ubuntu 8.04, memtest86+
    root (hd1,1)
    kernel /boot/memtest86+.bin
    quiet

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title Other operating systems:
    root


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda1
    title Dell Utility Partition
    root (hd0,0)
    savedefault
    makeactive
    chainloader +1


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda2
    title Microsoft Windows XP Professional
    root (hd0,1)
    savedefault
    makeactive
    chainloader +1


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda4
    title Windows NT/2000/XP
    root (hd0,3)
    savedefault
    makeactive
    chainloader +1

  4. #14
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,101
    Boot into Ubuntu and go to the device.map file, in /boot/grub/ directory. Post it, it's a very small file.
    In Ubuntu terminal do: sudo grub (enter your password when prompted and you should get the grub prompt: grub>) type geometry (hd0) (hit enter key), then type: geometry (hd1)(hit enter key and post output.

  5. #15
    Just Joined!
    Join Date
    Jan 2010
    Location
    Mass
    Posts
    9
    device.map:

    (hd0) /dev/sda
    (hd1) /dev/sdb


    grub> geometry (hd0)
    drive 0x80: C/H/S = 7113/255/63, The number of sectors = 114270345, /dev/sda
    Partition num: 0, Filesystem type is fat, partition type 0x6
    Partition num: 1, Filesystem type unknown, partition type 0x7
    Partition num: 2, Filesystem type unknown, partition type 0x7
    Partition num: 3, Filesystem type unknown, partition type 0xdb

    grub> geometry (hd1)
    drive 0x81: C/H/S = 30401/255/63, The number of sectors = 488397168, /dev/sdb
    Partition num: 0, Filesystem type unknown, partition type 0x7
    Partition num: 1, Filesystem type is ext2fs, partition type 0x83
    Partition num: 2, Filesystem type unknown, partition type 0x82
    Partition num: 3, Filesystem type is ext2fs, partition type 0x83

  6. #16
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,101
    So sda is (hd0 )and sdb is (hd1)

    Then booting into Ubuntu 8.04 on the external drive and entering the following commands should enable you to boot only Ubuntu on the external drive. You must have the external set to first boot; priority in the BIOS for this to work:

    sudo grub (hit the enter key, enter your password, hit enter key, get grub prompt)

    At the grub prompt enter: root (hd1,1) (hit the enter key)
    type: setup (hd1) (hit the enter key)
    type: quit

    Set the BIOS to boot first from external and you should be able to boot Ubuntu on the external. If that doesn't work, I don't know what will?

    If this does work, you will still need to restore the windows bootloader to the mbr of the internal drive to boot windows.

  7. #17
    Just Joined!
    Join Date
    Jan 2010
    Posts
    1
    Which version of Ubuntu are you using? You have installed GRUB in MBR of internal disk but its conf files are in External disk.

  8. #18
    Just Joined!
    Join Date
    Jan 2010
    Location
    Mass
    Posts
    9
    Quote Originally Posted by yancek View Post
    So sda is (hd0 )and sdb is (hd1)

    Then booting into Ubuntu 8.04 on the external drive and entering the following commands should enable you to boot only Ubuntu on the external drive. You must have the external set to first boot; priority in the BIOS for this to work:

    sudo grub (hit the enter key, enter your password, hit enter key, get grub prompt)

    At the grub prompt enter: root (hd1,1) (hit the enter key)
    type: setup (hd1) (hit the enter key)
    type: quit

    Set the BIOS to boot first from external and you should be able to boot Ubuntu on the external. If that doesn't work, I don't know what will?

    If this does work, you will still need to restore the windows bootloader to the mbr of the internal drive to boot windows.
    Sorry for not posting back earlier but I tried this and still no luck. However, I realized that when the error occurs it says that it is trying to load grub stage1.5. Does this change anything? I dont know if it always said this and I missed it or if the message changed as a result of something that I did. Any new ideas?

    Thanks

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •