through a live cd, first mount your boot partition to some directory for example:
mount /dev/hdb1 /boot
in this case /dev/hdb1 is the boot partition then /boot is the directory to mount on.
then edit the grub file there.
you can have more info where your boot files are located by doing or reading (in your local system and not livecd):
ls -l /boot