Hello,
I am new to Linux images (pxe, livecd). I would like to add files to a linux image, like something under etc or var, and have the files be available on the client.
The server I am working on was already configured with a pxe image, and only 2 files are present under the pxe client folder: initrd and vmlinuz. So I am wondering if either of these files contain the dirs /etc, /var, etc..., and how I could add files to them.
To give some background, I have done the same thing in Windows. An image in Windows is typically either boot.img or install.img. You can mount either of these to a folder using the Windows SDK tool imagex.exe /mountrw <img file> 1 <mount point>. From here you can add/remove/modify any files you want. Then commit the changes with imagex.exe /unmount <mountpoint> /commit.
Can someone provide insight to the linux image creation process, which of the files (initrd, vmlinuz/vmlinux, etc...) contain what for the client boot, or something similar to the Windows Image editing process?
I know I'm asking for a range of info, but pointers to any material to help my understanding will be greatly appreciated.
Thanks,
Jon
Ubuntu 12.04
I installed updates, which included a new kernel. I went to remove one of the older kernels and got:
Code:
jnojr@DEV:~$ sudo apt-get purge linux-image-3.13.0-46-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-46-generic gir1.2-ubuntuoneui-3.0 wireless-regdb iw
linux-headers-3.13.0-46 crda linux-headers-3.5.0-23-generic lesstif2
linux-headers-3.5.0-23 libubuntuoneui-3.0-1 thunderbird-globalmenu
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
linux-image-3.13.0-46-generic*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 197 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 340656 files and directories currently installed.)
Removing linux-image-3.13.0-46-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
update-initramfs: Deleting /boot/initrd.img-3.13.0-46-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.13.0-51-generic
Found initrd image: /boot/initrd.img-3.13.0-51-generic
Found linux image: /boot/vmlinuz-3.13.0-49-generic
Found initrd image: /boot/initrd.img-3.13.0-49-generic
Found linux image: /boot/vmlinuz-3.13.0-48-generic
Found initrd image: /boot/initrd.img-3.13.0-48-generic
Found Windows Vista (loader) on /dev/sda1
Found CentOS release 6.6 (Final) on /dev/sdb1
Found linux image: /boot/vmlinuz-3.13.0-51-generic
Found initrd image: /boot/initrd.img-3.13.0-51-generic
Found linux image: /boot/vmlinuz-3.13.0-49-generic
Found initrd image: /boot/initrd.img-3.13.0-49-generic
Found linux image: /boot/vmlinuz-3.13.0-48-generic
Found initrd image: /boot/initrd.img-3.13.0-48-generic
Found Windows Vista (loader) on /dev/sda1
Found CentOS release 6.6 (Final) on /dev/sdb1
Found memtest86+ image: /boot/memtest86+.bin
error: syntax error.
error: Incorrect command.
error: syntax error.
error: Incorrect command.
error: syntax error.
error: line no: 146
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done
Purging configuration files for linux-image-3.13.0-46-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
I have no idea how I'd "ensure there are no errors" in the /etc/grub related files... I have no idea what's supposed to be there. Looking at the line it's complaining about in /boot/grub/grub.cfg.new doesn't tell me anything. How do i find out what it's unhappy about?
hiiii all
I had installed Windows 7 on /dev/sda1 and /dev/sda2 and then I installed Centos 7.
Since then I cant find Windows entry in the Grub.
And i had tried to use all kind of solution found on the net I still cant see any entry.
I had edited 40_custom script adding:
cat <<EOF
menuentry "windows 7" {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
search --no-floppy --fs-uuid --set=root FCDAE998DAE95006
chainloader +1
}
EOF
then this command grub2-mkconfig -o /boot/grub2/grub2.cfg
[root@localhost]# grub2-mkconfig -o /boot/grub2/grub2.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-123.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-123.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-93890f189dec4b309c004fdce969ca5a
Found initrd image: /boot/initramfs-0-rescue-93890f189dec4b309c004fdce969ca5a.img
then this
[root@localhost]# tail -10 /boot/grub2/grub.cfg
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
[root@localhost]#
Still cant find windows in grub
please help me with this guys
thanks
Help!! In 12.04.5 Ubuntu, the /boot directory was full and had a lot of duplicate files from different dates, some I thought were unnecessary headers of updates. However, one series of files was called vmlinuz-3.2.0-29-generic. I moved all the files to /obsolete_files. I rebooted after having trouble upgrading packages (I think this is a second problem with this machine). I now get the following prompt.
grub rescue>
Is there a way to access the directory system so that I can move those files back? I really only need to retrieve one or two files off the system.
Code:
grub rescue>ls
(hd0) (hd0,msdos5) (hd0,msdos1) (fd0)
It doesn't under boot, or insmod. I can set prefixes. Am I doomed?
Hi all:
Yes, my first post and I am sure to make mistakes. Here goes.
Regarding suggestions for Linux Screencasts forum. I constantly struggle with dual boot with Windows. I read so many blogs that my eyes cross. Its even more confusing now with UEFI partitions. It happened today and now Windows is not booting. Screencasts sound like a windfall.
What I need to know:
1. Exactly where are the dual boot files located?
2. Where are examples of working dual boot files?
3. What tools do I need to access dual boot files when my system is not working?
4. If I use Windows tools to fix Windows boot then Fedora boot is overwritten. What do I need to watch?
5. Simplicity, simplicity, simplicity.
There are my suggestions for today. Hope it generates food for thought. :-)
I have a Toshiba Laptop that had a Dual Boot of Windows 7 and Linux Mint 17 on it and both OS's worked fine. I've been wanting to use CentOS 7 as my primary OS so that I can become more familar with RPM management and proceeded to remove my Mint installation and replace it with the CENTOS 7 installation, and the install completed successfully. HOWEVER, here's my problem.....
When my laptop starts up, I don't see GRUB nor do I have any option of selecting whether to run Windows or CentOS. It automatically loads up Centos 7. When I do a 'sudo fdisk -l', I can see that SDA1 is an NTFS drive, and when I try the following 'sudo mount /dev/sda1 /media/Main\ Drive' I get an error message saying that I can't mount an NTFS drive.
Am I missing something or is there a way to access my Windows files from within Centos. I was able to do this with Mint without an issue, but unable to see any of my windows drives because I can't mount an NTFS drive.
I have no problem with keeping CENTOS as my only OS on this laptop, however, I do need to access the files from the Window's partition, and if anyone can help me to access my files, that would be totally awesome.
Thank you in advance for reading through this and for any help offered.....
Mikey
Just did an update via terminal:
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-49 linux-headers-3.13.0-49-generic
linux-image-3.13.0-49-generic linux-image-extra-3.13.0-49-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
fglrx-core linux-headers-3.13.0-53 linux-headers-3.13.0-53-generic
linux-image-3.13.0-53-generic linux-image-extra-3.13.0-53-generic
The following packages will be upgraded:
accountsservice apport apport-gtk fglrx fglrx-amdcccle fuse
libaccountsservice0 libfuse2 liboxideqt-qmlplugin liboxideqtcore0
liboxideqtquick0 libspice-server1 linux-firmware linux-headers-generic
linux-image-generic linux-libc-dev oxideqt-codecs-extra python3-apport
python3-problem-report
19 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 227 MB of archives.
After this operation, 490 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
It downloaded and unpacked files, everything was automated until it asked for my input before replacing the following files:
I backed them up then chose to replace them:
DKMS: install completed.
update-initramfs: deferring update (trigger activated)
Setting up fglrx (2:15.200-0ubuntu0.3) ...
Configuration file '/etc/ati/amdpcsdb.default'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options a
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** amdpcsdb.default (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/ati/amdpcsdb.default ...
Configuration file '/etc/ati/atiapfxx'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options a
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** atiapfxx (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/ati/atiapfxx ...
Configuration file '/etc/ati/control'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options a
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** control (Y/I/N/O/D/Z) [default=N] ? ^[Y
Configuration file '/etc/ati/control'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options a
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** control (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/ati/control ...
Configuration file '/etc/ati/signature'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options a
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** signature (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/ati/signature ...
Configuration file '/etc/ati/atiapfxx.log'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options a
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** atiapfxx.log (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/ati/atiapfxx.log ...
Configuration file '/etc/ati/atiapfxx.blb'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options a
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** atiapfxx.blb (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/ati/atiapfxx.blb ...
Creating backups for the fglrx-core transition
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/fglrx/ld.so.conf because link group x86_64-linux-gnu_gl_conf is broken
Restoring backups for the fglrx-core transition
Setting up fglrx-amdcccle (2:15.200-0ubuntu0.3) ...
Setting up linux-firmware (1.127.12) ...
Setting up linux-headers-3.13.0-53 (3.13.0-53.89) ...
Setting up linux-headers-3.13.0-53-generic (3.13.0-53.89) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.13.0-53-generic /boot/vmlinuz-3.13.0-53-generic
Good news! Module version for fglrx.ko
exactly matches what is already found in kernel 3.13.0-53-generic.
DKMS will not replace this module.
You may override by specifying --force.
Setting up linux-headers-generic (3.13.0.53.60) ...
Setting up linux-image-extra-3.13.0-53-generic (3.13.0-53.89) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-53-generic /boot/vmlinuz-3.13.0-53-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-53-generic /boot/vmlinuz-3.13.0-53-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-53-generic /boot/vmlinuz-3.13.0-53-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-53-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-53-generic /boot/vmlinuz-3.13.0-53-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-53-generic /boot/vmlinuz-3.13.0-53-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-53-generic /boot/vmlinuz-3.13.0-53-generic
Generating grub configuration file ...
Found theme: /boot/grub/themes/Zorin/theme.txt
Found linux image: /boot/vmlinuz-3.13.0-53-generic
Found initrd image: /boot/initrd.img-3.13.0-53-generic
Found linux image: /boot/vmlinuz-3.13.0-52-generic
Found initrd image: /boot/initrd.img-3.13.0-52-generic
Found linux image: /boot/vmlinuz-3.13.0-51-generic
Found initrd image: /boot/initrd.img-3.13.0-51-generic
Found linux image: /boot/vmlinuz-3.13.0-49-generic
Found initrd image: /boot/initrd.img-3.13.0-49-generic
Found linux image: /boot/vmlinuz-3.13.0-48-generic
Found initrd image: /boot/initrd.img-3.13.0-48-generic
Found linux image: /boot/vmlinuz-3.13.0-46-generic
Found initrd image: /boot/initrd.img-3.13.0-46-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
No volume groups found
Found Windows XP Professional x64 Edition on /dev/sda1
done
Setting up linux-image-generic (3.13.0.53.60) ...
Setting up oxideqt-codecs-extra:amd64 (1.7.8-0ubuntu0.14.04.1) ...
Setting up liboxideqtcore0:amd64 (1.7.8-0ubuntu0.14.04.1) ...
Setting up liboxideqtquick0:amd64 (1.7.8-0ubuntu0.14.04.1) ...
Setting up liboxideqt-qmlplugin:amd64 (1.7.8-0ubuntu0.14.04.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-53-generic
W: Operation was interrupted before it could finish
Finally the error in red immediately above pops up.
I searched the net and found a site with an article dated back in 2010 that said to fix the error before rebooting or I'd probably not be able to boot to Linux.
Which I'm doing right now, I've not yet rebooted.
How should I recover from such an error before I reboot.
The site had several solutions depending upon other variables, one of which was to delete and/or re-run something. But none of the solutions seemed to fit my case.
I'm running the Zorin OS 9 Theme on top of Ubuntu 14.04 LTS, an AMD PhenomII 64bit 4 core processor on an ASUS MB. The video card is also an AMD/ATI, hence the need for the fglrx drivers listed above.
I'm not sure if the overwriting of the ATI/AMD driver config files shown above are responsible for the error or not. I did nothing that I was aware of that might have caused it, except close another instance of terminal that was runnning, and a libre office writer window.
Any ideas on how to solve this before I reboot would be greatly appreciated.
TIA
Hello all,
I'm having an issue booting my linux installation after installing refind. I googled the issue but nothing seems relevant to fixing it.
Refind starts up fine and I can see linux (vmlinuz...) but when I select it to boot it says
Failed to open file: install\initrd.gz
Trying to load files to higher address
Failed to open file: install\initrd.gz
It is a dual boot system with Win8. It is an encrypted installation if that makes any difference. Both systems are efi.
How might i go about fixing this? Any pointers and/or relevant threads appreciated
i have a few score of files (>50) in fasta format. these work fine in linux os
but i have to send these to a collegue who uses windows. and these files don't open properly in notepad or wordpad. executing save as to windows format does the trick
but i don't want to manually convert all of them
is ther a way i can accomplish conversion of multiple files and saving them in a format of my choosing using say terminal
Currently I'm using Windows 7 OS, in the same hardware I have RedHat ISO Image, is there any possibility to boot Linux ISO image directly from the same hardware?(not by using live CD,USB or any VM Workstation). I have 4 drives in my windows OS, I have ISO image in D: drive and E:drive I allocated for Linux, please try to help me out any one .....
Awaiting for your valuable Support........
I'm trying to figure out if find could do this. I have a folder with 1000 files. I want to delete 150 files on that folder regardless of timestamp and filename. Is there a tool, command or option on find that could do this, please let me know.
Combining mtime or ctime to find is not advisable since it will not count the files or even if there are matches, I would still need to sum up the files until I reach 150 files.
Any suggestions?