Disk in Linux machine are internal or external

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Disk in Linux machine are internal or external
# 1  
Old 10-23-2013
Disk in Linux machine are internal or external

How to check whether the disk in linux machine are internal or external ( from nas or san). How to identify internal(local) and external disks. Following are some details of my server. Thanks.

Code:
#df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3              15G  3.5G   10G  26% /
/dev/sda5             103G   90G  7.7G  93% /ad01
/dev/sda1              99M   13M   82M  13% /boot
tmpfs                 7.9G     0  7.9G   0% /dev/shm

#lsusb
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 004: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 002 Device 003: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 002 Device 002: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 002 Device 005: ID 0928:0007 Oxford Semiconductor, Ltd
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 04b3:4010 IBM Corp.
Bus 006 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
#  ls -ltr
total 0
lrwxrwxrwx 1 root root 10 Oct  7 21:51 usb-HL-DT-ST_DVDRAM_GSA-T50N_M2I98H90832 -> ../../scd0
lrwxrwxrwx 1 root root  9 Oct  7 21:51 scsi-3600508e000000000ff85ab918d3ce200 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct  7 21:51 scsi-3600508e000000000ff85ab918d3ce200-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Oct  7 21:51 scsi-3600508e000000000ff85ab918d3ce200-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct  7 21:51 scsi-3600508e000000000ff85ab918d3ce200-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct  7 21:51 scsi-3600508e000000000ff85ab918d3ce200-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Oct  7 21:51 scsi-3600508e000000000ff85ab918d3ce200-part5 -> ../../sda5


Last edited by Franklin52; 10-23-2013 at 07:59 AM.. Reason: Please use code tags
# 2  
Old 10-23-2013
To see already mounted NAS/SAN:
Code:
mount|grep //

Hope this helps
# 3  
Old 10-29-2013
Thanks for replying, "mount|grep //" is not showing any output. I tried it on a machine which I am sure contained the disk from nas,
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

BASH Internal : Replace pattern with string without external command

Morning, I'm trying step up my scripting game .. :rolleyes::confused::D Is there a way to do the replacement with an or without using an external command ? I did try but no joy. var=${var//\(|\)/} #!/bin/bash var="lulus.UbiRwidgets.com (10.1.1.1)" var=${var//\(/}... (5 Replies)
Discussion started by: popeye
5 Replies

2. Shell Programming and Scripting

lftp script to connect to external sftp site and download to internal ftp and then send email

Hi there, I'm new to shell scripting and need some help if possible? I need to create a shell script (.sh) to run as a cron job on an ubuntu linux server to connect to an external sftp sites directory using credentials (which I have) and then download to our internal ftp server and then copy... (3 Replies)
Discussion started by: ghath
3 Replies

3. Shell Programming and Scripting

using an awk internal variable as parameter for an external array

Hello, I am running a bash script under linux which first defines an CA-array like j=0 num1=120.00 num2=10.00 until do CA='echo $num1 + $j*$num2' j=$ done within the later awk section of this same script I want to read data from a file. If the value of the second column is... (3 Replies)
Discussion started by: MotAah
3 Replies

4. UNIX for Dummies Questions & Answers

How to set server's ip address, router, network mask and set if it is an internal or external ip?

Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b: I stopped at .. :( #!/bin/sh A=`hostname -i` echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies

5. Filesystems, Disks and Memory

internal disk and external disk question

Hello, We are running sun solaris and it is connected to SAN storage. How do I find what are the disks are internal and what are the disks are connected to SAN? (0 Replies)
Discussion started by: mokkan
0 Replies

6. Solaris

Sunfire V880 Internal Disk Problem

Any help on this would be greatly appreciated. I have read other threads on similar subject but still not clear on what this is telling me and what action to take. Do I have a couple of disks that are slowly dying? While checking disk usage on the V880 I noticed the following: # format... (3 Replies)
Discussion started by: jamba1
3 Replies

7. AIX

How to mount internal tape drive of sun machine in AIX 5.3

Hi, Help required! How to mount internal tape drive of sun machine in AIX 5.3 (0 Replies)
Discussion started by: ashwin.krishna
0 Replies
Login or Register to Ask a Question

Featured Tech Videos