LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mounting USB external disk (Acom) (https://www.linuxquestions.org/questions/linux-hardware-18/mounting-usb-external-disk-acom-424594/)

Quigi 03-13-2006 09:31 PM

Mounting USB external disk (Acom)
 
I'd like to access an AcomData external hard disk; I'm trying USB. How is this done?

I searched LQ (and Google). People say "is recognized" or "shows up as /dev/sda1 on the desktop". What specific steps would one take to make that happen? I suspect I miss something basic.

Re finegan's sticky questions:
> 2. Next up, what kernel AND distro
2.6.9-1.11_FC2

>5. When in doubt, drop in some logs.
/var/log/messages (when plugging it in):
Quote:

kernel: usb 1-1: new full speed USB device using address 3
The address goes up by 1 every time I plug it in.
dmesg: dito (nothing else, until I unplug it).

7. "/sbin/lsusb":
Quote:

Bus 001 Device 006: ID 0c0b:27e7 Dura Micro, Inc. (Acomdata)
Bus 001 Device 001: ID 0000:0000
-v says lots, e.g.,
Quote:

iManufacturer 1 DMI
iProduct 2 USB2.0 Storage Adaptor

If you still doubted my ignorance, I tried mounting /dev/sda1, but got
Quote:

mount: /dev/sda1 is not a valid block device
:confused:

Thanks for any pointer (or RTFM)

Quigi

kilgoretrout 03-14-2006 08:21 AM

With the device plugged in and turned on, open a console, su to root and run:

# /sbin/fdisk -l

and:

# /sbin/lsmod

Post the output of both here. The first command will list all partitions recognized by your system, whether mounted or not. See if there is a listing for any sda. The second will list all loaded modules. From that you can determine whether the modules necessary for the drive to be detected have been loaded. These include certain scsi modules, usb-storage and the usual usb modules, ehci and uhci. From there you can start to troubleshoot what's causing the problem.

Quigi 03-14-2006 10:46 AM

Hi Kilgoretrout,

Quote:

Originally Posted by kilgoretrout
These include certain scsi modules, usb-storage and the usual usb modules, ehci and uhci.

That was exactly the information I needed! Here's what I did with it:
Quote:

modprobe ehci_hcd
modprobe usb_storage
and then all was fine; e.g., I could mount /dev/sda1 /mnt/acom.

I'm putting the requested output below. For next time, where should I have learned this? Is there a Howto, manpage, newbie intro?

Thank you so much!

Quigi


Before modprobeing, fdisk -l didn't report any sd; now I get it:
Code:

Disk /dev/hda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1        382    3068383+  83  Linux
/dev/hda2            383        1400    8177085  83  Linux
/dev/hda3            1401        1465      522112+  82  Linux swap
/dev/hda4            1466        2432    7767427+  f  W95 Ext'd (LBA)
/dev/hda5            1466        2432    7767396  83  Linux

Disk /dev/sda: 250.0 GB, 250059350016 bytes
240 heads, 63 sectors/track, 32301 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1      32301  244195528+  c  W95 FAT32 (LBA)

BTW, I just notice that hda4 and hda5 occupy the same blocks, while all others sit nicely next to each other and don't overlap. Should I be concerned?


lsmod gives the same as root or normal user:
Code:

Module                  Size  Used by
usb_storage            62217  1
ehci_hcd              30789  0
vfat                  14785  1
fat                    44385  1 vfat
sd_mod                16705  2
xfrm4_tunnel            4165  2
af_key                30673  0
nls_utf8                2113  0
udf                    83013  0
deflate                3649  1
zlib_deflate          20569  1 deflate
twofish                37057  0
serpent                13377  0
blowfish              10177  0
sha256                  9153  0
crypto_null            2369  0
aes_i586              38581  2
des                    11713  0
ipcomp                  8009  2
esp4                    7873  2
ah4                    6337  0
sr_mod                17637  0
snd_pcm_oss            48633  0
snd_mixer_oss          17857  4 snd_pcm_oss
snd_intel8x0          34829  4
snd_ac97_codec        64145  1 snd_intel8x0
snd_pcm                95817  2 snd_pcm_oss,snd_intel8x0
snd_timer              29381  1 snd_pcm
snd_page_alloc          9801  2 snd_intel8x0,snd_pcm
gameport                4929  1 snd_intel8x0
snd_mpu401_uart        8897  1 snd_intel8x0
snd_rawmidi            26213  1 snd_mpu401_uart
snd_seq_device          8137  1 snd_rawmidi
snd                    54693  11 snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore              10017  4 snd
parport_pc            24577  1
lp                    11565  0
parport                37257  2 parport_pc,lp
autofs4                23493  0
sunrpc                158501  1
orinoco_cs              9673  0
ds                    17605  1 orinoco_cs
pcmcia_core            60937  2 orinoco_cs,ds
orinoco                45133  1 orinoco_cs
hermes                  7745  2 orinoco_cs,orinoco
3c59x                  36841  0
ipt_REJECT              6465  1
ipt_state              2113  3
ip_conntrack          41589  1 ipt_state
iptable_filter          3009  1
ip_tables              16193  3 ipt_REJECT,ipt_state,iptable_filter
floppy                57969  0
sg                    34017  0
scsi_mod              121421  4 usb_storage,sd_mod,sr_mod,sg
microcode              6625  0
radeon                121157  2
md5                    4161  1
ipv6                  236673  14
dm_mod                54869  0
uhci_hcd              31193  0
button                  6609  0
battery                8645  0
ac                      4933  0
ext3                  121417  3
jbd                    72025  1 ext3


kilgoretrout 03-14-2006 01:10 PM

The overlap is correct. hda4 is an extended partition and hda5 is the first extended/logical partition on hda4. This is completely normal. A hard drive can only have four primary partitions. In order to get around that limit, you create an extended drive with logical partitions on it. hda4 is the extended partition and holds all the extra logical partitions on the blocks it covers.

Quigi 03-14-2006 01:15 PM

Cool. Thanks again


All times are GMT -5. The time now is 01:01 AM.