kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Grub installed into USB drive: After boot kernel not initializing
@ 2012-11-18 15:05 Jeshwanth Kumar N K Jeshu
  2012-11-19 18:14 ` Mulyadi Santosa
  0 siblings, 1 reply; 6+ messages in thread
From: Jeshwanth Kumar N K Jeshu @ 2012-11-18 15:05 UTC (permalink / raw)
  To: kernelnewbies

Hello All,

Today I was doing some testing, how to use grub2 to USB stick. I did how
this link install-grub2-on-usb-from-ubuntu-linux<http://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/>explains,
but didnt do with ubuntu CD did it from my installed ubuntu.
After that I copied vmlinuz, initrd, System.map and config to USB drive
from my running ubuntu /boot directory.

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.

I have two questions here:
1. Why It stopped in initramfs ? why not boot kernel ?
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.."



-- 
Regards
Jeshwanth Kumar N K
+91-7411483498
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121118/075fd3e8/attachment.html 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Grub installed into USB drive: After boot kernel not initializing
  2012-11-18 15:05 Jeshwanth Kumar N K Jeshu
@ 2012-11-19 18:14 ` Mulyadi Santosa
  0 siblings, 0 replies; 6+ messages in thread
From: Mulyadi Santosa @ 2012-11-19 18:14 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Grub installed into USB drive: After boot kernel not initializing
@ 2012-11-19 18:22 jeshkumar555
  2012-11-20 10:17 ` Mulyadi Santosa
  0 siblings, 1 reply; 6+ messages in thread
From: jeshkumar555 @ 2012-11-19 18:22 UTC (permalink / raw)
  To: kernelnewbies

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121119/90e36677/attachment.html 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Grub installed into USB drive: After boot kernel not initializing
  2012-11-19 18:22 Grub installed into USB drive: After boot kernel not initializing jeshkumar555
@ 2012-11-20 10:17 ` Mulyadi Santosa
  2012-11-27 16:39   ` Jeshwanth Kumar N K Jeshu
  0 siblings, 1 reply; 6+ messages in thread
From: Mulyadi Santosa @ 2012-11-20 10:17 UTC (permalink / raw)
  To: kernelnewbies

Hi :)

On Tue, Nov 20, 2012 at 1:22 AM, jeshkumar555 at 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Grub installed into USB drive: After boot kernel not initializing
  2012-11-20 10:17 ` Mulyadi Santosa
@ 2012-11-27 16:39   ` Jeshwanth Kumar N K Jeshu
  2012-11-28  1:26     ` Mulyadi Santosa
  0 siblings, 1 reply; 6+ messages in thread
From: Jeshwanth Kumar N K Jeshu @ 2012-11-27 16:39 UTC (permalink / raw)
  To: kernelnewbies

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121127/537932db/attachment.html 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Grub installed into USB drive: After boot kernel not initializing
  2012-11-27 16:39   ` Jeshwanth Kumar N K Jeshu
@ 2012-11-28  1:26     ` Mulyadi Santosa
  0 siblings, 0 replies; 6+ messages in thread
From: Mulyadi Santosa @ 2012-11-28  1:26 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-28  1:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-19 18:22 Grub installed into USB drive: After boot kernel not initializing jeshkumar555
2012-11-20 10:17 ` Mulyadi Santosa
2012-11-27 16:39   ` Jeshwanth Kumar N K Jeshu
2012-11-28  1:26     ` Mulyadi Santosa
  -- strict thread matches above, loose matches on Subject: below --
2012-11-18 15:05 Jeshwanth Kumar N K Jeshu
2012-11-19 18:14 ` Mulyadi Santosa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).