LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount usb HD (https://www.linuxquestions.org/questions/linux-newbie-8/mount-usb-hd-901447/)

ust 09-06-2011 11:23 AM

mount usb HD
 
I have a USB external HD has plug to the linux server , I tried mount /dev/sda1 /mountpoint but pop the error .

mount: /dev/sda1 : No such file or directory

I don't know why pop the error, can advise how can I mount ?

Thanks.

Nylex 09-06-2011 11:29 AM

Can you post the exact command you used to mount, please? Are you sure you're using the correct device? Also, does the mount point exist?

Samotnik 09-06-2011 12:27 PM

Well. You obviously use incorrect device filename. Check dmesg immediately after you plug your external HD in to find correct device filename.
E.g.
Code:

[ 4006.427334] sd 2:0:0:0: Attached scsi generic sg2 type 0
[ 4008.416458] sd 2:0:0:0: [sdb] 3903488 512-byte logical blocks: (1.99 GB/1.86 GiB)
[ 4008.419445] sd 2:0:0:0: [sdb] Write Protect is off
[ 4008.419452] sd 2:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 4008.425443] sd 2:0:0:0: [sdb] No Caching mode page present
[ 4008.425451] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 4008.444442] sd 2:0:0:0: [sdb] No Caching mode page present
[ 4008.444450] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 4008.450522]  sdb: sdb1
[ 4008.468444] sd 2:0:0:0: [sdb] No Caching mode page present
[ 4008.468453] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 4008.468459] sd 2:0:0:0: [sdb] Attached SCSI removable disk

This is output of dmesg after I plug my flash drive in. It shows, that device filename of my drive is /dev/sdb1

ust 09-06-2011 06:20 PM

Quote:

Originally Posted by Samotnik (Post 4463098)
Well. You obviously use incorrect device filename. Check dmesg immediately after you plug your external HD in to find correct device filename.
E.g.
Code:

[ 4006.427334] sd 2:0:0:0: Attached scsi generic sg2 type 0
[ 4008.416458] sd 2:0:0:0: [sdb] 3903488 512-byte logical blocks: (1.99 GB/1.86 GiB)
[ 4008.419445] sd 2:0:0:0: [sdb] Write Protect is off
[ 4008.419452] sd 2:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 4008.425443] sd 2:0:0:0: [sdb] No Caching mode page present
[ 4008.425451] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 4008.444442] sd 2:0:0:0: [sdb] No Caching mode page present
[ 4008.444450] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 4008.450522]  sdb: sdb1
[ 4008.468444] sd 2:0:0:0: [sdb] No Caching mode page present
[ 4008.468453] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 4008.468459] sd 2:0:0:0: [sdb] Attached SCSI removable disk

This is output of dmesg after I plug my flash drive in. It shows, that device filename of my drive is /dev/sdb1

thx ,

I didn't find sda , sdb...etc in /dev , the usb drive should be use device sd* ?

I just found the below message in dmesg

umass0: detached
umass1: at uhub0 port 2 (addr 3) disconnected

Nylex 09-07-2011 12:33 AM

*Sigh*. Could you post the last 10 or so lines from dmesg, after plugging the device in?


All times are GMT -5. The time now is 05:27 PM.