hello all,
I am using linux machine. There are total 6 stages of linux boot process: BIOS
MBR
GRUB
KERNEL
INIT
RUNLEVEL
Is it possible to read HDD serial number and mac address from the GRUB??
Thanks in advance..
I've just compiled my own kernel (debian), but I have no idea how to boot it. I don't know how to get to the grub menu. I've tried holding shift down at start up but it doesn't work! When I hold down esc it asks me what I want to boot?
I've read that I have to edit the file /etc/default/grub - but I can't since don't have it..
Does anyone know how?
Hi, I'm pretty new to Linux.
I'm currently working on a project in my Linux Administration class, but have run into a bit of a bump.
I'm tasked with booting Linux (currently using CentOS 7) through the GRUB prompt. I've loaded the kernel, but I'm having an issue with the initrd.
I've tried both of these commands:
"linux /boot/initrd-plymouth.img"
"linux /boot/initramfs-3.10.0-123.el7.x86_64.img"
Neither of these commands have worked. It only returns the message "invalid magic number" for both of the commands. Any ideas on how I can fix this?
Thanks for any help in advance. It should help me understand Linux better!
hello everyone,
I created a script file (info.sh) in linux centos 6.
location of file is '/etc/init.d/info.sh'
content of file is:
#!/bin/sh
#To get the MAC address
ifconfig | grep HWaddr
#To get the HDD serial no.
hdparm -I /dev/sd? | grep 'Serial\ Number'
#To get the HDD size
hdparm -I /dev/sda |grep "device size"
gave the permission by: chmod 777 /etc/init.d/info.sh
but when i run this file by: /etc/init.d/info.sh
it gives an error like...
-bash: /etc/init.d/info: cannot execute binary file
what should i do?? Actually i have to run this file during boot up..
thanks in advance..
Hey guys, I am a little confused about run level programs. (concerning centos)
I know when the system boots up the orders will be
bios
MBR
GRUB
kernel
init
runlevel
to my understanding - etc/init looks at /etc/inittab
then where is the run level located?
is it /etc/rc.d/rc0.d...
/etc/rc.d/rc1.d
/etc/rc.d/rc2.d
are these run level programs?
if so, what about /etc/init.d ? doesnt that also execute run level programs?
and how does it know what to start? where does it look
thanks guys just a bit confusing where what looks for what
Machine is booted into Grub Menu
I am using rescue linux
by doing fdisk -l
it shows
Disk /dev/sda : bla bla bla
Device Boot
/dev/sda1 *
so i install grub using this command in shell
grub-install /dev/sda1
it shows
installation finished. No error reported
This content of the device map /boot/grub/device.map
After re-boot it again shows grub menu
Hello
I have installed a CentOS 6.4 on VmWare.
Now, after several days of using it, it suddenly does not boots. There is a problem with its initialization, here is the error:
Kernel Panic : Unalble to init. Try passing init= option to the kernel.
Pid 1 : Swapper not tainted.
I have used CentOS.iso to rescue it, but it still does not solve it.
My grub.conf contains:
PHP Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-358.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=UUID=6082bcf5-00ba-4bf8-86ea-9821d774cb6f rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-358.el6.x86_64.img
How should I solve it then? Thanks in advance
Hello all,
I am new to linux but not new to PC's.
I am self taught in everything i know so far.
I have an issue i am looking for some guidance on, i have burned an ISO copy of AVLinux & booted from the Live DVD.
chose to install on partition & created all the necessary file systems etc with GParted then proceeded with the install.
Completed install but when i try to boot no joy.
I have EasyBCD installed on Vista to manage to boot processes.
I am able to get to Grub4dos window & grub> prompt.
I have tried many commands of which i have identifeid the partition is there as correct filesystem, when running the /vmlin....TAB command it locates the name of the linux distro, if i set the drive partition to makeactive it boots up saying no operating system them have to change it back to Vista.
I have two pics that show the grub configuration reading from the live DVD, the install appears to have some missing or not right as opposed to the DVD, can anyone assisst how i can fix this issue?
Do i have to copy each file over manually from the Live DVD's folders?
Cant attach images here so here is the differeneces,
these are the listing on the Grub configuartion being read using the Live DVD,
1. /etc/grub.d
2. /boot/grub/device.map
3. grub-install
4. grub-mkconfig
5. grub-mkdevicemap--device
6. grub-mkfont
7. /boot/grub
8. /boot/grub/grub.cfg
9. /etc/default/grub
Here is what way they are on Live DVD,
1. Present
2. Present
3. Present
4. Present
5. Present
6. Present
7. Present
8. Yellow information bubble
9. Present
My install on partition,
1. Present
2. Yellow information bubble
3. Red X bubble
4. Red X bubble
5. Yellow information bubble
6. Present
7. Yellow information bubble
8. Yellow information bubble
9. Present
what do i need to do to remedy this?
i have attempted the install on couple of different drives, no success.
Hey all,
I've got an HP Pavilion dm4 Notebook that's been like a good friend to me in the past, but hasn't been running as well as it used to. I decided to move on to something new that I knew would work - some form of Linux. I chose Lubuntu, as I had heard so many good things about it and wouldn't need to run loads of processes.
I ran through the installer from a flash drive and installed Lubuntu 14.04 onto my machine, and was then prompted to reboot. Now I'm stuck on the Gnu Grub page, where *Ubuntu is listed instead of *Lubuntu. Whenever I hit Ubuntu to start, screen cuts to black, I see the HP logo and BIOS login note, and am dropped back in front of the Grub page. This is my first true experience with the Linux kernel (I've played with Raspbian).
Does anyone have any insight as to what's going wrong? I haven't yet been able to login and am unsure regarding where to go.
Thanks
-K
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?
I am trying to boot Linux Mint from an 8gb Sandisk USB. I changed my boot settings and it boots into what I believe is called grub? I am given two options, Boot Linux Mint, Boot Linux Mint (compatibility mode). When I select either of them all I get is a black screen. I've tried many things to get around this, messing with my graphics card settings (within grub), different USB's (another 8gb and a 32gb), I tried Ubuntu and that just doesn't boot at all I go straight back to my UEFI settings. I'm very new to Linux and I don't just want to hop in, I just want to boot from my USB whenever I want to play around with it. Thank You
Note: I'm running windows 8.1 currently on a ASUS N550JV laptop. I've been using the UUI from Pen Drive Linux.