Welcome to WebmasterWorld Guest from 54.160.163.163

Forum Moderators: bakedjake

Message Too Old, No Replies

How to find path and enter into mounted HDD?

Linux hdd path of mounted device help

     

mladja04

6:20 pm on Mar 17, 2011 (gmt 0)

5+ Year Member



Hello,

I have server in which I have 2 HDD. One is primary and in it is Linux CentOS. Last week my server stop to work and I reboot it. But after that reboot second mounted HDD in which I backup my files aren't visible at old path. Old path is - I login via SSH and there is folder named SECOND, but now that isn't case.

I want to know, how I to see in which folder to enter, which one is for second HDD?


I see both, but how to enter in it?
And to see what is in it (my old data)?

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 48641 390604410 8e Linux LVM

Disk /dev/sdb: 250.0 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 30401 244196001 83 Linux


Thank you very much.

lammert

6:38 pm on Mar 17, 2011 (gmt 0)

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Looking at the information, the second disk is /dev/sdb1 with only one Linux partition on it called /dev/sdb1

It could be as simple as login in as root and execute the following command to mount the partition of the second disk to /second in the directory tree.

mount /dev/sdb1 /second

mladja04

6:56 pm on Mar 17, 2011 (gmt 0)

5+ Year Member



Do I can before this to see do it already mounted with some folder?


When I do command which you recommend me, on that way will only grant to hdd this name or will delete all data on disk (if still have data)?

lammert

7:50 pm on Mar 17, 2011 (gmt 0)

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



This command mount will only link the partition on the second HDD to the location /second in your directory hierarchy. It will not delete or change any data. If you prefer another location to mount the partition, you can just change the name /second to something else in the command.

mladja04

11:46 pm on Mar 17, 2011 (gmt 0)

5+ Year Member



Thank you very much. I mount this second HDD and now is good, I see files in this disk.

Again, thank you very much.