Notes 3.3 - Data Storage
Notes 3.3 - Data Storage
© Muzzammil Muttur
Computer Science Compiled – Workbook | O Level 2024
Primary Storage
Primary storage is used by the CPU (Central Processing Unit) to store data and instructions. It is also used when
reading/writing data to and from secondary storage (e.g. Hard disk).
Contents of primary storage are directly accessible by the CPU. E.g. ROM, RAM and DVD RAM.
ROM
stands for Read Only Memory
data stored in ROM cannot be altered
Contents of ROM are not lost even when the computer is switched off (non-volatile)
Small storage capacity
used to store the bootstrap
when a computer is switched on, it needs the OS for it to be able to do anything. So a small program is
stored on the ROM whose job is to get the OS from the hard disk so that the computer can work.
This little program is called the bootstrap and the process of retrieving the OS is called booting.
The bootstrap is stored in ROM because it needs to be present when the computer is switched on.
ROM may be used to store the operating system/control software for embedded system (e.g. washing
machine)
RAM
stands for Random Access Memory
ROM RAM
Non volatile Volatile
Contents cannot be modified Can be modified
Small storage capacity Large storage capacity
Two types of RAM technology:
◦ Dynamic RAM (DRAM)
◦ static RAM (SRAM)
ROM
• stores the factory settings such as remote control frequencies
• stores the ‘start-up’ routines when the toy car is first switched on
• stores the set routines; for example, how the buttons on the hand-held device control turning left,
acceleration, stopping, and so on.
RAM
• the user may wish to program in their own routines; these new instructions
• would be stored in the RAM chip
• the RAM chip will store the data/instructions received from the remote control
There are now solid state disks with no moving (mechanical) parts at all.
[Source: https://www.britannica.com/technology/hard-disk]
SSD
A Solid-State Drive/Disk contains no actual disk.
It uses integrated circuit (special programmable ROM memory chip) to store data persistently (even
when power is cut off).
It does not use magnetism.
It uses the same connections ad traditional hard disk drives and can easily replace them (e.g. SATA).
SSDs have no moving (mechanical) parts
SSDs are more resistant to physical shocks, run more silently and quickly.
Most SSDs use NAND-based flash memory, which retains data without power.
Data stored is NOT lost when power is turned off.
[Source: https://diskmfr.com/wp-content/uploads/2022/04/HDD-SSD-Inside.png]
DVD
DVD stands for Digital Versatile Disk. It is similar to a CD in size but can store
much more data. A CD stores around 700 MB (around 0.7 GB) whereas a
single layer DVD stores 4.7 GB of data and a double layer can hold over 9 GB.
A DVD can store data on one or two sides and on one or two layers per side
(dual layer).
CD R or DVD R mean that data may be written only once.
CD RW or DVD RW mean that data may be written or read many times
(ReWriteable)
DVDs:
Are an optical storage medium
Are capable of direct access
Are very portable
Can store a large amount of data
Store sound and pictures of excellent quality
Are cheap
Do NOT work in CD drives
Can be easily damaged by breaking or scratching. DVDs must also be protected from extreme heat.
Require a DVD drive to read the disk
CD
A Compact Disk (CD) is an optical storage device. Data is burnt onto the surface of the disk using a laser beam.
A laser beam is also used to read data stored on the disk. A CD can store around 650 MB of data. A CD-ROM
(Compact Disk Read Only Memory) is can only be written once. The disk cannot be used for storage again but
it can be read many times over.
A CD-R (Compact Disk Recordable) is a CD bought blank (empty). You can then write your data to it. You can
even use multi-sessions to write data on different occasions. Each session will tell the burner to use another
part of the disk.
A CD-RW (Compact Disk ReWriteable) allows you to write and delete data it many times over. It is more
expensive than CD-R.
CDs:
Are small and portable
Are very cheap
Can be used on most computers (can also be used in DVD drives)
Fast access to the data (quicker than magnetic tape)
But
Are fragile (easy to snap or scratch)
Cannot store much data
Are slower to access than the hard disk
A CD-ROM is a metal disc embedded into a plastic protective housing. Each disc has to be 'mastered'; this is the
process of creating the CD and placing the data on it. CDs are WORM (Write Once, Read Many) media; this
refers to the fact that once they have been mastered, there is no way to change the data on them.
1. A single track runs in a spiral pattern from the centre of the disc to the outside, this track is made of pits
and lands to represent the ones and zeroes of binary data
2. A low-powered laser is shone on the metallic surface and the reflection is captured in a photodiode
sensor, the lands reflect differently to the pits, meaning it can tell the difference between a 1 and a 0.
3. The disc spins and the laser follows the track.
4. The binary data (the 1s and 0s) are put together and the CD-ROM has been read
Writing to a CD-R
1. A single track runs in a spiral pattern from the centre of the disc to the outside.
2. A high-powered laser is shone onto the CD-R, changing the transparency (permanently) of the dye
above. The transparent and opaque parts represent binary 1s and 0s
3. The disc spins and the laser follows the track, putting the binary data onto the CD-R in a spiral track.
4. The data has been written.
Blu-ray
A Blu-ray disk can store more data than a DVD. A single layer can hold 25GB of data and a double layer disk can
store up to 50 GB. It looks much like a CD or DVD as they are of the same size.
You need a Blu-ray player to read a Blu-ray disk. You will also need a Blu-ray burner to write data to a write-
able Blu-ray disk.
Blu-ray is mostly used to store high quality commercial movies (HD or 3D). The player uses a blue laser to read
and write data. DVD players use a red laser to read and write data. Using a blue laser allows more data to be
placed closer together on a Blu-ray disk since blue light has a shorter wavelength than red light.
Optical media
Device Type Size Image
CD-ROM Read Only 650 - 900
CD-R Write once then Read only MB
CD-RW re-Writable
DVD-ROM Read Only 4.7 - 9.4 GB
DVD-R Write once then Read only
DVD-RW re-Writable
DVD-RAM re-Writable
Blu-ray (BD) Re-Writable and Read Only versions 25-50 GB
disc available. Uses a blue laser, that is able to
HD DVD recognise smaller pits and lands, which
(obsolete) allows for the pits and lands to be more
closely packed, and so store more data.
They connect to a computer through the USB port. These devices are small and lightweight – therefore very
easily portable. They can be used as small backup devices.
Digital cameras and smart phones use SD (Secure Digital) or XD (eXtreme Digital) which are based on the same
technology used for memory sticks.
Solid-state memories must not be in use (data transfer) when removed from the USB port or card slot. The
storage device could become unusable.
Part of unused data in RAM is moved out to the HDD/SSD to allow more space for new programs. A memory
management method called paging is used and facilitates the work of virtual memory management.
The problem with virtual memory is disk thrashing. This is when the CPU and OS are busier transferring data in
and out of memory rather than actually processing the data.
Private cloud
o Storage is provided by a dedicated server protected by a firewall
o The customer and cloud storage provider work together as a single entity
Hybrid cloud
o A combination of the above two environments
o Some data resides in the private cloud and less sensitive data can be accessed from a public cloud
storage provider
URL Description
https://www.youtube.com/watch?v=rBSRvjKdTh8 Optical Disks