Results 1 to 10 of 45

Thread: how do i reinstall grub from live cd ubuntu 9.10

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Beans
    25

    Exclamation how do i reinstall grub from live cd ubuntu 9.10

    hello,
    I had windows XP on my c:\drive. installed ubuntu 9.10 on a 27 gig unallocated space. ubuntu ran fine. Then i boot to win xp and used a partitioning software to take back some other unallocated space. after it rebooted to complete the partitioning processes grub wouldn't load. So i need to re install grub from this ubuntu 9.10 live cd.
    i tired the following
    grub
    (didnt work the first time said i needed to install grub so did : root@ubuntu:~# sudo apt-get install grub )
    after grub was installed
    grub> find /boot/grub/stage1

    Error 15: File not found



    the previous linux partition I can see in the Computer with the boot directory and is called 1000gb hard disk: 27 GB filesystem see screenshot.

    HELP!

  2. #2
    Join Date
    Jun 2009
    Location
    Open Linux Forums
    Beans
    2,710

    Re: how do i reinstall grub from live cd ubuntu 9.10

    could you please post the output of the following command:
    Code:
    sudo fdisk -l
    I'm not antisocial. I'm just not user friendly...
    Open Linux Forums

  3. #3
    Join Date
    Aug 2008
    Location
    Jawja
    Beans
    2,486
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: how do i reinstall grub from live cd ubuntu 9.10

    Look down the page here https://wiki.ubuntu.com/Grub2 until you find
    Recover Grub 2 via LiveCD then follow the steps.

  4. #4
    Join Date
    Jan 2010
    Beans
    25

    Re: how do i reinstall grub from live cd ubuntu 9.10

    root@ubuntu:~# sudo fdisk -l

    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x71f3c0d1

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS
    /dev/sda2 2551 61192 471041865 7 HPFS/NTFS
    /dev/sda3 61193 104934 351357615 7 HPFS/NTFS
    /dev/sda4 104935 121601 133877677+ f W95 Ext'd (LBA)
    /dev/sda5 104935 110532 44965903+ 7 HPFS/NTFS
    /dev/sda6 110533 113763 25952976 83 Linux
    /dev/sda7 113764 113908 1164681 82 Linux swap / Solaris
    /dev/sda8 117106 119307 17679532 7 HPFS/NTFS
    /dev/sda9 119308 121601 18426523+ 7 HPFS/NTFS
    root@ubuntu:~# sudo mount /dev/sda6 /mnt
    root@ubuntu:~# sudo mount --bind/dev /mnt/dev
    mount: unrecognized option '--bind/dev'
    Usage: mount -V : print version
    mount -h : print this help
    mount : list mounted filesystems
    mount -l : idem, including volume labels
    So far the informational part. Next the mounting.
    The command is `mount [-t fstype] something somewhere'.
    Details found in /etc/fstab may be omitted.
    mount -a [-t|-O] ... : mount all stuff from /etc/fstab
    mount device : mount device at the known place
    mount directory : mount known device here
    mount -t type dev dir : ordinary mount command
    Note that one does not really mount a device, one mounts
    a filesystem (of the given type) found on the device.
    One can also mount an already visible directory tree elsewhere:
    mount --bind olddir newdir
    or move a subtree:
    mount --move olddir newdir
    One can change the type of mount containing the directory dir:
    mount --make-shared dir
    mount --make-slave dir
    mount --make-private dir
    mount --make-unbindable dir
    One can change the type of all the mounts in a mount subtree
    containing the directory dir:
    mount --make-rshared dir
    mount --make-rslave dir
    mount --make-rprivate dir
    mount --make-runbindable dir
    A device can be given by name, say /dev/hda1 or /dev/cdrom,
    or by label, using -L label or by uuid, using -U uuid .
    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
    For many more details, say man 8 mount .
    root@ubuntu:~# sudo chroot /mnt
    root@ubuntu:/# nano /etc/default/grub
    root@ubuntu:/# update-grub
    grub-probe: error: cannot find a device for /.

    root@ubuntu:/# grub-install --recheck/dev/sda
    Unrecognized option `--recheck/dev/sda'
    Usage: grub-install [OPTION] install_device
    Install GRUB on your drive.

    -h, --help print this message and exit
    -v, --version print the version information and exit
    --modules=MODULES pre-load specified modules MODULES
    --root-directory=DIR install GRUB images under the directory DIR
    instead of the root directory
    --grub-setup=FILE use FILE as grub-setup
    --grub-mkimage=FILE use FILE as grub-mkimage
    --grub-mkdevicemap=FILE use FILE as grub-mkdevicemap
    --grub-probe=FILE use FILE as grub-probe
    --no-floppy do not probe any floppy drive
    --recheck probe a device map even if it already exists
    --force install even if problems are detected
    --disk-module=MODULE disk module to use

    INSTALL_DEVICE can be a GRUB device name or a system device filename.

    grub-install copies GRUB images into the DIR/boot directory specified by
    --root-directory, and uses grub-setup to install grub into the boot
    sector.

    Report bugs to <bug-grub@gnu.org>.
    root@ubuntu:/# update-grub
    grub-probe: error: cannot find a device for /.

    root@ubuntu:/# sudo update-grub
    sudo: unable to resolve host ubuntu
    grub-probe: error: cannot find a device for /.

    root@ubuntu:/# $ sudo mount --bind /proc /mnt/proc
    $: command not found
    root@ubuntu:/# mount --bind /proc /mnt/proc
    mount: mount point /mnt/proc does not exist
    root@ubuntu:/# mount --bind /proc /mnt/sys
    mount: mount point /mnt/sys does not exist


    ------------------------------------------------------------------------------

    is all i tried. terminal is so cool

  5. #5
    Join Date
    Jan 2010
    Beans
    25

    Re: how do i reinstall grub from live cd ubuntu 9.10

    while you guys are at it, can you tell me if there is a way to install ubuntu_restricted_package while im on the live disc so that it I don't have to re do it everytime i restart? Currently this crisis calls for many restarts, and i am downloading the packages on every restart for music. and I cant get through this without music.
    This is Ubuntu 9.10 - the Karmic Koala.

  6. #6
    Join Date
    Oct 2009
    Location
    UK
    Beans
    919
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: how do i reinstall grub from live cd ubuntu 9.10

    Quote Originally Posted by dodo_dodder View Post
    while you guys are at it, can you tell me if there is a way to install ubuntu_restricted_package while im on the live disc so that it I don't have to re do it everytime i restart? Currently this crisis calls for many restarts, and i am downloading the packages on every restart for music. and I cant get through this without music.
    This is Ubuntu 9.10 - the Karmic Koala.
    Nope. It's a read only CD.

  7. #7
    Join Date
    Jun 2009
    Location
    Open Linux Forums
    Beans
    2,710

    Re: how do i reinstall grub from live cd ubuntu 9.10

    Quote Originally Posted by dodo_dodder View Post
    root@ubuntu:~# sudo fdisk -l
    the prompt indicates that you have a root shell. both "root@" and "#" indicate the root shell. the root shell does not require the "sudo" command

    install grub2 to the mbr:
    Code:
    # mount /dev/sda6 /mnt
    # grub-install --recheck --root-directory=/mnt /dev/sda
    I'm not antisocial. I'm just not user friendly...
    Open Linux Forums

  8. #8
    Join Date
    Jan 2010
    Beans
    25

    Re: how do i reinstall grub from live cd ubuntu 9.10

    root@ubuntu:/# mount /dev/sda6 /mnt
    mount: you must specify the filesystem type


    is what i got.

Tags for this Thread

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
  •