Solved

mounting external HD in linux

Posted on 2013-01-30
12
261 Views
Last Modified: 2013-01-31
Hi, how can i find the partition device name on an external hard drive to format it. fdisk -l does not show the hard drive listed, however dmesg shows kernel recognizes the HD.
ScreenHunter-02-Jan.-30-13.40.gif
0
Comment
Question by:nevyana2006
  • 6
  • 5
12 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 38836520
Issue command
lsusb

Open in new window

0
 

Author Comment

by:nevyana2006
ID: 38836557
0
 
LVL 31

Expert Comment

by:farzanj
ID: 38836620
Ok, if you know the label of your drive, you can try

lshal | grep -i 'label'

Open in new window

0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:nevyana2006
ID: 38836650
don't have that command available...
0
 
LVL 31

Expert Comment

by:farzanj
ID: 38836859
Disconnect your hard drive.

Become root
Issue command
tail -f /var/log/messages

Connect your hard drive.
Do you see anything on the screen?
0
 

Author Comment

by:nevyana2006
ID: 38836883
0
 
LVL 31

Expert Comment

by:farzanj
ID: 38836941
Do you have any /dev/scsi0    
?

Check by command

ls /dev/scsi0

Open in new window



If so
mkdir /media/external

mount /dev/scsi0 /media/external

Open in new window


What is the partition type? vfat?

If the above doesn't work try:
mount -t vfat /dev/scsi0 /media/external

Open in new window

0
 

Author Comment

by:nevyana2006
ID: 38836983
yeah, i don't have ls /dev/scsi0, its ext3
0
 
LVL 10

Assisted Solution

by:asavah
asavah earned 250 total points
ID: 38837481
Your ext3 fs is damaged, you get a warning about it, disk label seems to contain some non standard characters, not sure about it, but it could prevent automount from working.

Knowing what kind of linux you got would help. I suggest you start help requests for *nix systems with distribution flavor ie: debian,centos, ubuntu and kernel version ( uname -a command ).
Now we need to get the /dev/ node that your system is assigning to the usb hd.
In most modern linuxes usb storage devices will get sdXY dev node, something like /dev/sdc1.

Try:
blkid

Open in new window

command as root.

Post output here.
0
 

Author Comment

by:nevyana2006
ID: 38837715
yeah... but its Linux 2.4.20-20.9. blkid is not available...
0
 
LVL 31

Accepted Solution

by:
farzanj earned 250 total points
ID: 38837967
It is not working.  dmesg and /var/log/messages should have had the right device name if the kernel was accepting your hard drive as a valid drive.  Perhaps it doesn't have a valid driver.  Kernel is way too old.  It appears to be like RHEL 4 or similar.  Get a newer release.
0
 

Author Comment

by:nevyana2006
ID: 38839373
yeah, at least clear conscious that i tried...thanks much
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
winscp 000webhost.com 6 53
How to retrieve remote exit code when using rsh from Linux to Windows ? 13 41
awk variable in printf 1 25
how to configure linux OS using Ubuntu 7 44
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question