In a large pot on the stove, cook the pasta according to package instructions.
Put aside 1 cup of the pasta water.
Wipe the mushrooms with a cloth to remove any dirt, and chop into small pieces.
In a large bowl, place the chopped mushrooms and cover with the herbs and spices.
In a large saucepan, lightly cook the mushrooms (and optional bacon) in the olive oil for about 5 minutes. (Ensure that the bacon is cooked.)
Add the pasta water into the saucepan to combine with the mushroom and pancetta juices to make a sauce.
Once the pasta has finished cooking, drain the pasta and place it in a large casserole dish.
Layer the mushrooms along with the sauce (and optional bacon) between the cooked pasta.
Preheat the oven at 375°F (190°C).
Top the casserole with the parmesan cheese and mix it into the pasta bake.
Place in the oven for 10-15 minutes or until the cheese on top looks cooked and golden brown.
Serve while warm.