Operating Systems > Linux and UNIX
Other Hard Drives
Paladin9:
Could someone tell me how to browse other hard drive in linux? I know you must type / to get to the root of the drive, but how the hell do you read other drives? I know how to mount CD drives and the floppy drive, which is easy, but what about other hard drives?
voidmain:
You browse them like any other drive. It all depends on where you mount the partitions on those drives. You can use "ls" (which any of your favorite parameters) or you can use a graphical file manager. To see where all of your partitions are mounted type "mount" or "df". In Linux and UNIX there are no "drive letters". You can add all of the drives you want and you mount them on any directory that you like under the "/" directory (usually you create a directory to mount the partition on).
For instance, you might have a second drive with lots of space that you want everyone's "home" directories to go on. You could create a large partition on that drive and mount it as "/home". Then everything you browse under the "/home" directory is on that specific partition on that specific drive.
Here's a coupla links that may explain it a little better:
http://linuxnewbies.editthispage.com/linuxworld
http://www.ctssn.com/linux/lesson9.html
[ September 10, 2002: Message edited by: void main ]
TheQuirk:
you mount your other hard drive as if it was a floppy of a CD.
for example, lets say you want to mount partion 1 on you first master IDE Hard drive. you'll just do..
# mount /dev/hda1 /mnt/hd2
The to browse it you just go to the folder you mounted it on (/mnt/hd2 in this example)
[ September 10, 2002: Message edited by: TheQuirk ]
Paladin9:
Ok, then can you mount a FAT32 or NTFS partition?
voidmain:
FAT32 is no problem and you can have read/write access. NTFS is a little tricky but you can get read only access with no problem.
[ September 10, 2002: Message edited by: void main ]
Navigation
[0] Message Index
[#] Next page
Go to full version