Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 23
Well,hi to every1 on the forums did a partition on bro's hd a few days ago and it seemingly screwed my GRUB up (some mbr issues ).PC wasn't booting so ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Location
    India
    Posts
    57

    GRUB Repairing help

    Well,hi to every1 on the forums did a partition on bro's hd a few days ago and it seemingly screwed my GRUB up (some mbr issues ).PC wasn't booting so got windows up by using fixmbr from the windows XP installation cd
    Just want to get grub back up now so inserted my opensuse 10.2 installation dvd ,selected to repair a previous installation ,went upto to the final step of fixing the boot loader.
    The repair box showed me the existing versions of grub ,from googling i found we need to edit the grub configuration file to get it back running,but from the repair dialog just couldn't find it
    it shows the device.map file and its contents and gives me these errors when finish selecting some configuration

    Code:
    Error 21:Selected disk drives does not exist
    grub ->setup --stage2=/boot/grub/stage2 (hd0) (hd 1,0)
    
    Error 21:Selected disk drives does not exist
    grub >quit
    Can someone help please its driving me nuts

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    Partition Structure has been changed and you have to edit conf files to point to correct partitions.

    Boot up from any LiveCD, mount SuSe partition and post the contents of /boot/grub/menu.lst and /etc/fstab files. Post the output of fdisk -l command too.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Location
    India
    Posts
    57
    thanks for ur help devils_casper

    well here's the contents of fstab

    Code:
    /dev/sda9            /                    ext3       acl,user_xattr        1 1
    /dev/sda10           /home                ext3       acl,user_xattr        1 2
    /dev/sda1            /windows/C           ntfs       ro,users,gid=users,umask=0002,nls=utf8 0 0
    /dev/sda5            /windows/D           ntfs       ro,users,gid=users,umask=0002,nls=utf8 0 0
    /dev/sda6            /windows/E           ntfs       ro,users,gid=users,umask=0002,nls=utf8 0 0
    /dev/sda7            /windows/F           ntfs       ro,users,gid=users,umask=0002,nls=utf8 0 0
    proc                 /proc                proc       defaults              0 0
    sysfs                /sys                 sysfs      noauto                0 0
    debugfs              /sys/kernel/debug    debugfs    noauto                0 0
    usbfs                /proc/bus/usb        usbfs      noauto                0 0
    devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
    /dev/sda7            /data2               ext3       defaults              1 1
    /dev/sda7            /data3               ext3       defaults              1 1
    /dev/sda7            /data4               ext3       defaults              1 1
    /dev/sda7            /data5               ext3       defaults              1 1
    /dev/sda7            /data6               ext3       defaults              1 1
    the problem with /boot/grub/menu.lst is that it doesn't have permission to access by any other user except root.i used ubuntu live cd to access it.in my suse dvd there's an option for rescue system should i use it to change permission on the file and then use ubuntu live cd to get its contents. what would be the command like?

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You can gain root privileges using sudo.
    Execute this
    Code:
    sudo less <path_of_menu.lst_file>
    above command will prompt for password, hit Enter key.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Jul 2007
    Location
    India
    Posts
    57
    done that here's the contents of menu.lst file m8

    Code:
    # Modified by YaST2. Last modification on Thu Jul 26 07:19:10 IST 2007
    default 0
    timeout 8
    gfxmenu (hd0,6)/boot/message
    
    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title openSUSE 10.2
        root (hd0,6)
        kernel /boot/vmlinuz root=/dev/sda7 resume=/dev/sda6 splash=silent showopts
        initrd /boot/initrd
    
    ###Don't change this comment - YaST2 identifier: Original name: failsafe###
    title Failsafe -- openSUSE 10.2
        root (hd0,6)
        kernel /boot/vmlinuz root=/dev/sda7 showopts ide=nodma apm=off acpi=off nore
    sume edd=off 3
        initrd /boot/initrd

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Please post the output of fdisk -l command too.
    Code:
    sudo fdisk -l
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Jul 2007
    Location
    India
    Posts
    57
    sry m8 just forgot to post it
    here it is

    Code:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        1275    10241406    7  HPFS/NTFS
    /dev/sda2            1276       19456   146038882+   f  W95 Ext'd (LBA)
    /dev/sda5            6375       10735    35029701    7  HPFS/NTFS
    /dev/sda6            1276        1467     1542177   82  Linux swap / Solaris
    /dev/sda7            1468        3446    15896286   83  Linux
    /dev/sda8            3447        6374    23519128+  83  Linux
    /dev/sda9           10736       15096    35029701    7  HPFS/NTFS
    /dev/sda10          15097       19456    35021668+   7  HPFS/NTFS
    
    Partition table entries are not in disk order
    
    Disk /dev/sdb: 524 MB, 524288000 bytes
    16 heads, 32 sectors/track, 2000 cylinders
    Units = cylinders of 512 * 512 = 262144 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           1        2000      511984    b  W95 FAT32

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Edit /etc/fstab file. Contents should be
    Code:
    /dev/sda7            /                    ext3       acl,user_xattr        1 1
    /dev/sda8           /home                ext3       acl,user_xattr        1 2
    proc                 /proc                proc       defaults              0 0
    sysfs                /sys                 sysfs      noauto                0 0
    debugfs              /sys/kernel/debug    debugfs    noauto                0 0
    usbfs                /proc/bus/usb        usbfs      noauto                0 0
    devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
    /dev/sda6 none            swap    sw              0       0
    
    /dev/sda1            /windows/C           ntfs      defaults,umask=0  0  0
    /dev/sda5            /windows/D           ntfs      defaults,umask=0  0  0
    /dev/sda9             /data2              ntfs     defaults,umask=0   0  0
    /dev/sda10            /data3              ntfs     defaults,umask=0   0  0
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Jul 2007
    Location
    India
    Posts
    57
    will try that 1
    btw can i use the supergrub cd just in case this doesn't work coz i found a similar solution suggested by u on the tuxforums ?

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    SuperGRUB is for re-installing GRUB only. If conf files are not correct, SuperGRUB will not work.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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