Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Forgive me if this has been covered before - it probably has, but I am new to Ubuntu and Linux in general - only made the swap in last couple of months.

I have Mandriva installed on my wifes laptop, and for various reasons she wanted to replace her LinuxMint installation with Ubuntu.

When Ubuntu 11.10 installed, it recognised the Mandriva installation, and created entries in the grub bootloader for "linux (on dev/sda1)" which 'should' be the Mandriva but I get the error message "error: no such partition"

Under Mint (which is built on ubuntu) I could manually edit the /boot/grub/grub.cfg to correctly locate the partition (for some reason ubuntu does not set it right)

  1. Which config file do I need to correct?
  2. I am assuming I need to launch editor from terminal using sudo command to get root priviledges? I am guessing Ubuntu uses gedit too?

` fdisk -l

    Disk /dev/sda: 250.1 GB, 250059350016 bytes    
    255 heads, 63 sectors/track, 30401 cylinders    
    Units = cylinders of 16065 * 512 = 8225280 bytes    
    Sector size (logical/physical): 512 bytes / 512 bytes    
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00044f36



Device Boot      Start         End      Blocks     Id  System

    /dev/sda1   *          63     226195199   113097568+  83  Linux

    /dev/sda2        226195261    488396799   131100769+   5  Extended

    /dev/sda5        226195263    234372284     4088511   82  Linux swap / Solaris

    /dev/sda6        479608832    488396799     4393984   82  Linux swap / Solaris

    /dev/sda7        234373120    253902847     9764864   83  Linux 

    /dev/sda8        253904896    479604735   112849920   83  Linux

    Partition table entries are not in disk order

`

Thanks

share|improve this question

closed as too localized by bodhi.zazen, Bruno Pereira Feb 25 '12 at 1:59

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Did you try sudo update-grub . We also need your grub.cfg file on Ubuntu. And yes, Ubuntu uses Gedit as text editor. You can gain root priviliges with gksudo gedit //boot/grub/grub.cfg –  heartsmagic Nov 21 '11 at 21:57
    
the sudo update-grub did not fix the error, it still tries looking on a non-existant partition but manually editting the Mandriva entry to change the init from hd(0,0) to hd(0,1) fixes the error :) Thanks –  Richard Nov 22 '11 at 21:39
    
Yeah, this is why we need your grub.cfg file :) It's good to see that you solved your problem. –  heartsmagic Nov 22 '11 at 21:44

1 Answer 1

Answered from the comments as part of cleanup:

manually editting the Mandriva entry to change the init from hd(0,0) to hd(0,1)

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.