[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mounting USB Harddisk



The output of /proc/partitions is

major minor  #blocks  name     rio rmerge rsect ruse wio wmerge wsect
wuse running use aveq

  8     0   39070080 scsi/host1/bus0/target0/lun0/disc 2 6 16 95260 0 0
0 0 0 95260 95260
  3     0   78150744 ide/host0/bus0/target0/lun0/disc 25437 146509
664418 190590 25318 52502 567052 670420 -2 17482540 8801222
  3     1   30716248 ide/host0/bus0/target0/lun0/part1 5789 95769
101558 9830 2989 5102 8092 8450 0 8170 18280
  3     2   45937867 ide/host0/bus0/target0/lun0/part2 19642 50705
562772 180680 22329 47400 558960 661970 0 133470 842650
  3     3          1 ide/host0/bus0/target0/lun0/part3 0 0 0 0 0 0 0 0
0 0 0
  3     5    1494013 ide/host0/bus0/target0/lun0/part5 1 0 8 20 0 0 0 0
0 20 20


Isn't the first row referring to a usb disk?

Vikas

Tony Godshall wrote:

According to Vikas Rawal,
you already asked before .. :-)


I didn't...perhaps somebody else did. I just got my disk yesterday
evening, and been struggling!!

did you do any homework since posting?
	- google or yahoo or yahoo.in



I did spend a few hours trying to dig something out. But couldn't find a
solution. It is annoying when somebody posts a question to a mailing
list without doing any homework. It is frustrating when you are atuck,
have done homework, and still are subjected to hostility simply because
you try seeking help.

Anyway, thanks for useful questions. I had tried these (taking clues
from whatever I could get out of google). I am giving the answers in the
hope that somebody can use them to help.


are you 100% sure that its vfat format??
- did you format it


Yes, I formatted it as a fat32 partition. Windows XP accesses it all right.

does your kernel support vfat fs ??



Yes it does, because it can read a fat32 partition on my internal harddisk.

When I do "/sbin/fdisk -l /dev/sda", there is no output, I just get a command prompt. I also tried /sdb, /sdc etc. None work.
why does it not work ??

"-l" lists the existing partitions on the drives it finds ..

can it even see the drive ??? ( without the -l option )

cat /proc/partions to see what partitions you have on all
the drives in your system, including /dev/sd[abc]

I've seen whole usb flash drives be unpartitioned before, in
which case it would be 'mount /dev/sda /mnt/sda'.

The message log I posted shows that it does see something.

if it cannot see the drive ... why not ???

do you have the usb support in the kernel

do you have the usb disk modules loaded what is your modules.conf file or modutils
what modules is loaded ?
	lsmod | sort



"lsmod | sort" shows, among other things,

usbcore                52268   1  [usb-storage ehci-hcd usb-uhci]
usb-storage            54496   0  (unused)
usb-uhci               19504   0  (unused)

With my limited knowledge, I thought it meant that the usb modules were
correctly installed.

The real verification would be if /proc/partitions or dmesg
shows the device. Some modules are infrastructure and don't actually represent underlying hardware.

Once you've identified the device you might wish to set up
udev rules to always have it show symlink to e.g. /dev/external-usb-drive
and then you can put a constant entry in your /etc/fstab.
But that requires a late kernel and is beyond the scope of
this question.  But there are howtos out there.







Reply to: