Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing the Linux file system with windows

Status
Not open for further replies.

071

MIS
Aug 9, 2000
153
Hello,
Few simple questions that I'd like to clear up...

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 8799616 5328412 3024196 64% /
/dev/sda1 101089 9296 86574 10% /boot
none 119384 0 119384 0% /dev/shm
/dev/sdb1 7218432 3078388 3773364 45% /manhatten

Could the windows equivalant to /dev/sda2 and /dev/sda1 be c:and /dev/sdb1 d: ??
Also,it is my understanding that / is at the top of the Linux/UNIX directory tree and all of the other directories are created under it. If this is the case then why does /boot above appear to be on a different filesystem (/dev/sda1) Is this because boot specifically needs another filesystem for the process itself or could it be a safety measure ?





Cheers,
71
 
Also, does this in turn mean that /etc /bin and other directories would be located on /dev/sda2 ??

Are the disks named in order alphabetically ? ie. "b" in /dev/sdb1 refers to the 2nd disk so /dev/sdc1 would refer to the 3rd disk ?




Cheers,
71
 
According to your file

/etc and /bin will be in your /dev/sda2

Probably you have a older linux distro as until a couple of years ago you had to leave /boot filesystem in a separate partition.

Modern linux distros do not need that anymore so you may find normally

/dev/sda1 /

and everything installed in the same partition.

The disks are named as follows

In your case

SD for SCSI disk + A for first disk + 1 for first partition

if you where using IDE you would have

/dev/hda1, first disk on first channel and first partition.

more examples

/dev/sdc2 = 3rd SCSI disk, second partition
/dev/hdd1 = 4th IDE drive (or slave drive on second controller), first partition.


Cheers

QatQat

Life is what happens when you are making other plans.
 
@qatqat
> a couple of years ago you had to leave /boot filesystem in a separate partition

I didn't since 1998.

@071
/etc and /bin will most probably be on sda2, but they could be symbolic links to another place, or being mounted without using fstab - both would be curious, hard to reach*, but not impossible.

*) hard to reach, because /bin and /etc are used very early during bootup.
Now you have to ask how /etc/fstab is found, without knowing where to search for it, before mounting. :)

seeking a job as java-programmer in Berlin:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top