Memorize 5ths first
If you don’t know the note names, memorizing the 5ths will help you learn the patterns.
All but one are “even” pairs (a term I made up) that contain no accidentals or all accidentals:
A-E
Ab-Eb
C-G
C#-G#
D-A
D#-A#
Eb-Bb
E-B
F-C
F#-C#
G-D
G#-D#
The “uneven” pair (with one accidental) is B to F.
Bb-F
B-F#
Visualizing where the 5ths are will help you “place” the other notes around them. For example, I’m practicing guitar trying to get a picture of the notes across the whole fingerboard in my head. With an unfamiliar scale, I can orient myself if I find the 1st and 5th notes of the scale.
A scale can be visualized as two sets of 4 notes. Each group of four is the same pattern — 1 2 3 4 with a half step between 3 and 4.