Skip to contentSkip to conversation

Grub installed into USB drive: After boot kernel not initializing

DISCUSSION [email protected] 2 participants 4 messages Nov 19, 2012 – Nov 28, 2012

lore
Share & tools
lore
#0 lore raw

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" <[email protected]>
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" <[email protected]>
Cc: "kernelnewbies" <[email protected]>

Hi......

Let's see if I can help...

Quoted 5 lines · Jeshwanth Kumar N K Jeshu

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....

Quoted 5 lines

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?

Signature · 10 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121119/90e36677/attachment.html 
#1 lore raw

Hi :)

Quoted 2 lines · On Tue, Nov 20, 2012 at 1:22 AM, jeshkumar555 at gmail.com…

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 ?

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
#2 lore raw

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
Quoted 1 line · Mulyadi Santosa

what does fdisk -l says ?

Signature · 6 lines
Regards
Jeshwanth Kumar N K
+91-7411483498
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121127/537932db/attachment.html 
#3 lore raw
Quoted 4 lines · Jeshwanth Kumar N K Jeshu

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...

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com