Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35

Thread: how to boot ubuntu with live CD

  1. #11
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: how to boot ubuntu with live CD

    Quote Originally Posted by teodosio View Post
    Hi MAFoElffen!
    Waters are not very clear around here and gods aren't definitively on my side. I got this:

    ubuntu@ubuntu:~$ sudo mount /dev/sdb /mnt
    mount: /dev/sdb already mounted or /mnt busy
    mount: according to mtab, /dev/sdb1 is already mounted on /mnt
    ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt
    mount: /dev/sdb1 already mounted or /mnt busy
    mount: according to mtab, /dev/sdb1 is already mounted on /mnt
    ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev
    ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
    ubuntu@ubuntu:~$ sudo mount -o bind /proc /mnt/proc
    ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
    root@ubuntu:/# sudo grub-install --root-directory=/mnt /dev/sda
    sudo: unable to resolve host ubuntu
    Installation finished. No error reported.
    root@ubuntu:/# exit
    ubuntu@ubuntu:~$ sudo umount /mnt
    umount: /mnt: device is busy.
    (In some cases useful info about processes that use
    the device is found by lsof(8) or fuser(1))
    ubuntu@ubuntu:~$

    I don't know what to tell you more and how to thank you for all this... but I really can't make it work right!
    LOL! We all had to start learning somehow. I know it's a bit more stressful if your learning and trying to fix something at the same time.
    "Don't worry, you'll be fine; I saw it work in a cartoon once..."
    It was a fresh install... As long as it's isolated to that disk and partition, there is nothing that you could do to anything there that couldn't be saved or reinstalled, right? I wish I was there to help and this would be over in a matter of minutes... But it isn't that way, so we have to paint a picture to each other so that we both understand what is going on. I know your sense of adventure on this is probably wearing thin, so I'll try to be clear and concise with my instructions.

    Problems you had said you already had sda1 mounted, therefore sda1 could not be mounted.

    If after you booted the LiveCD- if you looked at the disks with the file manager, it would have mounted it with a mount name and poof, those commands wouldn't work (and therefore the error saying it was already mounted or busy). So..

    ----------------------------------------------------------------------------------------
    Reboot and try again please. This time, immediately when you the desktop appears: Stop and take a breath. Relax.

    Then gently press <cntrl><alt><t>. That will bring up a terminal session.

    Then do the commands I wrote out for you in Post #9. Note that I changed the first command... If you get an error on any of them, STOP, reboot and start again.

    Don't worry - I'm very patient and empathic.
    Last edited by MAFoElffen; November 7th, 2011 at 01:54 AM.
    Concurrent coexistance of Windows, Linux and Unix...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot

  2. #12
    Join Date
    Dec 2009
    Location
    Fundão, Portugal
    Beans
    28
    Distro
    Ubuntu

    Re: how to boot ubuntu with live CD

    Hi MAFoElffen!

    Yes, I took a deep breath and relaxed. Then I've repeated your post #9 commands and here's what I got in several tries:

    try 1
    ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt
    ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev
    ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
    ubuntu@ubuntu:~$ sudo mount -t proc /proc /mnt/proc
    ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
    root@ubuntu:/# sudo grub-install --root-directory=/mnt /dev/sda
    sudo: unable to resolve host ubuntu
    Installation finished. No error reported.
    root@ubuntu:/# exit
    ubuntu@ubuntu:~$ sudo umount /mnt
    umount: /mnt: device is busy.
    (In some cases useful info about processes that use
    the device is found by lsof(8) or fuser(1))
    ubuntu@ubuntu:~$

    try 2
    ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt
    ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev
    ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
    ubuntu@ubuntu:~$ sudo mount -o bind /proc /mnt/proc
    ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
    root@ubuntu:/# sudo grub-install --root-directory=/mnt /dev/sda
    sudo: unable to resolve host ubuntu
    Installation finished. No error reported.
    root@ubuntu:/# exit
    ubuntu@ubuntu:~$ sudo umount /mnt
    umount: /mnt: device is busy.
    (In some cases useful info about processes that use
    the device is found by lsof(8) or fuser(1))
    ubuntu@ubuntu:~$

    try 3
    ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt
    ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev
    ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
    ubuntu@ubuntu:~$ sudo mount -o bind /proc /mnt/proc
    ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
    root@ubuntu:/# sudo grub-install --root-directory=/mnt /dev/sda
    sudo: unable to resolve host ubuntu
    Installation finished. No error reported.
    root@ubuntu:/# exit
    ubuntu@ubuntu:~$ sudo umount /mnt
    umount: /mnt: device is busy.
    (In some cases useful info about processes that use
    the device is found by lsof(8) or fuser(1))
    ubuntu@ubuntu:~$


    So, although what I've seen in cartoons it still didn't work. In the boot start I still can read "Secondary master: sata device not found.
    And if I go to the disk properties - with the live cd - I can see the pictures I post now. The disk where the system is installed is the one with 320 Gb.
    Hope this information to be useful. Thanks again for your patience and sympathy from someone who is despairing.

    Teodosio.




    Quote Originally Posted by MAFoElffen View Post
    LOL! We all had to start learning somehow. I know it's a bit more stressful if your learning and trying to fix something at the same time.
    It was a fresh install... As long as it's isolated to that disk and partition, there is nothing that you could do to anything there that couldn't be saved or reinstalled, right? I wish I was there to help and this would be over in a matter of minutes... But it isn't that way, so we have to paint a picture to each other so that we both understand what is going on. I know your sense of adventure on this is probably wearing thin, so I'll try to be clear and concise with my instructions.

    Problems you had said you already had sda1 mounted, therefore sda1 could not be mounted.

    If after you booted the LiveCD- if you looked at the disks with the file manager, it would have mounted it with a mount name and poof, those commands wouldn't work (and therefore the error saying it was already mounted or busy). So..

    ----------------------------------------------------------------------------------------
    Reboot and try again please. This time, immediately when you the desktop appears: Stop and take a breath. Relax.

    Then gently press <cntrl><alt><t>. That will bring up a terminal session.

    Then do the commands I wrote out for you in Post #9. Note that I changed the first command... If you get an error on any of them, STOP, reboot and start again.

    Don't worry - I'm very patient and empathic.
    Attached Images Attached Images

  3. #13
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: how to boot ubuntu with live CD

    Quote Originally Posted by teodosio View Post
    Hi MAFoElffen!

    Yes, I took a deep breath and relaxed. Then I've repeated your post #9 commands and here's what I got in several tries:

    try 1
    ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt
    ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev
    ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
    ubuntu@ubuntu:~$ sudo mount -t proc /proc /mnt/proc
    ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
    root@ubuntu:/# sudo grub-install --root-directory=/mnt /dev/sda
    sudo: unable to resolve host ubuntu
    Installation finished. No error reported.
    root@ubuntu:/# exit
    ubuntu@ubuntu:~$ sudo umount /mnt
    umount: /mnt: device is busy.
    (In some cases useful info about processes that use
    the device is found by lsof(8) or fuser(1))
    ubuntu@ubuntu:~$

    try 2
    ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt
    ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev
    ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
    ubuntu@ubuntu:~$ sudo mount -o bind /proc /mnt/proc
    ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
    root@ubuntu:/# sudo grub-install --root-directory=/mnt /dev/sda
    sudo: unable to resolve host ubuntu
    Installation finished. No error reported.
    root@ubuntu:/# exit
    ubuntu@ubuntu:~$ sudo umount /mnt
    umount: /mnt: device is busy.
    (In some cases useful info about processes that use
    the device is found by lsof(8) or fuser(1))
    ubuntu@ubuntu:~$

    try 3
    ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt
    ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev
    ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
    ubuntu@ubuntu:~$ sudo mount -o bind /proc /mnt/proc
    ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
    root@ubuntu:/# sudo grub-install --root-directory=/mnt /dev/sda
    sudo: unable to resolve host ubuntu
    Installation finished. No error reported.
    root@ubuntu:/# exit
    ubuntu@ubuntu:~$ sudo umount /mnt
    umount: /mnt: device is busy.
    (In some cases useful info about processes that use
    the device is found by lsof(8) or fuser(1))
    ubuntu@ubuntu:~$


    So, although what I've seen in cartoons it still didn't work. In the boot start I still can read "Secondary master: sata device not found.
    And if I go to the disk properties - with the live cd - I can see the pictures I post now. The disk where the system is installed is the one with 320 Gb.
    Hope this information to be useful. Thanks again for your patience and sympathy from someone who is despairing.

    Teodosio.
    Soory- when you do the chroot... notice the prompt change? command at that prompt should instead be
    Code:
    root@ubuntu:/#  grub-install --root-directory=/mnt /dev/sda
    Because you are already "root" at that point, so do not need to use "sudo"... Please try again.
    Concurrent coexistance of Windows, Linux and Unix...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot

  4. #14
    Join Date
    Dec 2009
    Location
    Fundão, Portugal
    Beans
    28
    Distro
    Ubuntu

    Re: how to boot ubuntu with live CD

    Again I have tried.
    After the chroot the prompt doesn't change, the installation happens and no error message. The erros message seems to be after last command. Here it is what I got:

    ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt
    ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev
    ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
    ubuntu@ubuntu:~$ sudo mount -o bind /proc /mnt/proc
    ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
    root@ubuntu:/# grub-install --root-directory=/mnt /dev/sda
    Installation finished. No error reported.
    root@ubuntu:/# exit
    ubuntu@ubuntu:~$ sudo umount /mnt
    umount: /mnt: device is busy.
    (In some cases useful info about processes that use
    the device is found by lsof(8) or fuser(1))
    ubuntu@ubuntu:~$




    Quote Originally Posted by MAFoElffen View Post
    Soory- when you do the chroot... notice the prompt change? command at that prompt should instead be
    Code:
    root@ubuntu:/#  grub-install --root-directory=/mnt /dev/sda
    Because you are already "root" at that point, so do not need to use "sudo"... Please try again.

  5. #15
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: how to boot ubuntu with live CD

    Does it boot now?
    Concurrent coexistance of Windows, Linux and Unix...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot

  6. #16
    Join Date
    Dec 2009
    Location
    Fundão, Portugal
    Beans
    28
    Distro
    Ubuntu

    Re: how to boot ubuntu with live CD

    No it doesn't!
    Same situation!
    Grrrr......

    Quote Originally Posted by MAFoElffen View Post
    Does it boot now?

  7. #17
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: how to boot ubuntu with live CD

    Quote Originally Posted by teodosio View Post
    No it doesn't!
    Same situation!
    Grrrr......
    Try it again with a few changes.

    After the "grub-install --root-directory=/mnt /dev/sda", do this:
    Code:
    update-grub
    Go until until the umount... In the unmount command, try it. If it says it's busy, then do this:
    Code:
    sudo umount -f /mnt
    Which should force the unmount, even if the status is busy.

    Then reboot and test.
    Concurrent coexistance of Windows, Linux and Unix...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot

  8. #18
    Join Date
    Dec 2009
    Location
    Fundão, Portugal
    Beans
    28
    Distro
    Ubuntu

    Re: how to boot ubuntu with live CD

    Same results!
    The forced umount doesn't work: Look at this:

    Code:
    ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt
    ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev
    ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
    ubuntu@ubuntu:~$ sudo mount -o bind /proc /mnt/proc
    ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
    root@ubuntu:/# grub-install --root-directory=/mnt /dev/sda
    Installation finished. No error reported.
    root@ubuntu:/# update-grub
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-2.6.32-34-generic
    Found initrd image: /boot/initrd.img-2.6.32-34-generic
    Found linux image: /boot/vmlinuz-2.6.32-33-generic
    Found initrd image: /boot/initrd.img-2.6.32-33-generic
    Found linux image: /boot/vmlinuz-2.6.32-32-generic
    Found initrd image: /boot/initrd.img-2.6.32-32-generic
    Found linux image: /boot/vmlinuz-2.6.32-31-generic
    Found initrd image: /boot/initrd.img-2.6.32-31-generic
    Found linux image: /boot/vmlinuz-2.6.32-30-generic
    Found initrd image: /boot/initrd.img-2.6.32-30-generic
    Found linux image: /boot/vmlinuz-2.6.32-29-generic
    Found initrd image: /boot/initrd.img-2.6.32-29-generic
    Found linux image: /boot/vmlinuz-2.6.32-28-generic
    Found initrd image: /boot/initrd.img-2.6.32-28-generic
    Found linux image: /boot/vmlinuz-2.6.32-27-generic
    Found initrd image: /boot/initrd.img-2.6.32-27-generic
    Found linux image: /boot/vmlinuz-2.6.32-26-generic
    Found initrd image: /boot/initrd.img-2.6.32-26-generic
    Found linux image: /boot/vmlinuz-2.6.32-25-generic
    Found initrd image: /boot/initrd.img-2.6.32-25-generic
    Found linux image: /boot/vmlinuz-2.6.32-24-generic
    Found initrd image: /boot/initrd.img-2.6.32-24-generic
    Found linux image: /boot/vmlinuz-2.6.32-21-generic
    Found initrd image: /boot/initrd.img-2.6.32-21-generic
    Found memtest86+ image: /boot/memtest86+.bin
    done
    root@ubuntu:/# exit
    ubuntu@ubuntu:~$ sudo umount /mnt
    umount: /mnt: device is busy.
            (In some cases useful info about processes that use
             the device is found by lsof(8) or fuser(1))
    ubuntu@ubuntu:~$ sudo umount -f /mnt
    umount2: Dispositivo ou recurso ocupado
    umount: /mnt: device is busy.
            (In some cases useful info about processes that use
             the device is found by lsof(8) or fuser(1))
    umount2: Dispositivo ou recurso ocupado
    I'm passing away!!!!!!!!


    MAFoElffen;11439276]Try it again with a few changes.

    After the "grub-install --root-directory=/mnt /dev/sda", do this:
    Code:
    update-grub
    Go until until the umount... In the unmount command, try it. If it says it's busy, then do this:
    Code:
    sudo umount -f /mnt
    Which should force the unmount, even if the status is busy.

    Then reboot and test.[/QUOTE]

  9. #19
    Join Date
    Dec 2008
    Location
    W-slp-Sierra Nevada usa
    Beans
    1,400
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: how to boot ubuntu with live CD

    Code:
    das@sdb1GUID:~$ sudo mount /dev/sdb4 /mnt
    [sudo] password for das: 
    mount: special device /dev/sdb4 does not exist
    das@sdb1GUID:~$ sudo mount /dev/sdc4 /mnt
    das@sdb1GUID:~$ sudo mount -o bind /dev /mnt/dev
    mount: mount point /mnt/dev does not exist
    das@sdb1GUID:~$

    As you may see right away, I've tested your command series by copying and pasting, notice the output produced.

    EDIT: please suppy output of
    Code:
    sudo ls -l /mnt
    Last edited by Hakunka-Matata; November 9th, 2011 at 03:45 PM.
    boot_info_script by meierfra & Gert Hulselmans
    unetbootin to burn liveCD/USB
    Repair Windows7 Boot
    Partitioning

  10. #20
    Join Date
    Dec 2008
    Location
    W-slp-Sierra Nevada usa
    Beans
    1,400
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: how to boot ubuntu with live CD

    https://help.ubuntu.com/community/Grub2#ChRoot

    Code:
    ChRoot
    
     This method of installation uses the chroot  command to gain access to the broken system's files. Once the chroot  command is issued, the LiveCD treats the broken system's / as its own.  Commands run in a chroot environment will affect the broken systems  filesystems and not those of the LiveCD. 
    
    
    1. Boot to the LiveCD Desktop. The CD should be the same release and architecture (32/64 bit).
    2. Open a terminal - Applications, Accessories, Terminal.
    3. Determine your normal system partition - (the switch is a lowercase "L") sudo fdisk -l
      • If you aren't sure, run df -Th. Look for the correct disk size and ext3 or ext4 format.
    4. Mount your normal system partition:
      • Substitute the correct partition: sda1, sdb5, etc.
      sudo mount /dev/sdXX /mnt
      • Example: sudo mount /dev/sda1 /mnt
    5. Only if you have a separate boot partition:
      • sdYY is the /boot partition designation
      sudo mount /dev/sdYY /mnt/boot
      • Example: sudo mount /dev/sdb6 /mnt/boot
    6. Mount the critical virtual filesystems. Run the following as a single command: for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
    7. Chroot into your normal system device: sudo chroot /mnt
    8. If there is no /boot/grub/grub.cfg or it's not correct, create one using update-grub
    9. Reinstall GRUB 2:
      • Substitute the correct device - sda, sdb, etc. Do not specify a partition number.
      grub-install /dev/sdX
    10. Verify the install (use the correct device, for example sda. Do not specify a partition): grub-install --recheck /dev/sdX
    11. Exit chroot: CTRL-D on keyboard
    12. Unmount virtual filesystems. Run the following as a single command: for i in /sys /proc /dev/pts /dev; do sudo umount /mnt$i; done
    13. If you mounted a separate /boot partition:
      • sudo umount /mnt/boot
    14. Unmount last device: sudo umount /mnt
    15. Reboot. sudo reboot
    boot_info_script by meierfra & Gert Hulselmans
    unetbootin to burn liveCD/USB
    Repair Windows7 Boot
    Partitioning

Page 2 of 4 FirstFirst 1234 LastLast

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
  •