Page 32 of 34 FirstFirst ... 223031323334 LastLast
Results 311 to 320 of 337

Thread: How to make a live CD/DVD from your harddisk installation

  1. #311
    Join Date
    Oct 2008
    Beans
    16

    Re: How to make a live CD/DVD from your harddisk installation

    Thanks for the reply Capink.

    when you say add username=whateverUsername to bootoptions, do you mean like so...?

    menuentry "Ubuntu GUI" {
    linux /boot/vmlinuz boot=casper quiet splash username=dbAdmin
    initrd /boot/initrd.img
    }


    Still getting the error..

    ...

    > sudo grub-mkrescue --output=~/live-cd.iso ${CD}

    Enabling BIOS support ...
    Using GCRY_SHA.000;1 for /tmp/grub-mkrescue.bQShWUWJzO/boot/grub/i386-pc/gcry_sha1.mod (gcry_sha256.mod)
    Using MULTIBOO.000;1 for /tmp/grub-mkrescue.bQShWUWJzO/boot/grub/i386-pc/multiboot2.mod (multiboot.mod)
    Using GCRY_SHA.001;1 for /tmp/grub-mkrescue.bQShWUWJzO/boot/grub/i386-pc/gcry_sha256.mod (gcry_sha512.mod)
    Using PASSWORD.000;1 for /tmp/grub-mkrescue.bQShWUWJzO/boot/grub/i386-pc/password.mod (password_pbkdf2.mod)
    Using SEARCH_F.000;1 for /tmp/grub-mkrescue.bQShWUWJzO/boot/grub/i386-pc/search_fs_file.mod (search_fs_uuid.mod)
    grub-mkisofs: Unable to open disc image file
    : No such file or directory


    I note that the output after "Enabling BIOS support" does not occur when I run the original version of the script (prior to editing to keep non-system users)
    Last edited by Darin722; December 14th, 2011 at 09:15 PM.

  2. #312
    Join Date
    Nov 2006
    Location
    Cairo, Egypt
    Beans
    300

    Re: How to make a live CD/DVD from your harddisk installation

    Quote Originally Posted by Darin722 View Post
    Thanks for the reply Capink.

    when you say add username=whateverUsername to bootoptions, do you mean like so...?
    Yes

    Quote Originally Posted by Darin722 View Post
    Still getting the error..

    ...

    > sudo grub-mkrescue --output=~/live-cd.iso ${CD}
    I am not able to troubleshoot that one. Try replacing it with:

    Code:
    sudo grub-mkrescue -o ~/live-cd.iso ${CD}
    And see if it makes any difference.

  3. #313
    Join Date
    Jun 2009
    Beans
    26
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: How to make a live CD/DVD from your harddisk installation

    Quote Originally Posted by capink View Post
    Yes



    I am not able to troubleshoot that one. Try replacing it with:

    Code:
    sudo grub-mkrescue -o ~/live-cd.iso ${CD}
    And see if it makes any difference.
    I'm getting the same error, whereas entering your code triggers this other error:
    Code:
    Unrecognized option `-o'
    Usage: /usr/bin/grub-mkrescue [OPTION] SOURCE...
    Make GRUB rescue image.
    
      -h, --help              print this message and exit
      -v, --version           print the version information and exit
      --modules=MODULES       pre-load specified modules MODULES
      --output=FILE           save output in FILE [required]
    Any help?

    Or do you know any other way to build a liveISO from your HD installation?
    JAUNTY DESKTOP AMD64

  4. #314
    Join Date
    Nov 2006
    Location
    Cairo, Egypt
    Beans
    300

    Re: How to make a live CD/DVD from your harddisk installation


  5. #315
    Join Date
    Oct 2008
    Beans
    16

    Re: How to make a live CD/DVD from your harddisk installation

    Quote Originally Posted by capink View Post
    Yes



    I am not able to troubleshoot that one. Try replacing it with:

    Code:
    sudo grub-mkrescue -o ~/live-cd.iso ${CD}
    And see if it makes any difference.

    I just ran grub-mkrescue directly from the command line instead of from the script and it worked fine!

    grub-mkrescue --output=~/live-cd.iso ~/cd

    The live CD was generated and all users are intact and usable, so the greater part of the project at least is a success. I'm still trying to debug why the script is throwing the error. --go figure.

    I checked the script var ${CD} and it appears to be fine. It's set to /home/dbadmin/cd which is the directory that contains /boot /casper, and /md5sum.txt


    It also appears that the -o switch is no longer supported by grub-mkrescue, hence the use of --output=

    anyway. Thanks for all your help! I suspect the fault is some little detail. If I find a solution I'll post it.

  6. #316
    Join Date
    Jun 2009
    Beans
    26
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: How to make a live CD/DVD from your harddisk installation

    Thank you that fixed my problem. I will try again your method ASAP, possibly building the ISO file with a burning tool like Brasero or something, and creating the bootable USB with the Ubuntu Disk Creator. Will post the outcome here.
    JAUNTY DESKTOP AMD64

  7. #317
    Join Date
    Jun 2009
    Beans
    26
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: How to make a live CD/DVD from your harddisk installation

    Ok I made it. Here's the solution: If grub-mkrescue command outputs an error, it is sufficient to burn the ISO using Brasero, and build the USB PenDrive using Unetbootin. The standard Ubuntu USB Disk Creator doesn't work though.

    To burn the ISO just drag and drop all the files inside the cd directory into the Brasero window. That is after you added permission to read to the filesystem.squashfs file inside the casper directory, for if you don't do that Brasero cannot burn that required file.

    FYI the procedure was tested on a Linux Mint 9 ( based on Ubuntu 10.04 ) machine. However, the grub-mkrescue command outputs that same error on both Linux Mint 9 32 bit and Ubuntu 10.04 64 bit.

    The only substantial change I made to these installations is changing the default directories location, I mean the location of Documents, Downloads, etc. I changed those locations by editing the ~/config/user-dirs.dirs file, putting those directories in a separate "storage" partition, and changing the /etc/fstab file of course in order to automatically mount that partition.
    This change i made on both my Linux Mint and Ubuntu machines. I dunno if this is somewhat related to the grub-mkrescue mulfunctioning.

    Thank you for your attention.
    Last edited by kebabbaro; December 19th, 2011 at 07:28 PM.
    JAUNTY DESKTOP AMD64

  8. #318
    Join Date
    Jun 2009
    Beans
    26
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: How to make a live CD/DVD from your harddisk installation

    Quote Originally Posted by kebabbaro View Post
    I dunno if this is somewhat related to the grub-mkrescue mulfunctioning.
    No of course NOT!

    I had the solution under my nose but I needed to write a post to realize it

    Obviously the reason why grub-mkrescue could not find the source file is the same reason why brasero could not read all the file: because the fylesystem.squashfs file, which is the major file containing the system data ( on my installation it is 2.5 GB big ), had no permission to be read, even from root.

    So in the end it is sufficient to execute the following command:
    Code:
    sudo chmod +r ~/cd/casper/filesystem.squashfs
    to fix the problem.

    That I just tested
    JAUNTY DESKTOP AMD64

  9. #319
    Join Date
    Dec 2011
    Beans
    1

    Re: How to make a live CD/DVD from your harddisk installation

    Wow .. I was looking for something like this .. I am a newbie of sorts so I'd appreciate any inputs.

    I am looking to make a live CD of my current setup of 10.04 so I can use it to re-install it in the likely case that I break my system while tinkering it. I think this is what is being intended by the instructions on the first page. Please correct me if I'm wrong.

    If this works out will I have a live CD of 10.04 plus the extra packages that I have installed on my laptop after a clean install of the OS ? Again I'm a newbie who's broken his system on more than once and I want to have a backup that I can install without worrying about having internet to install a package ..

    I'll be trying this anyways just for the experience !
    Cheers,

  10. #320
    Join Date
    Jun 2009
    Beans
    26
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: How to make a live CD/DVD from your harddisk installation

    I have one little problem: after installing Ubuntu with the live media created using this procedure, I am not able to successfully login. System prompts me to insert password at login screen but any password won't work, even the password I just chose during the installation process, why is that?
    JAUNTY DESKTOP AMD64

Page 32 of 34 FirstFirst ... 223031323334 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
  •