Re: Grub installed into USB drive: After boot kernel not initializing
Hi Mulyadi, Thanks for reply. Ya first question I ll look in Google, No I have only one partition , in that only I am installing grub and putting my kernel image and I initrd. Sent from my HTC Excuse for typo. ----- Reply message ----- From: "Mulyadi Santosa" <mulyadi.santosa@gmail.com> Date: Mon, Nov 19, 2012 11:44 pm Subject: Grub installed into USB drive: After boot kernel not initializing To: "Jeshwanth Kumar N K Jeshu" <jeshkumar555@gmail.com> Cc: "kernelnewbies" <kernelnewbies@kernelnewbies.org> Hi...... Let's see if I can help... On Sun, Nov 18, 2012 at 10:05 PM, Jeshwanth Kumar N K Jeshu <jeshkumar555@gmail.com> wrote:
Then booted the USB drive, I have got grub menu. Pressed "c", it took me to grub command line. Here I gave "linux /vmcoreinfo-3.0.0-26-generic-pae" and "initrd initrd.img-3.0.0-26-generic-pae". Then typed boot.
Its booted and gave (initramfs) prompt, but didnt boot the kernel.
IIRC, you need to delay the booting, in order for USB sub system to settle and ready for further reading. Unfortunately, I can't recall the exact kernel parameter name....try to google that....
2. I got below Error when installing grub2, so what I need to do ? I partitioned USB with ext4 fs.
grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea.."
Hm, not sure...do you actually partition the usb flash disk? -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
Hi :) On Tue, Nov 20, 2012 at 1:22 AM, jeshkumar555@gmail.com <jeshkumar555@gmail.com> wrote:
No I have only one partition , in that only I am installing grub and putting my kernel image and I initrd.
well then, I assume grub was just wrongly detecting your partition.... what does fdisk -l says ? -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
Hello Mulyadi, Sorry for late reply. Please find the result of "fdisk -l" for my pen drive below. And I did partition today thats why it is showing two partitions :) And I have installed grub by referring this http://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/. And just copied initrd and vmlinuz from my ubuntu /boot directory. So I can able to boot the kernel ? Disk /dev/sdb: 4012 MB, 4012900352 bytes 124 heads, 62 sectors/track, 1019 cylinders, total 7837696 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000d2e8b Device Boot Start End Blocks Id System /dev/sdb1 62 392087 196013 c W95 FAT32 (LBA) /dev/sdb2 392088 7834071 3720992 83 Linux On Tue, Nov 20, 2012 at 3:47 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com>wrote:
what does fdisk -l says ?
-- Regards Jeshwanth Kumar N K +91-7411483498
On Tue, Nov 27, 2012 at 11:39 PM, Jeshwanth Kumar N K Jeshu <jeshkumar555@gmail.com> wrote:
Hello Mulyadi,
Sorry for late reply. Please find the result of "fdisk -l" for my pen drive below. And I did partition today thats why it is showing two partitions :)
I take a look at a glance on your fdisk result and I think you will be fine. Just make sure you point to correct USB partition, and second one, give the kernel enough time to initialize USB subsystem by using certain parameter (the one I still can't recall until now, sorry). Good luck... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
participants (3)
-
jeshkumar555@gmail.com -
Jeshwanth Kumar N K Jeshu -
Mulyadi Santosa