Find the answer to your Linux question:
Results 1 to 8 of 8
My kernel is 2.6. I include the support for USB in the kernel. I mean, the support for USB in my kernel is not a module. The /var/log/messages has the ...
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Posts
    43

    USB mount point

    My kernel is 2.6.
    I include the support for USB in the kernel. I mean, the support for USB in my kernel is not a module.

    The /var/log/messages has the following information about usb.

    kernel: usb 1-6: new high speed USB device using address 2

    What does that mean? what mount point does it imply?

    I tried " mount /mnt/usb" and it said mount: mount point /mnt/usb does not exist.

    ( in my /etc/fsaq , I added "/dev/usb1 /mnt/zip ...................."

    What is the problem?

    Thanks a lot!

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    I take it that the usb device is a storage device like a hdd or usb stick?

    THen open up a terminal and do:
    Code:
    su -
    [rootpass]
    mkdir /mnt/usb
    mount /dev/sda1 /mnt/usb
    and now you should be able to access the usb storage device at /mnt/usb.

    Further reading

    dylunio
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Just Joined!
    Join Date
    Nov 2004
    Posts
    43
    Thanks for your reply. However it doesn't work. Here is the message from log file.

    usb 1-6: new high speed USB device using address 3
    Sep 16 18:02:04 kernel: scsi1 : SCSI emulation for USB Mass Storage devices
    Sep 16 18:02:04 kernel: Vendor: Kingston Model: DataTraveler 2.0 Rev: 1.00
    Sep 16 18:02:04 kernel: Type: Direct-Access
    ANSI SCSI revision: 02
    Sep 16 18:02:04 kernel: SCSI device sda: 974848 512-byte hdwr sectors (499 MB)
    Sep 16 18:02:04 kernel: sda: assuming Write Enabled
    Sep 16 18:02:04 kernel: sda: sda1
    Sep 16 18:02:04 kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
    Sep 16 18:02:05 kernel: Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0, type 0
    Sep 16 18:02:05 kernel: scsi.agent[1485]: sd_mod: can't be loaded (for disk)

    My /etc/fstab file has " /dev/sda1 /mnt/usbflash vfat defaults,user,noauto 0 0

    I typed " mount /mnt/usbflash"
    It got the errors " mount: wrong fs type, bad option, bad superblock on /dev/sda1,
    or too many mounted file systems"

    Does my lg file say correctly about "sd_mod" has problems? What does that mount information mean?

    Thanks again!

  4. #4
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Firstly I'll check that the filesyntem of the usb drive is fat32 (or another fat fs), since you state that it is with vfat in the fstab line.

    Ok if it still doesn't word run
    Code:
    lsmod | grep sd_mod
    and tell us if anything comes up.
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  5. #5
    Just Joined!
    Join Date
    Nov 2004
    Posts
    43
    Another information. When I typed "

    fdisk /dev/sda"

    God error " Unable to open /dev/sda".


    Also, I found information from /var/log/messages
    Sep 16 18:02:05 scsi.agent[1485]: sd_mod: can't be loaded (for disk)
    Sep 16 18:06:39 Unable to load NLS charset cp437


    Where did I wrong? Thanks a lot......

  6. #6
    Just Joined!
    Join Date
    Nov 2004
    Posts
    43
    Quote Originally Posted by dylunio
    Firstly I'll check that the filesyntem of the usb drive is fat32 (or another fat fs), since you state that it is with vfat in the fstab line.

    Ok if it still doesn't word run
    Code:
    lsmod | grep sd_mod
    and tell us if anything comes up.
    I typed "lsmod | grep sd_mod" and nothing happens.

    I mean, I don't have sd_mod. Is this the problem? How should I install this module?

    Thanks a lot.

  7. #7
    Just Joined!
    Join Date
    Sep 2005
    Posts
    6
    Code:
    modprobe sd_mod
    If that doesn't work, and I suspect it won't, then the module is likely missing.

    If you've built your own kernel (I believe you did), then you'll need to build the scsi modules as well. Linux uses SCSI emulation for usb mass storage devices.

  8. #8
    Just Joined!
    Join Date
    Nov 2004
    Posts
    43
    Quote Originally Posted by spdf
    Code:
    modprobe sd_mod
    If that doesn't work, and I suspect it won't, then the module is likely missing.

    If you've built your own kernel (I believe you did), then you'll need to build the scsi modules as well. Linux uses SCSI emulation for usb mass storage devices.
    Thanks for reply! Yes, I built the usb-storage and SCSI in the kernel. The kernel configure file,
    I enabled the CONFIG_SCSI, CONFIG_SCSI_PROC_FS, and CONFIG_BLK_DEV_SD with yes.

    # SCSI device support (CONFIG_SCSI scsi_mod)
    # legacy /proc/scsi support (CONFIG_SCSI_PROC_FS)
    # SCSI disk support (CONFIG_BLK_DEV_SD sd_mod)
    #

    That means I really built sd_mod in the kernel , right? because my CONFIG_BLK_DEV_SD =yes.

    I use modprobe command and got "module no found". However, that is because my sd_mod is built in the kernel instead of module, right?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •