I am trying to make my own customed live-cd.iso from my debian pc.
After I make a squashfs file from my debian pc,
How do I add bootloader and make it a runnerable iso?
My final-goal is to make a bootable-usb stick.
My final-goal is to make a bootable-usb stick
cooleo wrote:I am trying to make my own customed live-cd.iso from my debian pc
cuckooflew wrote:Don't be a help vampire
from https://live-team.pages.debian.net/live-manual/html/live-manual/the-basics.en.html#169
4.3 First steps: building an ISO hybrid image
170
Regardless of the image type, you will need to perform the same basic steps to build an image each time. As a first example, create a build directory, change to that directory and then execute the following sequence of live-build commands to create a basic ISO hybrid image containing a default live system without X.org. It is suitable for burning to CD or DVD media, and also to copy onto a USB stick.
171
The name of the working directory is absolutely up to you, but if you take a look at the examples used throughout live-manual, it is a good idea to use a name that helps you identify the image you are working with in each directory, especially if you are working or experimenting with different image types. In this case you are going to build a default system so let's call it, for example, live-default.
172
$ mkdir live-default && cd live-default
173
Then, run the lb config command. This will create a "config/" hierarchy in the current directory for use by other commands:
174
$ lb config
175
No parameters are passed to these commands, so defaults for all of their various options will be used. See The lb config command for more details.
176
Now that the "config/" hierarchy exists, build the image with the lb build command:
177
# lb build
178
This process can take a while, depending on the speed of your computer and your network connection. When it is complete, there should be a live-image-i386.hybrid.iso image file, ready to use, in the current directory.
179
Note: If you are building on an amd64 system the name of the resulting image will be live-image-amd64.hybrid.iso. Keep in mind this naming convention throughout the manual.
Mr Culo >My final-goal is to make a bootable-usb stick.
From: https://live-team.pages.debian.net/live-manual/html/live-manual/the-basics.en.html#169
4.4.2 Copying an ISO hybrid image to a USB stick
186
ISO images prepared with xorriso, can be simply copied to a USB stick with the cp program or an equivalent. Plug in a USB stick with a size large enough for your image file and determine which device it is, which we hereafter refer to as ${USBSTICK}. This is the device file of your key, such as /dev/sdb, not a partition, such as /dev/sdb1! You can find the right device name by looking in dmesg's output after plugging in the stick, or better yet, ls -l /dev/disk/by-id.
187
Once you are certain you have the correct device name, use the cp command to copy the image to the stick. This will definitely overwrite any previous contents on your stick!
- Code: Select all
$ cp live-image-i386.hybrid.iso ${USBSTICK}
$ sync
Note: The sync command is useful to ensure that all the data, which is stored in memory by the kernel while copying the image, is written to the USB stick.
Coolu>>you really dont need to answer if you dont know or you dont want to tell.
from: https://live-team.pages.debian.net/live-manual/html/live-manual/the-basics.en.html#1984.4.4 Booting the live medium
198
The first time you boot your live medium, whether CD, DVD, USB key, or PXE boot, some setup in your computer's BIOS may be needed first. Since BIOSes vary greatly in features and key bindings, we cannot get into the topic in depth here. Some BIOSes provide a key to bring up a menu of boot devices at boot time, which is the easiest way if it is available on your system. Otherwise, you need to enter the BIOS configuration menu and change the boot order to place the boot device for the live system before your normal boot device.
199
Once you've booted the medium, you are presented with a boot menu. If you just press enter here, the system will boot using the default entry, Live and default options. For more information about boot options, see the "help" entry in the menu and also the live-boot and live-config man pages found within the live system.
200
Assuming you've selected Live and booted a default desktop live image, after the boot messages scroll by, you should be automatically logged into the user account and see a desktop, ready to use. If you have booted a console-only image, you should be automatically logged in on the console to the user account and see a shell prompt, ready to use.
Users browsing this forum: No registered users and 11 guests