A major fire has ripped through a disused factory in Eastern Creek only metres from the M4.

Up to 120 firefighters from the NSW Fire Service and 80 firefighters from the Rural fire service are battling the blaze.

Smoke is billowing from the building on Peter Brock Drive in Sydney's west, which is believed to have collapsed during a hail storm in April.