Holders Chesterfield face a trip to Doncaster in the second round of the Johnstone's Paint Trophy, while Preston take on Morecambe.
York City play host to League One Coventry City, while Notts County take on Sheffield United in an all-League One clash at Meadow Lane.
In the Southern section, Oxford have been rewarded for their win over high-flying Swindon with a trip to Cheltenham.
Portsmouth, who overcame Bournemouth on penalties in the last round, have been handed another home tie against Wycombe Wanderers.
Johnstone's Paint Trophy - second round draw:
Shrewsbury Town v Crewe Alexandra
Rochdale v Bury
Morecambe v Preston North End
Walsall v Port Vale
Doncaster Rovers v Chesterfield
York City v Coventry City
Notts County v Sheffield United
Hartlepool United v Bradford City
Portsmouth v Wycombe Wanderers
Cheltenham Town v Oxford United
Torquay United v Yeovil Town
Plymouth Argyle v Aldershot Town
Northampton Town v Colchester United
Leyton Orient v Barnet
Brentford v Crawley Town
Southend United v Dagenham and Redbridge
Ties to be played week commencing 8 October.