rahilm
December 2nd, 2009, 08:20 AM
hello all..
i've been playing around with grub2 recently and decided upon a simple experiment.
I recently installed Windows 7 on my hard disk which obviously wiped out the mbr.
Fine. what i am trying to do is... I have a 1 Gig MicroSd card which is of no use, I want my grub2 on it so that the linux part only shows up when i plug in the car..
The card is bootable...i have booted puppy linux and DSL several times through it..
what i have achieved so far as follows:
memory card is sdc1
sudo mount /dev/sdc1 /mntThis mounts my drive on /mnt (for practical purposes)
sudo grub-install --root-directory=/mnt /dev/sdcthis installs grub2 on the card.
When I did reboot into my card, I was disappointed to find no menu, just the Command line. After searching I found that the grub-install command did not create a grub.cfg file on the card..
So , I did
configfile (hd1,6)/boot/grub/grub.cfgthis makes use of the grub.cfg file i have it on sda6.
Everything was normal after that..point to note is that when i run grub2 from the card my hard disk becomes (hd1) which is normal(i.e was same in grub legacy)
My question is ..Is there a way to create a grub.cfg file in the card. I tried copying the one in sda6 but then grub2 hung up at startup.
Also , how do you update such a grub.cfg ..since editing it directly is forbidden (i use update-grub2 in ubuntu)
Note: sda6 contains Ubuntu 9.10
Grub version is 1.97 beta4
i've been playing around with grub2 recently and decided upon a simple experiment.
I recently installed Windows 7 on my hard disk which obviously wiped out the mbr.
Fine. what i am trying to do is... I have a 1 Gig MicroSd card which is of no use, I want my grub2 on it so that the linux part only shows up when i plug in the car..
The card is bootable...i have booted puppy linux and DSL several times through it..
what i have achieved so far as follows:
memory card is sdc1
sudo mount /dev/sdc1 /mntThis mounts my drive on /mnt (for practical purposes)
sudo grub-install --root-directory=/mnt /dev/sdcthis installs grub2 on the card.
When I did reboot into my card, I was disappointed to find no menu, just the Command line. After searching I found that the grub-install command did not create a grub.cfg file on the card..
So , I did
configfile (hd1,6)/boot/grub/grub.cfgthis makes use of the grub.cfg file i have it on sda6.
Everything was normal after that..point to note is that when i run grub2 from the card my hard disk becomes (hd1) which is normal(i.e was same in grub legacy)
My question is ..Is there a way to create a grub.cfg file in the card. I tried copying the one in sda6 but then grub2 hung up at startup.
Also , how do you update such a grub.cfg ..since editing it directly is forbidden (i use update-grub2 in ubuntu)
Note: sda6 contains Ubuntu 9.10
Grub version is 1.97 beta4