Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
hi, initially i was using ubuntu-9.10 and recently i installed centOS. now, i m not able to boot ubuntu, only centOS is getting booted, this is the content of my ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    6

    not able to boot both ubuntu and centOS

    hi,
    initially i was using ubuntu-9.10 and recently i installed centOS. now, i m not able to boot ubuntu, only centOS is getting booted, this is the content of my /boot/grb/grub.conf in centOS:
    title CentOS (2.6.18-164.11.1.el5)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.18-164.11.1.el5 ro root=LABEL=/ rhgb quiet
    initrd /boot/initrd-2.6.18-164.11.1.el5.img
    title CentOS (2.6.18-164.el5)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.18-164.el5 ro root=LABEL=/ rhgb quiet
    initrd /boot/initrd-2.6.18-164.el5.img
    title two
    rootnoverify (hd0,4)
    chainloader +1
    title three
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.31-14-generic ro root=LABEL=/
    initrd /boot/initrd.img-2.6.31-14-generic
    title one
    rootnoverify (hd0,3)
    chainloader +1

    can some body please help me out to boot both ubuntu and centOS.

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

    title three is referring to Ubuntu Kernel. What happens when you select three title in GRUB menu? Any error message?

    Boot up CentOS and execute fdisk -l command in Terminal.
    Code:
    su -
    /sbin/fdisk -l
    Post output here.
    * Its small L in fdisk -l.
    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
    Mar 2010
    Posts
    6

    hi

    i executed the command, this is the output i got:

    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 5606 45030163+ 83 Linux
    /dev/sda2 5607 5737 1052257+ 82 Linux swap / Solaris
    /dev/sda4 5738 9729 32065740 5 Extended
    /dev/sda5 5738 5986 2000061 82 Linux swap / Solaris
    /dev/sda6 5987 9729 30065616 83 Linux

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    There is no need to create more than one SWAP partition. You can share single SWAP partition in multiple distros.

    What error does machine throw on selecting three title in GRUB Menu?
    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
    Mar 2010
    Posts
    6

    my error

    Booting 'three'

    root (hd0,5)
    FileSystem type is ext2fs, partition type 0x83
    kernel /boot/vmlinuz-2.6.31-14-generic ro root=LABEL=/

    Error 2: Bad file or directory type

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Something is wrong with Partition structure. Did you shrink Ubuntu partition and create new partition for CentOS?
    Boot up CentOS and mount /dev/sda6 partition. Post the contents of /etc/fstab file here.
    Code:
    su -
    mkdir /media/ubuntu
    mount /dev/sda6 /media/ubuntu
    less /media/ubuntu/etc/fstab
    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
    Mar 2010
    Posts
    6

    contents of /etc/fstab

    this the output for /etc/fstab after mounting ubuntu,

    /etc/fstab: line 1: /: is a directory
    /etc/fstab: line 2: tmpfs: command not found
    /etc/fstab: line 3: devpts: command not found
    /etc/fstab: line 4: sysfs: command not found
    /etc/fstab: line 5: proc: command not found
    /etc/fstab: line 6: swap: command not found
    /etc/fstab: line 7: /dev/sda5: Permission denied

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    It looks like you haven't executed correct command to list contents of /etc/fstab file.
    Did you execute this
    Code:
    less /media/ubuntu/etc/fstab
    ?
    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
    Mar 2010
    Posts
    6

    hi

    this is the output for the command less /mnt/ubuntu/etc/fstab

    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # / was on /dev/sda6 during installation
    UUID=3d0db99a-91c6-44c1-b394-bbe14c3c6035 / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=de06f455-8171-42ad-8315-47d8c3f8b7bf none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    GRUB2 start counting of partition from 1 instead of 0. /dev/sda6 is root partition. Replace (hd0,5) with (hd0,6) in title three block.
    Code:
    title three
    root (hd0,6)
    kernel /boot/vmlinuz-2.6.31-14-generic ro root=LABEL=/
    initrd /boot/initrd.img-2.6.31-14-generic
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 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
  •  
...