Can I clean install Mavericks preserving other bootable partitions (Ubuntu on ext4)?
If you clear you partition using Disk Utility and then boot into Internet Recovery or install from another location (for example a USB flash drive) you should be fine, OS X will only be installed (and only effect) the partition you choose to install it on at the start of the installation process.