?
Solved

mounting external HD in linux

Posted on 2013-01-30
12
Medium Priority
?
269 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 1000 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 1000 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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

755 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