Mounting Hard disk Partition Using Linux Shell

සොයන්න

2.7.11

cd /media/
mkdir testDrive
cd /dev/disk/
ls
it will list by-id by-path by-uuid
here I choose to list disk drives by-uuid. (note : all the disk partitions are listed in /dev/disk/ and those partitions can be listed according to by-id, by-path, by-uuid [which has assigned by Kernel itself].)
cd by-uuid/ hit enter
type “ls” and hit enter.
it will list partitions similer way to following

0a35d9f2-d2d0-4e3e-8f93-226ec5c10f3c
2ce1f005-ca67-41a5-92f0-55db859c0f6b
c519dea0-3ceb-41a1-97a1-1971ed5eacf5
c8291cf2-39a8-4e1e-9067-e03f804baf76

in my PC 3 partitions I have. One partition is for Kernel reserved file system.
Now we are going to mount a partition to the /media/testDrive which we created at beginning.
mount 2ce1f005-ca67-41a5-92f0-55db859c0f6b /media/testDrive/

now type cd [space] and hit enter

again cd /media/ testDrive/

type ls and it will list the files on the mounted partition. Have fun !

0 comments:

Post a Comment

පරිගණක උදවු ගැන ඔබේ අදහස

PCWorld නවතම පුවත්