Final preparations are under way at polling stations across Scotland as the country embarks on the largest vote in its history.

More than four million people are registered to cast their votes across 32 local authorities tomorrow and, in doing so, will determine the country's future, whether as an independent state or remaining part of the United Kingdom.

When the clock hits 7am, 2,608 polling places will open their doors to everyone from teenagers to pensioners eager to put their cross in the Yes or No box.

The will of the nation will be announced on Friday morning at the Royal Highland Centre outside Edinburgh by chief counting officer (CCO) Mary Pitcaithly.

As convenor of Scotland's Electoral Management Board, Ms Pitcaithly has responsibility for ensuring the proper and effective conduct of the referendum, including the poll and count.

When polling closes at 10pm the sealed boxes containing the ballot papers will be collected and transported to each local authority's designated count venue - in most cases a school, sports centre or town hall.

The number of ballot papers in each box will be counted by a 5,767-strong counting team and the total will be reported to the CCO, who will authorise the local counting officer to announce the turnout.

Then comes the important part: the papers will be sorted into Yes, No and those deemed "doubtful". These will need to be judged and possibly rejected as spoiled.

After reporting to the CCO, each local authority will announce its result, with the first declaration expected at around 1.30am and the last at about 6am.

Ms Pitcaithly will then make the final declaration.

The chief executive of Falkirk Council was a depute returning officer for Scotland's 1997 referendum and was the regional counting officer for Scotland in the 2011 AV referendum.

She said: "We've been modelling everything on a 70 to 90% turnout so we're prepared for whatever happens tomorrow. We have committed and experienced teams across all 32 local authorities."

Spoiled papers generally represent around 3% of votes cast in a ballot but it is hoped that with a single question to answer, the figure tomorrow will be lower.

Andy O'Neill, head of the Electoral Commission in Scotland, said: "We know a lot of people will be voting for the first time on Thursday and we want no one to miss out.

"Make sure you know where your polling station is and when you get there, place an 'X' on your ballot paper.

"You don't need a poll card to be able to cast your vote, but if you have it, do bring it as it will speed up the process inside the polling place."

Police Scotland said policing arrangements are well in hand as the service gears up to respond if necessary.

Assistant chief constable Bernard Higgins said: "Detailed plans have been developed to ensure that we can respond appropriately to any issues that may arise.

"Where individuals do have concerns or wish to report a crime, I would urge them to come forward and report it through our 101 number where it will be dealt with appropriately."

Here are some questions about the vote and count procedure:

Q: Turnout could be as high as 85%. Will there be enough ballot papers to go round?

A: Papers can be spoiled before they reach the ballot box, so 120% of the papers required for the vote have been printed as a precaution.

Q: No trouble is expected at polling places, but what if it happens?

A: The Scottish Independence Referendum Act 2013 does address the possibility. Where proceedings at any polling place are interrupted by riot, they will be adjourned until the following day.

Q: What happens if people are still waiting to vote when polls close?

A: At 10pm a member of polling place staff will mark the end of any remaining queue. All those waiting will be able to cast their vote but for anyone arriving beyond this point it will be too late.

Q: What constitutes a void ballot paper?

A: Any paper which indicates a vote in favour of neither or both answers to the referendum question "Should Scotland be an independent country?".

Any paper on which anything is written or marked which could identify the voter.

Q: Won't it take a long time to collect ballot boxes from all over Scotland's remote Highlands and Islands?

A: Local authorities such as Orkney Islands Council do not have polling stations on their many isles. Instead voters can apply for a postal vote or travel to the mainland to vote. It means there is no need to wait for ballot boxes to travel long distances by plane or boat.

Q: What time can we expect the national declaration?

A: Officially, "breakfast time". A survey of councils suggests Aberdeen will be the last council to declare at 6am and the national result will come soon after.

Q: Will we be able to establish early on which way the vote will go?

A: Results will be announced through the night by each of the local authorities. There may be a "tipping point" where it is clear from the total number of votes cast and the result so far that a winning side has emerged.

Q: What about a recount?

A: A counting officer or the CCO can request a local recount if he or she considers it appropriate. A recount would only be requested if there was some doubt over the process - for example, if there were concerns over a mix-up with the ballot papers or that some had not been counted. The closeness of the vote is not a justification to order a recount. The CCO cannot order a recount after the result has been declared.