boot into recovery mode.

1.find the partition you need
#fdisk -l

2. mount the partition
/dev/hda1 - the partiton path from fdisk. /mnt/ path to mount to.
#mount /dev/hda1 /mnt/


edit your files