Over the last week or so I've had trouble with the brakes on my Rail too, still quite a new bike, only been riding it for 3 weeks. Brakes are Shimano MT-520 with 203 rotors, Shimano's budget level 4-piston brakes, and I have found the rotors to be particularly noisy. Rotors were also not running true from brand new, I've done my best to straighten them but I haven't been able to get rid of brake rub entirely. They are often noisy when they get dusty, especially the front, like a goose honking with each rotation of the wheel. I can quieten them by squirting rotor and caliper with water, sometimes this is enough to silence them.
The other problem I have had is I have had to warranty my front caliper. I couldn't get the pistons on one side to fully retract into the caliper, so it was impossible to set the brake up properly with all 4 pistons moving equally and no rotor rub. When I tried to push these two pistons back, using a tyre lever, I heard a crunchy gritty sound. I did a google search and found on another forum a discussion about this issue. The pistons are ceramic and will sometimes break inside the bore. Incorrect assembly perhaps. LBS mechanic said mine were the 6th brake he'd warrantied. The pistons look fine from the outside, but when you take apart the caliper, you find broken-off pieces of the piston, which stops the piston fully retracting and causes the gritty sound.
I recently attempted to fix the long lever throw that had developed in my XT calipers. As is documented in several places here, I did the piston extension/clean/lube thing. With one of the pistons on my front caliper, I could not get it to retract. This is what was causing the lever throw...
forums.mtbr.com
Sophie777, I don't know if you have this issue, but I went back and took a look at the pics of your caliper, and your pistons are further out on the left than the right, so the rotor will be rubbing on one side. I would start by removing the pads, and see if you can push the pistons all the way back. If you can't, and it feels/sounds gritty, you've got the same problem as me. If everything is fine, try centering the caliper over the rotor. Put everything back, and pull the lever. If you can see one side is moving further than the other, hold that side back (carefully, with a screwdriver pressing on the backplate of the pad) and allow the other side to come out. Might need to do this a few times to lubricate the seals. Also check your rotors are straight, spin the wheel slowly and note where the rotor is rubbing. Use an adjustable spanner (clean the jaws first) to bend that part of the rotor to where you want it.
I would add the lines on your rotors is normal, you don't need to replace your rotors. Your bike probably came with sintered (metal compound) pads, as mine did, which are also noisier than resin pads. You could try fitting resin pads.