Sign in to follow this  
Gink

Question about sectors

Recommended Posts

Gink    100
What is the significance of storing files on 512 byte sectors? And what happens with unused data within the sector? Also, is it possible to notice that every file you create will cause 512 bytes from a sector to be allocated for file storage?

Share this post


Link to post
Share on other sites
Catafriggm    296
Yes. Files are stored in whole numbers of sectors (actually, whole number of clusters, which will be some power of two number of sectors). The extra space is wasted.

Share this post


Link to post
Share on other sites
Gink    100
So, lets suppose i have a 2000 byte hard drive

If i save 5 1 bytes files I wont have any storage space left?

Share this post


Link to post
Share on other sites
Gink    100
How would you know you are running out of space? If I save a 1 byte file it doesnt say that I lost 512 bytes of space.

Share this post


Link to post
Share on other sites
nprz    692
Do you have a 2KB hard drive? I don't even have a diskette that is smaller than 360Kb (5.25" floppy, low density).

Share this post


Link to post
Share on other sites
Gink    100
Quote:
Original post by nprz
Do you have a 2KB hard drive? I don't even have a diskette that is smaller than 360Kb (5.25" floppy, low density).


Quote:
So, lets suppose i have a 2000 byte hard drive


Learn to read

my files say they take up 4096 bytes each

Share this post


Link to post
Share on other sites
Catafriggm    296
Then 4096 bytes is your cluster size (8 sectors). I should note that a sector is the basic unit of disk access. Your hard drive can only read and write sectors, it can't read/write individual bytes. Clusters are an operating system/file system invention.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this