Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: grub2 can not find device for /, big mess-up

  1. #21
    Join Date
    Feb 2009
    Location
    Le Petit Rocher
    Beans
    1,549
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: grub2 can not find device for /, big mess-up

    Here is the full output of the code that you gave me.

    Code:
    
    ubuntu@ubuntu:~$ sudo cp /etc/resolv.conf /mnt/etc
    ubuntu@ubuntu:~$ sudo chroot /mnt
    root@ubuntu:/# dpkg-divert --local --rename --add /sbin/initctl
    Adding `local diversion of /sbin/initctl to /sbin/initctl.distrib'
    root@ubuntu:/# ln -s /bin/true /sbin/initctl
    root@ubuntu:/# apt-get update
    Hit http://security.ubuntu.com karmic-security Release.gpg
    Ign http://security.ubuntu.com karmic-security/main Translation-en_US
    Hit http://archive.canonical.com karmic Release.gpg                 
    Ign http://archive.canonical.com karmic/partner Translation-en_US    
    Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
    Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
    Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
    Hit http://security.ubuntu.com karmic-security Release               
    Hit http://us.archive.ubuntu.com karmic Release.gpg                  
    Ign http://us.archive.ubuntu.com karmic/main Translation-en_US
    Hit http://archive.canonical.com karmic Release
    Ign http://us.archive.ubuntu.com karmic/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic/universe Translation-en_US
    Ign http://us.archive.ubuntu.com karmic/multiverse Translation-en_US
    Hit http://us.archive.ubuntu.com karmic-updates Release.gpg
    Ign http://us.archive.ubuntu.com karmic-updates/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/universe Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
    Hit http://us.archive.ubuntu.com karmic-backports Release.gpg
    Ign http://us.archive.ubuntu.com karmic-backports/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/universe Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/multiverse Translation-en_US
    Hit http://us.archive.ubuntu.com karmic-proposed Release.gpg       
    Ign http://us.archive.ubuntu.com karmic-proposed/restricted Translation-en_US
    Hit http://security.ubuntu.com karmic-security/main Packages       
    Ign http://us.archive.ubuntu.com karmic-proposed/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-proposed/universe Translation-en_US
    Hit http://archive.canonical.com karmic/partner Packages             
    Hit http://us.archive.ubuntu.com karmic Release                      
    Hit http://us.archive.ubuntu.com karmic-updates Release                        
    Hit http://us.archive.ubuntu.com karmic-backports Release                      
    Hit http://security.ubuntu.com karmic-security/restricted Packages             
    Hit http://security.ubuntu.com karmic-security/main Sources                    
    Hit http://security.ubuntu.com karmic-security/restricted Sources              
    Hit http://archive.canonical.com karmic/partner Sources                        
    Hit http://us.archive.ubuntu.com karmic-proposed Release                       
    Hit http://security.ubuntu.com karmic-security/universe Packages    
    Hit http://security.ubuntu.com karmic-security/universe Sources     
    Hit http://security.ubuntu.com karmic-security/multiverse Packages  
    Hit http://security.ubuntu.com karmic-security/multiverse Sources   
    Hit http://us.archive.ubuntu.com karmic/main Packages               
    Hit http://us.archive.ubuntu.com karmic/restricted Packages
    Hit http://us.archive.ubuntu.com karmic/main Sources
    Hit http://us.archive.ubuntu.com karmic/restricted Sources
    Hit http://us.archive.ubuntu.com karmic/universe Packages
    Hit http://us.archive.ubuntu.com karmic/universe Sources
    Hit http://us.archive.ubuntu.com karmic/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic-updates/main Packages
    Hit http://us.archive.ubuntu.com karmic-updates/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-updates/main Sources
    Hit http://us.archive.ubuntu.com karmic-updates/restricted Sources
    Hit http://us.archive.ubuntu.com karmic-updates/universe Packages
    Hit http://us.archive.ubuntu.com karmic-updates/universe Sources
    Hit http://us.archive.ubuntu.com karmic-updates/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-updates/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic-backports/main Packages
    Hit http://us.archive.ubuntu.com karmic-backports/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-backports/universe Packages
    Hit http://us.archive.ubuntu.com karmic-backports/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/main Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/universe Packages
    Reading package lists... Done
    root@ubuntu:/# apt-get purge grub-pc grub-common
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      grub-common* grub-pc* startupmanager*
    0 upgraded, 0 newly installed, 3 to remove and 208 not upgraded.
    After this operation, 5,333kB disk space will be freed.
    Do you want to continue [Y/n]? y
    Abort.
    root@ubuntu:/# sudo mount /dev/sda2 /mnt
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# for i in dev proc sys dev/pts; do sudo mount --bind  /$i /mnt/$i;done
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# sudo cp /etc/resolv.conf /mnt/etc
    sudo: unable to resolve host ubuntu
    cp: `/etc/resolv.conf' and `/mnt/etc/resolv.conf' are the same file
    root@ubuntu:/# sudo chroot /mnt
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# dpkg-divert --local --rename --add /sbin/initctl
    Leaving `local diversion of /sbin/initctl to /sbin/initctl.distrib'
    root@ubuntu:/# ln -s /bin/true /sbin/initctl
    ln: creating symbolic link `/sbin/initctl': File exists
    root@ubuntu:/# apt-get update
    Hit http://security.ubuntu.com karmic-security Release.gpg
    Ign http://security.ubuntu.com karmic-security/main Translation-en_US
    Hit http://archive.canonical.com karmic Release.gpg                 
    Ign http://archive.canonical.com karmic/partner Translation-en_US    
    Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
    Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
    Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
    Hit http://security.ubuntu.com karmic-security Release               
    Hit http://us.archive.ubuntu.com karmic Release.gpg                  
    Ign http://us.archive.ubuntu.com karmic/main Translation-en_US
    Hit http://archive.canonical.com karmic Release
    Ign http://us.archive.ubuntu.com karmic/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic/universe Translation-en_US 
    Ign http://us.archive.ubuntu.com karmic/multiverse Translation-en_US
    Hit http://us.archive.ubuntu.com karmic-updates Release.gpg
    Hit http://security.ubuntu.com karmic-security/main Packages         
    Ign http://us.archive.ubuntu.com karmic-updates/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/universe Translation-en_US
    Hit http://archive.canonical.com karmic/partner Packages
    Ign http://us.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
    Hit http://us.archive.ubuntu.com karmic-backports Release.gpg        
    Ign http://us.archive.ubuntu.com karmic-backports/main Translation-en_US
    Hit http://security.ubuntu.com karmic-security/restricted Packages   
    Hit http://security.ubuntu.com karmic-security/main Sources          
    Hit http://security.ubuntu.com karmic-security/restricted Sources    
    Hit http://security.ubuntu.com karmic-security/universe Packages     
    Hit http://archive.canonical.com karmic/partner Sources              
    Ign http://us.archive.ubuntu.com karmic-backports/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/universe Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/multiverse Translation-en_US
    Hit http://us.archive.ubuntu.com karmic-proposed Release.gpg
    Ign http://us.archive.ubuntu.com karmic-proposed/restricted Translation-en_US
    Hit http://security.ubuntu.com karmic-security/universe Sources
    Hit http://security.ubuntu.com karmic-security/multiverse Packages
    Hit http://security.ubuntu.com karmic-security/multiverse Sources
    Ign http://us.archive.ubuntu.com karmic-proposed/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-proposed/universe Translation-en_US
    Hit http://us.archive.ubuntu.com karmic Release
    Hit http://us.archive.ubuntu.com karmic-updates Release
    Hit http://us.archive.ubuntu.com karmic-backports Release
    Hit http://us.archive.ubuntu.com karmic-proposed Release
    Hit http://us.archive.ubuntu.com karmic/main Packages
    Hit http://us.archive.ubuntu.com karmic/restricted Packages
    Hit http://us.archive.ubuntu.com karmic/main Sources
    Hit http://us.archive.ubuntu.com karmic/restricted Sources
    Hit http://us.archive.ubuntu.com karmic/universe Packages
    Hit http://us.archive.ubuntu.com karmic/universe Sources
    Hit http://us.archive.ubuntu.com karmic/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic-updates/main Packages
    Hit http://us.archive.ubuntu.com karmic-updates/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-updates/main Sources
    Hit http://us.archive.ubuntu.com karmic-updates/restricted Sources
    Hit http://us.archive.ubuntu.com karmic-updates/universe Packages
    Hit http://us.archive.ubuntu.com karmic-updates/universe Sources
    Hit http://us.archive.ubuntu.com karmic-updates/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-updates/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic-backports/main Packages
    Hit http://us.archive.ubuntu.com karmic-backports/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-backports/universe Packages
    Hit http://us.archive.ubuntu.com karmic-backports/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/main Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/universe Packages
    Reading package lists... Done
    root@ubuntu:/# apt-get purge grub-pc grub-common
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      grub-common* grub-pc* startupmanager*
    0 upgraded, 0 newly installed, 3 to remove and 208 not upgraded.
    After this operation, 5,333kB disk space will be freed.
    Do you want to continue [Y/n]? 
    Abort.
    root@ubuntu:/# sudo mount /dev/sda2 /mnt
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# for i in dev proc sys dev/pts; do sudo mount --bind  /$i /mnt/$i;done
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# sudo cp /etc/resolv.conf /mnt/etc
    sudo: unable to resolve host ubuntu
    cp: `/etc/resolv.conf' and `/mnt/etc/resolv.conf' are the same file
    root@ubuntu:/# sudo chroot /mnt
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# dpkg-divert --local --rename --add /sbin/initctl
    Leaving `local diversion of /sbin/initctl to /sbin/initctl.distrib'
    root@ubuntu:/# ln -s /bin/true /sbin/initctl
    ln: creating symbolic link `/sbin/initctl': File exists
    root@ubuntu:/# apt-get update
    Hit http://us.archive.ubuntu.com karmic Release.gpg
    Ign http://us.archive.ubuntu.com karmic/main Translation-en_US      
    Hit http://security.ubuntu.com karmic-security Release.gpg          
    Ign http://security.ubuntu.com karmic-security/main Translation-en_US
    Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
    Hit http://archive.canonical.com karmic Release.gpg                  
    Ign http://archive.canonical.com karmic/partner Translation-en_US    
    Ign http://us.archive.ubuntu.com karmic/restricted Translation-en_US 
    Ign http://us.archive.ubuntu.com karmic/universe Translation-en_US
    Ign http://us.archive.ubuntu.com karmic/multiverse Translation-en_US
    Hit http://us.archive.ubuntu.com karmic-updates Release.gpg
    Ign http://us.archive.ubuntu.com karmic-updates/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/universe Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
    Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
    Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
    Hit http://security.ubuntu.com karmic-security Release               
    Hit http://archive.canonical.com karmic Release                      
    Hit http://us.archive.ubuntu.com karmic-backports Release.gpg
    Ign http://us.archive.ubuntu.com karmic-backports/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/universe Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/multiverse Translation-en_US
    Hit http://archive.canonical.com karmic/partner Packages             
    Hit http://security.ubuntu.com karmic-security/main Packages         
    Hit http://us.archive.ubuntu.com karmic-proposed Release.gpg
    Ign http://us.archive.ubuntu.com karmic-proposed/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-proposed/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-proposed/universe Translation-en_US
    Hit http://archive.canonical.com karmic/partner Sources              
    Hit http://us.archive.ubuntu.com karmic Release                      
    Hit http://us.archive.ubuntu.com karmic-updates Release
    Hit http://us.archive.ubuntu.com karmic-backports Release
    Hit http://security.ubuntu.com karmic-security/restricted Packages
    Hit http://security.ubuntu.com karmic-security/main Sources
    Hit http://security.ubuntu.com karmic-security/restricted Sources
    Hit http://security.ubuntu.com karmic-security/universe Packages
    Hit http://security.ubuntu.com karmic-security/universe Sources     
    Hit http://security.ubuntu.com karmic-security/multiverse Packages
    Hit http://security.ubuntu.com karmic-security/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic-proposed Release
    Hit http://us.archive.ubuntu.com karmic/main Packages
    Hit http://us.archive.ubuntu.com karmic/restricted Packages
    Hit http://us.archive.ubuntu.com karmic/main Sources
    Hit http://us.archive.ubuntu.com karmic/restricted Sources
    Hit http://us.archive.ubuntu.com karmic/universe Packages
    Hit http://us.archive.ubuntu.com karmic/universe Sources
    Hit http://us.archive.ubuntu.com karmic/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic-updates/main Packages
    Hit http://us.archive.ubuntu.com karmic-updates/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-updates/main Sources
    Hit http://us.archive.ubuntu.com karmic-updates/restricted Sources
    Hit http://us.archive.ubuntu.com karmic-updates/universe Packages
    Hit http://us.archive.ubuntu.com karmic-updates/universe Sources
    Hit http://us.archive.ubuntu.com karmic-updates/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-updates/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic-backports/main Packages
    Hit http://us.archive.ubuntu.com karmic-backports/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-backports/universe Packages
    Hit http://us.archive.ubuntu.com karmic-backports/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/main Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/universe Packages
    Reading package lists... Done
    root@ubuntu:/# apt-get purge grub-pc grub-common
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      grub-common* grub-pc* startupmanager*
    0 upgraded, 0 newly installed, 3 to remove and 208 not upgraded.
    After this operation, 5,333kB disk space will be freed.
    Do you want to continue [Y/n]? n
    Abort.
    root@ubuntu:/# sudo mount /dev/sda2 /mnt
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# for i in dev proc sys dev/pts; do sudo mount --bind  /$i /mnt/$i;done
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# sudo cp /etc/resolv.conf /mnt/etc
    sudo: unable to resolve host ubuntu
    cp: `/etc/resolv.conf' and `/mnt/etc/resolv.conf' are the same file
    root@ubuntu:/# sudo chroot /mnt
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# dpkg-divert --local --rename --add /sbin/initctl
    Leaving `local diversion of /sbin/initctl to /sbin/initctl.distrib'
    root@ubuntu:/# ln -s /bin/true /sbin/initctl
    ln: creating symbolic link `/sbin/initctl': File exists
    root@ubuntu:/# apt-get update
    Hit http://us.archive.ubuntu.com karmic Release.gpg
    Ign http://us.archive.ubuntu.com karmic/main Translation-en_US      
    Hit http://security.ubuntu.com karmic-security Release.gpg          
    Hit http://archive.canonical.com karmic Release.gpg                  
    Ign http://archive.canonical.com karmic/partner Translation-en_US    
    Ign http://security.ubuntu.com karmic-security/main Translation-en_US
    Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic/restricted Translation-en_US 
    Ign http://us.archive.ubuntu.com karmic/universe Translation-en_US
    Ign http://us.archive.ubuntu.com karmic/multiverse Translation-en_US
    Hit http://us.archive.ubuntu.com karmic-updates Release.gpg
    Ign http://us.archive.ubuntu.com karmic-updates/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/universe Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
    Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
    Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
    Hit http://archive.canonical.com karmic Release                      
    Hit http://security.ubuntu.com karmic-security Release               
    Hit http://us.archive.ubuntu.com karmic-backports Release.gpg
    Ign http://us.archive.ubuntu.com karmic-backports/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/universe Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/multiverse Translation-en_US
    Hit http://us.archive.ubuntu.com karmic-proposed Release.gpg        
    Ign http://us.archive.ubuntu.com karmic-proposed/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-proposed/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-proposed/universe Translation-en_US
    Hit http://archive.canonical.com karmic/partner Packages             
    Hit http://security.ubuntu.com karmic-security/main Packages         
    Hit http://us.archive.ubuntu.com karmic Release
    Hit http://us.archive.ubuntu.com karmic-updates Release
    Hit http://us.archive.ubuntu.com karmic-backports Release
    Hit http://us.archive.ubuntu.com karmic-proposed Release                       
    Hit http://archive.canonical.com karmic/partner Sources              
    Hit http://security.ubuntu.com karmic-security/restricted Packages  
    Hit http://security.ubuntu.com karmic-security/main Sources
    Hit http://security.ubuntu.com karmic-security/restricted Sources
    Hit http://security.ubuntu.com karmic-security/universe Packages
    Hit http://us.archive.ubuntu.com karmic/main Packages
    Hit http://us.archive.ubuntu.com karmic/restricted Packages
    Hit http://us.archive.ubuntu.com karmic/main Sources
    Hit http://us.archive.ubuntu.com karmic/restricted Sources
    Hit http://us.archive.ubuntu.com karmic/universe Packages
    Hit http://us.archive.ubuntu.com karmic/universe Sources
    Hit http://security.ubuntu.com karmic-security/universe Sources
    Hit http://security.ubuntu.com karmic-security/multiverse Packages
    Hit http://security.ubuntu.com karmic-security/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic-updates/main Packages
    Hit http://us.archive.ubuntu.com karmic-updates/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-updates/main Sources
    Hit http://us.archive.ubuntu.com karmic-updates/restricted Sources
    Hit http://us.archive.ubuntu.com karmic-updates/universe Packages
    Hit http://us.archive.ubuntu.com karmic-updates/universe Sources
    Hit http://us.archive.ubuntu.com karmic-updates/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-updates/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic-backports/main Packages
    Hit http://us.archive.ubuntu.com karmic-backports/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-backports/universe Packages
    Hit http://us.archive.ubuntu.com karmic-backports/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/main Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/universe Packages
    Reading package lists... Done
    root@ubuntu:/# apt-get purge grub-pc grub-common
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      grub-common* grub-pc* startupmanager*
    0 upgraded, 0 newly installed, 3 to remove and 208 not upgraded.
    After this operation, 5,333kB disk space will be freed.
    Do you want to continue [Y/n]? Y
    Abort.
    root@ubuntu:/# sudo mount /dev/sda2 /mnt
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# for i in dev proc sys dev/pts; do sudo mount --bind  /$i /mnt/$i;done
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# sudo cp /etc/resolv.conf /mnt/etc
    sudo: unable to resolve host ubuntu
    cp: `/etc/resolv.conf' and `/mnt/etc/resolv.conf' are the same file
    root@ubuntu:/# sudo chroot /mnt
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# dpkg-divert --local --rename --add /sbin/initctl
    Leaving `local diversion of /sbin/initctl to /sbin/initctl.distrib'
    root@ubuntu:/# ln -s /bin/true /sbin/initctl
    ln: creating symbolic link `/sbin/initctl': File exists
    root@ubuntu:/# apt-get update
    Hit http://archive.canonical.com karmic Release.gpg
    Ign http://archive.canonical.com karmic/partner Translation-en_US   
    Hit http://us.archive.ubuntu.com karmic Release.gpg                 
    Ign http://us.archive.ubuntu.com karmic/main Translation-en_US       
    Ign http://us.archive.ubuntu.com karmic/restricted Translation-en_US 
    Hit http://security.ubuntu.com karmic-security Release.gpg           
    Ign http://security.ubuntu.com karmic-security/main Translation-en_US
    Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
    Hit http://archive.canonical.com karmic Release                      
    Ign http://us.archive.ubuntu.com karmic/universe Translation-en_US   
    Ign http://us.archive.ubuntu.com karmic/multiverse Translation-en_US
    Hit http://us.archive.ubuntu.com karmic-updates Release.gpg
    Ign http://us.archive.ubuntu.com karmic-updates/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/universe Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
    Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
    Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
    Hit http://security.ubuntu.com karmic-security Release             
    Hit http://us.archive.ubuntu.com karmic-backports Release.gpg       
    Ign http://us.archive.ubuntu.com karmic-backports/main Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-backports/universe Translation-en_US
    Hit http://archive.canonical.com karmic/partner Packages             
    Ign http://us.archive.ubuntu.com karmic-backports/multiverse Translation-en_US
    Hit http://us.archive.ubuntu.com karmic-proposed Release.gpg
    Ign http://us.archive.ubuntu.com karmic-proposed/restricted Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-proposed/main Translation-en_US
    Hit http://security.ubuntu.com karmic-security/main Packages         
    Ign http://us.archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
    Ign http://us.archive.ubuntu.com karmic-proposed/universe Translation-en_US
    Hit http://archive.canonical.com karmic/partner Sources              
    Hit http://us.archive.ubuntu.com karmic Release                      
    Hit http://us.archive.ubuntu.com karmic-updates Release
    Hit http://us.archive.ubuntu.com karmic-backports Release
    Hit http://security.ubuntu.com karmic-security/restricted Packages  
    Hit http://security.ubuntu.com karmic-security/main Sources         
    Hit http://security.ubuntu.com karmic-security/restricted Sources
    Hit http://security.ubuntu.com karmic-security/universe Packages
    Hit http://us.archive.ubuntu.com karmic-proposed Release            
    Hit http://security.ubuntu.com karmic-security/universe Sources     
    Hit http://security.ubuntu.com karmic-security/multiverse Packages
    Hit http://security.ubuntu.com karmic-security/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic/main Packages
    Hit http://us.archive.ubuntu.com karmic/restricted Packages
    Hit http://us.archive.ubuntu.com karmic/main Sources
    Hit http://us.archive.ubuntu.com karmic/restricted Sources
    Hit http://us.archive.ubuntu.com karmic/universe Packages
    Hit http://us.archive.ubuntu.com karmic/universe Sources
    Hit http://us.archive.ubuntu.com karmic/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic-updates/main Packages
    Hit http://us.archive.ubuntu.com karmic-updates/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-updates/main Sources
    Hit http://us.archive.ubuntu.com karmic-updates/restricted Sources
    Hit http://us.archive.ubuntu.com karmic-updates/universe Packages
    Hit http://us.archive.ubuntu.com karmic-updates/universe Sources
    Hit http://us.archive.ubuntu.com karmic-updates/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-updates/multiverse Sources
    Hit http://us.archive.ubuntu.com karmic-backports/main Packages
    Hit http://us.archive.ubuntu.com karmic-backports/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-backports/universe Packages
    Hit http://us.archive.ubuntu.com karmic-backports/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/restricted Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/main Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/multiverse Packages
    Hit http://us.archive.ubuntu.com karmic-proposed/universe Packages
    Reading package lists... Done
    root@ubuntu:/# apt-get purge grub-pc grub-common
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      grub-common* grub-pc* startupmanager*
    0 upgraded, 0 newly installed, 3 to remove and 208 not upgraded.
    After this operation, 5,333kB disk space will be freed.
    Do you want to continue [Y/n]? Y
    Abort.
    root@ubuntu:/# apt-get install grub grub-common
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    grub-common is already the newest version.
    Suggested packages:
      grub-doc mdadm
    The following packages will be REMOVED:
      grub-pc
    The following NEW packages will be installed:
      grub
    0 upgraded, 1 newly installed, 1 to remove and 208 not upgraded.
    Need to get 903kB of archives.
    After this operation, 188kB of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    Abort.
    root@ubuntu:/# grub-install --recheck /dev/sda
    Installation finished. No error reported.
    This is the contents of the device map /boot/grub/device.map.
    Check if this is correct or not. If any of the lines is incorrect,
    fix it and re-run the script `grub-install'.
    
    (hd0)	/dev/sda
    root@ubuntu:/# update-grub
    Generating grub.cfg ...
    Found Debian background: Lake_mapourika_NZ.tga
    Found linux image: /boot/vmlinuz-2.6.31-15-generic
    Found initrd image: /boot/initrd.img-2.6.31-15-generic
    Found linux image: /boot/vmlinuz-2.6.31-14-generic
    Found initrd image: /boot/initrd.img-2.6.31-14-generic
    Found memtest86+ image: /boot/memtest86+.bin
    done
    root@ubuntu:/# rm /sbin/initctl
    root@ubuntu:/# dpkg-divert --local --rename --remove /sbin/initctl
    Removing `local diversion of /sbin/initctl to /sbin/initctl.distrib'
    root@ubuntu:/# exit
    exit
    root@ubuntu:/# for i in dev/pts dev proc sys /; do sudo umount /mnt/$i;done
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    sudo: unable to resolve host ubuntu
    root@ubuntu:/#
    Six Saturdays a week for me.

  2. #22
    Join Date
    Feb 2009
    Location
    Le Petit Rocher
    Beans
    1,549
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: grub2 can not find device for /, big mess-up

    Does this look correct to you??

    Do you want to continue [Y/n]? Y
    Abort.
    Six Saturdays a week for me.

  3. #23
    Join Date
    Feb 2009
    Location
    Le Petit Rocher
    Beans
    1,549
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: grub2 can not find device for /, big mess-up

    One more thought. This computer is mainly my Windows 7 machine which I had dual booted and it is giving me the problems right now. I have two other computers that only have Ubuntu on them and those are the ones that I use most. Do you think there would be a way for me to just get windows booting on this machine on this drive. Later I could add another drive and put ubuntu on that if I want, but since I have the other two computers setup with Ubuntu I really do not have to have it on this machine right now.
    Six Saturdays a week for me.

  4. #24
    Join Date
    Apr 2008
    Beans
    3,317
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: grub2 can not find device for /, big mess-up

    Is where a difference in the two hard drive? Is one of them Sata and the other IDE?

    A couple of more things to try before reinstalling:

    See what happens if you swap the physical position of the hard drives.
    Check on the setting in your bios (see my last post)
    See whether there is a update available for your Bios.


    Let me know what you think about the reinstall
    That should work. It should even be enough to create a boot partition on the other drive (let me know if you would like help with creating boot partition)

    Do you want to continue [Y/n]? Y
    Abort.
    That's weird. apt-get refused to remove "grub-pc". So you still have Grub 2 installed. You did mess up at least once:

    sudo cp /etc/resolv.conf /mnt/etc
    ubuntu@ubuntu:~$ sudo chroot /mnt
    root@ubuntu:/# dpkg-divert --local --rename --add /sbin/initctl
    sudo mount /dev/sda2 /mnt
    sudo: unable to resolve host ubuntu
    root@ubuntu:/# for i in dev proc sys dev/pts; do sudo mount --bind /$i /mnt/$i;done
    The mount commands have to come before the "chroot" command.

    But that does not explain why "grub-pc" did not get removed.
    You might try again and make sure to follow the instruction exactly.


    Do you think there would be a way for me to just get windows booting on this machine on this drive.
    Maybe. If that works, it might even be possible to add Ubuntu to the Windows boot loader.

    Try this (still with only the Ubuntu drive attached)

    Code:
    sudo apt-get install lilo
    (ignore the warnings, just press enter)

    Code:
    sudo lilo -M  /dev/sda mbr

    Reboot. You should boot right into Window 7.

  5. #25
    Join Date
    May 2009
    Location
    New Delhi
    Beans
    372
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 can not find device for /, big mess-up

    Quote Originally Posted by lindsay7 View Post
    One more thought. This computer is mainly my Windows 7 machine which I had dual booted and it is giving me the problems right now. I have two other computers that only have Ubuntu on them and those are the ones that I use most. Do you think there would be a way for me to just get windows booting on this machine on this drive. Later I could add another drive and put ubuntu on that if I want, but since I have the other two computers setup with Ubuntu I really do not have to have it on this machine right now.
    do you have the windows 7 install dvd
    if so then its possible to get windows 7 running
    this thread should give you some additional info
    http://ubuntuforums.org/showthread.p...ows+bootloader

  6. #26
    Join Date
    Apr 2008
    Beans
    3,317
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: grub2 can not find device for /, big mess-up

    208 not upgraded.
    Maybe "apt-get" will be happier if you upgrade those packages before trying to remove "grub-pc":


    Code:
    sudo mount /dev/sda2 /mnt
    for i in dev proc sys dev/pts; do sudo mount --bind  /$i /mnt/$i;done
    sudo cp /etc/resolv.conf /mnt/etc
    sudo chroot /mnt
    dpkg-divert --local --rename --add /sbin/initctl
    ln -s /bin/true /sbin/initctl
    apt-get update
    apt-get upgrade
    apt-get purge grub-pc grub-common
    apt-get install grub grub-common
    grub-install --recheck /dev/sda
    update-grub
    rm /sbin/initctl
    dpkg-divert --local --rename --remove /sbin/initctl
    exit
    for i in dev/pts dev proc sys /; do sudo umount /mnt/$i;done

  7. #27
    Join Date
    Feb 2009
    Location
    Le Petit Rocher
    Beans
    1,549
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: grub2 can not find device for /, big mess-up

    Thanks meierfra,

    I tried everything and the disk will still not be recognized during start up.

    I had the drive backed up with Acronis and did a restore and it took all day which seemed odd. It did restore with all the partitions and the original boot loaders, but it still was not being recognized at start up. So my guess is that the drive has gone bad. I just put in a new drive and am doing a restore now (taking less than two hours).

    I will post later on how this goes. Hopefully all I will have to do is get the new configuration to boot correctly.

    I surely do appreciate all of your effort in helping me with this and wish that I could reciprocate, but you are far better at this than I. I will just try to help the next person in line with the problems that I can solve.
    Six Saturdays a week for me.

  8. #28
    Join Date
    Feb 2009
    Location
    Le Petit Rocher
    Beans
    1,549
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: grub2 can not find device for /, big mess-up

    The blue bird of happiness is flying again. The restore worked and I have windows and ubuntu back again. The last thing you want to think about is a drive that unexpectedly bites the dust but it happens.

    Thanks again for the hand holding and support.
    Six Saturdays a week for me.

  9. #29
    Join Date
    Feb 2010
    Beans
    19
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: grub2 can not find device for /, big mess-up

    I had similar problem: after reinstallation of grub 2 i had only "grub>_". when tried grub-mkconfig had "cannot find a device for /.". But instructions at 7th post ( http://ubuntuforums.org/showpost.php...09&postcount=7 ) helped me. Thx lindsay7 for starting this topic and meierfra. for the solution.

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

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