It wouldn't be the first noisy pump I've heard that although still works doesn't intermittently provide enough fuel pressure to start.
If the in-tank pump is working and if not there's plenty of diesel in the car then suspect the under bonnet pump
Of course there's other fuel related issues that can cause poor starting, injector leak-back, collapsed fuel filter, HP fuel regulator for example
Russ