WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mount usb  (Read 8764 times)

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
mount usb
« on: August 02, 2010, 03:30:25 AM »
Hi all, How can i mount by command-line a device storage usb? Have i to install any extesion??

Thanks

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11039
Re: mount usb
« Reply #1 on: August 02, 2010, 03:35:08 AM »
1) find out what device it is (dmesg | tail), let's assume sda1
2) mount /dev/sda1
The only barriers that can stop you are the ones you create yourself.

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: mount usb
« Reply #2 on: August 02, 2010, 03:46:28 AM »
When i tip:

tc@box:~$ sudo mount /dev/sda1 /mnt/usb
mount: /dev/sda1 is not a valid block device

and  

tc@box:~$ sudo fdisk -l

Disk /dev/hda: 255 MB, 255328256 bytes
8 heads, 61 sectors/track, 1021 cylinders
Units = cylinders of 488 * 512 = 249856 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/hda1   *           1           5        1189+  b Win95 FAT32
/dev/hda2               6          10        1220  83 Linux
/dev/hda3

but not find the usb device.

and ->

tc@box:~$ dmesg | tail
tsc2003 0-0048: registered (driver version 0.9)
tsc2003 0-0048: zdown=9, zup=7
hc2-tsc2007: init() baseio=0x0378, irq=10, rx=500
hc2-tsc2007: touching = true
e100 0000:00:02.0: firmware: requesting e100/d102e_ucode.bin
e100: eth0 NIC Link is Up 100 Mbps Full Duplex
ext3: No journal on filesystem on loop3
e100: eth0 NIC Link is Down
Clocksource tsc unstable (delta = -233312665 ns)
e100: eth0 NIC Link is Up 10 Mbps Full Duplex

any suggestion?

Thanks
« Last Edit: August 02, 2010, 03:51:15 AM by jjreina »

Offline ophiry

  • Newbie
  • *
  • Posts: 13
    • LinkedIn Profile
Re: mount usb
« Reply #3 on: August 02, 2010, 04:19:12 AM »
try to see which other block devices are connected by looking at /sys/block - you shoud find the hda directory for you harddrive, and another one for the usb device.

you can also try running blkid and post here the output.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: mount usb
« Reply #4 on: August 02, 2010, 04:28:00 AM »
Try following commands in a terminal window and post output:

Quote
fdisk -l /dev/sda
fdisk -l /dev/sdb

This would help to identify issues caused by wrong partitioning and/or file system types.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: mount usb
« Reply #5 on: August 02, 2010, 04:44:26 AM »
Hi all, thanks for answering

Whit /sys/block->

tc@box:/sys/block$ ls
hda     loop15  loop22  loop3   loop37  loop44  loop51  loop59  loop66  loop73  loop9   ram7
loop0   loop16  loop23  loop30  loop38  loop45  loop52  loop6   loop67  loop74  ram0
loop1   loop17  loop24  loop31  loop39  loop46  loop53  loop60  loop68  loop75  ram1
loop10  loop18  loop25  loop32  loop4   loop47  loop54  loop61  loop69  loop76  ram2
loop11  loop19  loop26  loop33  loop40  loop48  loop55  loop62  loop7   loop77  ram3
loop12  loop2   loop27  loop34  loop41  loop49  loop56  loop63  loop70  loop78  ram4
loop13  loop20  loop28  loop35  loop42  loop5   loop57  loop64  loop71  loop79  ram5
loop14  loop21  loop29  loop36  loop43  loop50  loop58  loop65  loop72  loop8   ram6

tc@box:/sys/dev/block$ blkid
/dev/hda1: SEC_TYPE="msdos" LABEL="APPS" UUID="822D-ACB8" TYPE="vfat"
/dev/hda3: UUID="3a4d7122-277a-4a50-8d38-93f21c7f75a1" SEC_TYPE="ext2" TYPE="ext3"

tc@box:~$ fdisk -l /dev/sda
fdisk: can't open '/dev/sda': No such device or address
tc@box:~$ fdisk -l /dev/sdb
fdisk: can't open '/dev/sdb': No such device or address

thanks for your help


Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: mount usb
« Reply #6 on: August 02, 2010, 05:05:26 AM »
Could you be more specific what your "device storage usb" exactly is?

Are you sure same PC has a 255MB hdd and has also a USB port?

What/where is loop3 ?
 
Code: [Select]
losetup /dev/loop3
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: mount usb
« Reply #7 on: August 02, 2010, 05:10:13 AM »
Could you be more specific what your "device storage usb" exactly is?

is a 2 GB USB memory

What/where is loop3 ?

tc@box:~$ losetup /dev/loop3
/dev/loop3: [0303]:5986 (/mnt/hda3/tce/libusb.tcz)


Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: mount usb
« Reply #8 on: August 02, 2010, 05:31:57 AM »
As you happen to have libusb installed, do you also happen to have usb-utils installed?
If so, you could:
Code: [Select]
sudo lsusb

On a sidenote: the output of fdisk for your /dev/hda looks a bit strange to me...
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: mount usb
« Reply #9 on: August 02, 2010, 05:36:01 AM »
Sorry but i am very noob whit linux and tc me only worked with Ubuntu :'(

tc@box:$ sudo lsusb
lsusb: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: mount usb
« Reply #10 on: August 02, 2010, 05:40:48 AM »
Hmm, missing lib is in libusb, which losetup shows to be present...

try
Code: [Select]
dmesg |grep -i usb
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: mount usb
« Reply #11 on: August 02, 2010, 05:44:40 AM »
tc@box:~$ dmesg |grep -i usb
Kernel command line: quiet nodhcp noswap vga=789 logo.nologo nousb local=hda3 tce=hda3 console=null
usbcore: USB support disabled
Initializing USB Mass Storage driver...

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: mount usb
« Reply #12 on: August 02, 2010, 05:47:41 AM »
*cough*

It doesn't make sense to use a bootparam "nousb" and then expecting usb to work...  :o
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: mount usb
« Reply #13 on: August 02, 2010, 05:55:17 AM »
Sorry, but I got the boot file with parameters set and did not tell me anything.

Try to change it.

Thank you very much and sorry for the inconvenience.

Ok, edit boot file and i could mount usb not problem.

Thanks
« Last Edit: August 02, 2010, 06:06:15 AM by jjreina »