Page 3 of 34 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 337

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

  1. #21
    Join Date
    Sep 2007
    Location
    N.of Mexico,S.of Canada
    Beans
    251
    Distro
    Ubuntu 10.10 Maverick Meerkat

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

    On my homebrew cd the initrd is in the boot folder.
    On the Ubuntu CD the initrd is in the casper folder could that bethe problem if it is how can I change the iso. ?
    If You Ask A Question, Please Read And Understand The Answer.

    We're All Here, Because We're Not All There.

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

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

    the ISO image is read only. You will have to recreate it as follows:

    - Mount you homemade custom iso:

    Code:
    sudo mount -o loop -t iso9960 /path/to/the/iso /mnt
    - Copy the contents of the iso to a new folder:

    Code:
    mkdir ~/iso
    Code:
    sudo cp -a /mnt/* ~/iso
    - Copy the initrd of the official cd after mounting it

    Code:
    sudo cp -vf /path/to/official/cd/casper/initrd.gz ~/iso/boot/initrd.gz
    - Recreate the iso image:

    Code:
    sudo mkisofs -b boot/grub/stage2_eltorito \
    -no-emul-boot -boot-load-size 4 -boot-info-table \
    -V "Custom Live CD" -cache-inodes -r -J -l \
    -o ~/live-cd.iso ~/iso

    Some Notes:
    ==========
    - Make sure the official cd is working on your hardware.
    - Only do the above under two conditions: The first is that both cds have exactly the same kernel version. The Second condition is that your custom cd is created with casper and not live-initramfs (since the official ubuntu cd is created with casper).
    - This should work (provided that you are able to boot from the official ubuntu cd) but there is no guarantee it will. So please use Rewritable media to avoid wasting black cds while trying the different solutions to your problem.

  3. #23
    Join Date
    Sep 2007
    Location
    N.of Mexico,S.of Canada
    Beans
    251
    Distro
    Ubuntu 10.10 Maverick Meerkat

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

    Thank you I will try this.
    If You Ask A Question, Please Read And Understand The Answer.

    We're All Here, Because We're Not All There.

  4. #24
    Join Date
    Feb 2008
    Beans
    47

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

    So I have a question. Let's say my ubuntu install is almost 6.7Gb and I want to make a Dual Layer LIVE DVD complete with installer. How can I do this with the limitation in the iso 9660? Can I use UDF somehow?

  5. #25
    Join Date
    Nov 2006
    Location
    Cairo, Egypt
    Beans
    300

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

    No you cannot use udf as it is not supported for the time being (neither casper not live-initramfs supports it). But you do not need to use udf becuase after compressing your system into a squashfs it will be about 2.7 GB.

  6. #26
    Join Date
    Sep 2007
    Location
    Mississauga,ON Canada
    Beans
    73
    Distro
    Xubuntu

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

    capink - very nice howto.

    I am the creator of remastersys - http://www.remastersys.klikit-linux.com and have borrowed some of your ideas to improve how remastersys works.

    You can also add a graphical grub boot to this by putting the splash image of your choice in boot of the cd tree and adding the following line above the boot entries:

    splashimage=/boot/splash.xpm.gz

    Or whatever name you used for the splash image.

    Also, a quick question - I have always used "boot=casper" and never had an issue. Where is BOOT=casper needed?

    I don't think you need the rw or nopersistent.

  7. #27
    Join Date
    Sep 2007
    Location
    Mississauga,ON Canada
    Beans
    73
    Distro
    Xubuntu

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

    BTW, this is the best howto I've seen on this subject to date.

  8. #28
    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 Fragadelic View Post
    capink - very nice howto.

    I am the creator of remastersys - http://www.remastersys.klikit-linux.com and have borrowed some of your ideas to improve how remastersys works.
    Nice project.

    I just started to learn python. I also intend to learn pyqt so maybe I will be able contribute to your project.

    Quote Originally Posted by Fragadelic View Post
    You can also add a graphical grub boot to this by putting the splash image of your choice in boot of the cd tree and adding the following line above the boot entries:

    splashimage=/boot/splash.xpm.gz

    Or whatever name you used for the splash image.
    Yes this is a nice feature. I already have a link explaining this in the final notes section. Another option is to use grub-gfxboot, this is supposed to produce more fancy graphics but I have not tried it yet.

    Quote Originally Posted by Fragadelic View Post
    Also, a quick question - I have always used "boot=casper" and never had an issue. Where is BOOT=casper needed?
    I think I read somewhere that the BOOT=casper option is checked for by the main casper script before it takes control of the boot process. While the boot=casper option defines the directory where casper looks for the live image.

    I have not tested this information, I just took it for granted. But since you are able to produce the same result using only boot=casper it seems it is redundant to use BOOT=casper.

    Quote Originally Posted by Fragadelic View Post
    I don't think you need the rw or nopersistent.
    These are indeed redundant.

    Quote Originally Posted by Fragadelic View Post
    BTW, this is the best howto I've seen on this subject to date.
    Thank you for the complement.

  9. #29
    Join Date
    Nov 2006
    Location
    Cairo, Egypt
    Beans
    300

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

    Fragadelic, I hope you can help solve people problems that I don't have an answer for if your time permit.

  10. #30
    Join Date
    Sep 2007
    Location
    Mississauga,ON Canada
    Beans
    73
    Distro
    Xubuntu

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

    I saw your bit about the grub splash after I posted - lol.

    Remastersys right now is using bash and zenity or kdialog for the gui frontend and now that I have things working pretty well, I will start to learn python myself and might convert it over.

    I've been doing bash for so long and just find it easy to do and it works for what I need so I just went with it. Its also easier for folks just starting with linux scripting to take a look at and see how I did certain things.

    I've looked at a lot of howtos on making ubuntu livecd's but this one is definitely the most complete and very well written one that I've found.

    I've bookmarked this thread for future reference for myself.

    Please feel free to take a look at remastersys and let me know if you have any suggestions. I still have some cleanup to do but it works pretty well so far on a number of system. It was originally created on Kubuntu and Mint but I now use Klikit-Linux(Kubuntu based) and am part of the team there.

    /etc/shadow and /etc/gshadow can stay as long as the normal users are cleaned out of it. You can check /usr/bin/remastersys after you install it to see how I did it. I got my info for the checks directly from how casper looks to see before it creates the livecd user.

    Your howto deserves a webpage and not just to be here in the forum where it might get lost.

    Let me know if you would like me to put it up on my website and then you can just give the link to folks.

Page 3 of 34 FirstFirst 1234513 ... 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
  •