General :: Create New Initrd Image In Sles10.2?
Aug 13, 2010i need to create new initrd image in sles10.2
View 1 Repliesi need to create new initrd image in sles10.2
View 1 Replieshow to create an initrd image using cpio, instead of mkfs?
Now im doing it like this:
Code:
dd if=/dev/zero of=initrd bs=1024 count=10000
mkfs -t ext2 -F -m 0 -b 1024 -i 1024 initrd
But i would like to move to cpio, because with dd, if you add something new, you might need to change the count. Also cpio is used in distro's like Fedora and Ubuntu.
When I compile a custom kernel with this command: make-kpkg --initrd kernel_image kernel_headers and then install the .deb, there's no initrd in /boot and I have to create it manually. I've thought that the --initrd option should take care about this, but somehow it doesn't.
It behaves like this for about two years at least (since I've compiled my first kernel). Of course, it's no big deal to create it manually, I was just wondering whether do I do anything wrong or whether should I fill a bug report..
i am using rhel5 and i just wanted to see the contents of the initrd image. I have copied that from /boot/grub and saved in /tmp directory. Then i did the following
#mv initrd-2.6.18-53.el5.img initrd-2.6.18-53.el5.img.gz
#gunzip initrd-2.6.18-53.el5.img.gz
#mount -o loop initrd-2.6.18-53.el5.img /mnt
when i gave that, it says "mount: you must specify the filesystem type" Then i included "-t ext2" option in the mount command. Now it says,
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Then i created a ext2 filesystem and did the same thing. But there is no difference.
i am using linux for couple of years. suddenly i a question arises in my mind. Before loading kernel during booting linux box initrd image loads necessary real mount point, file system, modules etc. but how initrd loads them ?? is there predefined modules list stored in initrd image or something else....what is the background procedure of it
View 1 Replies View RelatedWhen we boot the kernel before loding the main file system it loads the temp file system through initrd how that initrd image works.
View 1 Replies View RelatedIm trying to build an initrd image for my livecd using cpio -o -H newc, but the livecd can't boot. If I create the initrd image using mkfs.ext2 then it works.
View 2 Replies View RelatedI am attempting to run ssmtp from an initrd image to send an e-mail, via Gmail MTA, upon reboot of the machine. I have already successfully installed and configured ssmtp on the running box (in other words, ssmtp successfully runs after completion of the boot cycle). When attempting to mail something via `echo "Test" | ssmtp username@gmail.com`, I receive the following error message:
[Code]...
I want to change the start-up sequence of services on SLES10/11.
I have my own start-up scripts for some services and I want them to start in a particular order(not in alphabetical order)
I tried compiling linux kernel 2.6.37-rc2 (mainline), Compilation and installation of kernel and modules went fine. After that while trying to make initrd image, I used the following command :-
mohitdhingras@mohitdhingras-laptop:~$ sudo mkinitramfs -o initrd.img-2.6.37-rc2 2.6.37-rc2
It is showing warnings like :-
W: Possible missing firmware /lib/firmware/2.6.37-rc2/radeon/RV610_me.bin for module radeon
W: Possible missing firmware /lib/firmware/2.6.37-rc2/radeon/RV610_pfp.bin for module radeon
W: Possible missing firmware /lib/firmware/2.6.37-rc2/radeon/R600_me.bin for module radeon
W: Possible missing firmware /lib/firmware/2.6.37-rc2/radeon/R600_pfp.bin for module radeon
Actually, "2.6.37-rc2" folder is missing in "firmware".
I install fedora on my usb-hdd. Sometimes i boot it from real machine, sometimes i boot from virtual machine (kvm). When I boot from real machine, hdd driver is usb-storage, when i boot from virtual machine hdd drivers are ata_generic and pata_acpi.
Everytime i update kernel, mkinitrd only create initrd image contains only hdd driver current running, and I must recreate initrd manual with all preload hdd driver. How to config fedora to everytime update kernel, mkinitrd can make initrd image with all hdd driver I need?
I need to install Ubuntu on approximately 50-60 netbooks. None of them have CD drives, and I don't want to have to install them individually, walking around with a USB stick. I figured the fastest way to install on so many machines is to use a combination of apt-cacher (http://www.debuntu.org/how-to-set-up...ith-apt-cacher) and netbooting. I have successfully booted one machine to test, but as soon as the kernel comes up, support for the network interface is gone. Specifically, the "atl1c" module is not included on the netboot initrd image. Also, I would like to try to use preseeding, and I need to get that onto the initrd as well.
So, to summarize my question: How can I create a custom install kernel and initrd? I have a feeling it's related to the "debian-installer" category in the package repository, but I have not found any good documentation about doing this.
I just downloaded the FEDORA iso image file. Naturally, the next step is to create a DVD. The problem is I'm using a mininetbook hith no DVD unit and I have not an external one, so I think I can use the USB as an alternative, but I just don't find how to in the documentation, and the applications to burn DVD's dont have the option... how can I do this?
View 14 Replies View Related(I tried to post this earlier and it got lost.) I have a Ubuntu ISO image that I downloaded with Slackware, the only system I have. Ubuntu does not tell how to make a bootstick using anything but Windows,Mac, and Ubuntu. I tried "dd if=...ubuntu... of=/dev/sdb bs=512" and it did not put anything on the stick. Is there a procedure for making such a thing?
View 8 Replies View RelatedHow to create the FS image and mount the same ..?
I need to store some data in the image which I'll be creating ..?
I've performed a clean install of Linux on my system, and would like to create a snapshot of my whole disk so that I can go back to a fresh state immediately.
I used to use DriveImage XML and it was a FANTASTIC program, but unfortunately the boot CD containing it can only be created by having Windows installed. So it might be time to explore a new program that is equally simple and effective as that one.
I'd like your recommendations of imaging programs that are free, and that work off a boot CD/DVD (because the live backup thing generally takes much longer for imaging an entire disk).
One thing I liked about DriveImage XML was that it stored the backup in a fairly readable format, so if one day DriveImage XML were no longer available you wouldn't lose your backed up data. Any such programs?
Also, would these programs work for a drive that contains an encrypted root partition (i.e. enabling the encryption checkbox in the CentOS installation)?
How do I create/boot a ram image from a disk? I'd like to create a linux installation that is booted from a USB or CF drive and after boot does not access the disk.
View 4 Replies View RelatedI want to make an image of a 300GB hdd and I'm looking for a program that can do this.
There's one hdd with one single partition, 300GB size and I want to create an image of the hdd. To make things more clear, I want a mirror of a hdd.
Thing is, I have a server machine over the internet, which has a 300GB hdd single partition and I want to copy its contains, including OS.
I know Acronis, I worked with it before, but... idk if it has a gb limit when creating a image of a hdd. Acronis can backup/restore images of a hdd via internet, if you have an acronis server.
Let's put it this way, I don't have time (liek always... sorry 'bout that, but I'm not lazy, I just don't have time ) to search for a program and to make tests, and I would like a little help, maybe point to a program / solution that you guys have been tested.
- Remember it's a single 300GB hdd with a single partition. I want to copy the hdd over the internet, that's why I'm pointing to a program that can makes an image of that hdd over the internet.
Like... it's not that I want especially a program that can do this, maybe there's other solution aswell. Just feel free and share your solution/opinion whatever.
i have Ubuntu 10.04 installed on a virtual machine. i have made a modification and would like to create a CD of this running system.I guess i need to first make and ISO of the system and the copy to a CD. can anyone give guidance on the process to do this?
View 1 Replies View RelatedSuppose I have a 80 GB hard disk (sda) with 4GB of contents. Using a dd to copy to a different disk
Code:
dd if=/dev/sda of=/dev/sdb
copies all the contents (including free space). So sdb also needs to be 80GB.
You will notice that in VMWare or VirtualBox disk images, it is possible to set the disk to use only the amount of space of actual data. So a 80GB virtualbox/vmware image with 4GB of contents will be 4GB.
Is it possible to do that with an actual hard disk (sda) image? I want to create an image of an actual hard disk, copy it to DVD and transport it (in mail) for restoration on another computer (having same hard disk).
I was wondering if it is possible to create a growing image for a loopback device. Like a file that you create that will grow with the data that is placed on it instead of a file that has to be the size of the entire file system?
View 4 Replies View RelatedI Acer aspire 3620 and would like to backup whole system. My laptop has a 40Gig hdd. Is there a way I can either create an image or copy(clone) to another computer just in case I need it. If it matters I have a spare 40 gig drive on the other computer. The reason for doing this is so that I can try a system restore and if anything goes wrong I want to be able to transfer back. Also if it is posible how could I put it back and be bootable.
View 14 Replies View RelatedI want customized image of knoppix 6.2 version. Please let me know how to customize and create CD/DVD knoppix image.
View 1 Replies View RelatedAt the Get Slackware page at the Slackware website it gives a list of addresses which when I click one of the addresses it redirects to another page with a list of mirror images. Which address and which mirror image do I need to work with Kubuntu 11.04 on my netbook so I can create a USB startup disk? With my connection speed these mirror image downloads take about an hour and a half and I cannot just be guessing which mirror image to download.
View 8 Replies View RelatedI have installed "open-SUSE 11.4" on a "500GB Free Agent External Hard Drive". I didn't have any problem in booting since last week that I booted it from my laptop. Also I did it before several times from then when I try to boot it e.g. from an "Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz" PC the time between loading INITRD and starting boot sequence messages lasts nearly 30 minutes!(i didn't actually measure it but it take a long time in the same order). after starting boot sequence which is showed on monitor everything looks normal. e.g copy of files would be done by speeds between 2MB/s to 30 MB/s depending on the targets.I used to use the external hard derive to boot from different laptops and PC's from start but I didn't have such a problem anytime.
View 1 Replies View RelatedAs I understand it creating an image of a Linux system makes an exact copy of the OS and any user files/configurations/programs etc. What i would love to do is create an image of my work PC and install it at home on my desktop. Can someone briefly explain the process of creating and installing images of Linux systems?
Home OS - windows Want - An image file that can be executed in a virtual machine(VMPlayer or VirtualBox) or booted directly on my home PC.
i have centos 5.3 , i want to clone or create image of my working servers having centos5.3 in another hardisk so that if my server down i can just put this another hardisk which having image or clone of the crash server and my server will up in small amount of time is it possible or not if yes then how
View 4 Replies View Relatedi am trying to create an image of Slackware OS but vmware is not able to detect the disk. it gives me below error, "Unable to detect disks or volumes on the source machine. Make sure that the source is a supported linux distribution." can some one tell me what do i need to do to create the image.
View 2 Replies View RelatedI am running SLES 10 SP2 with the default Kernel 2.6.16.x. For testing I would like to use last stable Kernel 2.6.34.1.
I found a tutorial which I used for compiling and setting up the new kernel. It's here: howtoforge.com<slash>kernel_compilation_suse
It is written for SLES 10 SP1 but should also work for SP2. Anyway ...
Basically I took the original .config file of kernel 2.6.16. from /boot and used it to build the new kernel. I make no changes to it.
When I boot with new kernel 2.6.34.1 I get errors similar to "no PCI device" and its not possible to enable eth0. Obviously there is something wrong.
Why is it not sufficient to take the original .config file for a new kernel?
How to change host name in sles10.2 ?
View 6 Replies View Related