confused a bit about mount
when i use the mount command to mount an hdd to a mount point .. am i mounting the hdd as a whole or the partitions like hdd1 ?
:confused: |
Quote:
If we speak about hard disks, then the usual thing is that they will contain partitions, so, you don't mount hdc, but hdc1, hdc2... and so on. You could format the whole disk without partitioning it, something that's not possible in other OSes, then you could mount it instead of mounting single partitions, but you usually don't do that. In linux you can even format a file and mount it as it was a disk. On the contrary, when we speak about cdroms we mount the whole block device, and not a partition. So, if hdc is a cdrom, then we mount hdc itself, and not hdc1. It just depends on how did you create the filesystem and that stuff. |
thanks for clearing that up :)
|
Hi,
Quote:
When you allocate all the space on a hdd to a particular filesystem you must first create a partition on that device then create the filesystem of choice by formatting. To the OP, you should look at the complete 'man' pages for the commands. Code:
excerpt from 'man fdisk'; Code:
excerpt from 'man mkfs'; |
Quote:
Quote:
To be more explicit, there's nothing stopping you from doing something like "mkfs.ext3 /dev/hda". |
Hi,
I thought we were speaking about partitioning for the OP. Explaining the reasoning for setting up partitions on devices. |
But the point I am seeing is that you do NOT have to set up any partitions.....
Mybe this will help (cyberiapost--are you still with us?): You don't mount drives or partitions---you mount filesystems. The filesystem can exist on a partition, or it can exist on the whole drive--with no partitions. The other semanticism* I find useful is to think of "mount" as "connect". When you say "mount /dev/sda2 myfiles", you are connecting the filesystem on /dev/sda1 to the "myfiles" node on the overall filesystem tree. For the history buffs, note that "mount" comes from the old days when "mounting the filesystem" meant walking thru a bunch of racks, finding a tape, and physically mounting it on the tape drive. *Yes, I just made up that word..... |
Quote:
If you know and understand that, then everything else becomes crystal clear, and you don't need to ask things like "do I mount hda or hda1?". |
All times are GMT -5. The time now is 05:18 AM. |