homepage Welcome to WebmasterWorld Guest from 54.166.53.169
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
How to find path and enter into mounted HDD?
Linux hdd path of mounted device help
mladja04

5+ Year Member



 
Msg#: 4283166 posted 6:20 pm on Mar 17, 2011 (gmt 0)

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

WebmasterWorld Senior Member lammert us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4283166 posted 6:38 pm on Mar 17, 2011 (gmt 0)

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

5+ Year Member



 
Msg#: 4283166 posted 6:56 pm on Mar 17, 2011 (gmt 0)

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

WebmasterWorld Senior Member lammert us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4283166 posted 7:50 pm on Mar 17, 2011 (gmt 0)

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

5+ Year Member



 
Msg#: 4283166 posted 11:46 pm on Mar 17, 2011 (gmt 0)

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

Again, thank you very much.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved