LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   USB Hard Drive (https://www.linuxquestions.org/questions/linux-newbie-8/usb-hard-drive-94872/)

Iriel 09-20-2003 12:19 PM

USB Hard Drive
 
My problem is as follows:

I have a computer with a GeForce FX 5200 and my primary drive is ntfs configured for Windows 2000. I have a 20GB USB 2.0 Hard Drive that is formatted for FAT32. Getting those two to work is fine, but to put the new NVIDIA drivers on my secondary Linux Drive, I have to transfer it from my 20GB USB.

Here's where the fun begins:

I can only work in console mode because I've never been able to load anything GUI because X Server won't work with my video card (otherwise I'd just download the drivers from Linux). I've been able to find my USB drive under /proc/bus/usb but when I look in the drive, I only get the folders 001, 002, 003, 004, Drivers and Devices.

These are not the folders on my drive and none of the folders ever show any actuall files on them.

How can I get Linux to recognize my drive so that I can get the NVIDIA .run file onto my Linux drive and finally actually run?

Iriel 09-20-2003 12:21 PM

Maybe I'm just looking in the wrong directory, but if anyone can help me out, I'd be much obliged.

michaelk 09-20-2003 12:45 PM

Well assuming that all of the USB modules are loaded:
1.create a mount point
mkdir /mnt/usbdrive

2.mount drive like any other.
mount -t vfat /dev/sda1 /mnt/usbdrive

/dev/sda1 assumes you do not have any other USB memory or SCSI devices

There are lots of posts on mounting USB and FAT32 drives that you can search for additional help.

Iriel 09-21-2003 10:59 AM

Well, I checked the devices with the 'df' command and all I found was my linux drive, my boot drive and an untitiled one mounted on '/dev/shm' with nothing on it.

I'm not entirely sure what the problem is here, but nothing else seems to be fixing it.

:confused: Please help!

michaelk 09-21-2003 11:15 AM

The drive has to be mounted for df to report disk space usage.

Did you try to mount the drive yet as posted above?

If there are errors look at the output of the dmesg command and look for messages related to USB and the hard drive.

Look at what modules are being loaded /sbin/lsmod. Post them so we can take a look.

Iriel 09-21-2003 12:38 PM

Okay, here's what I get so far for info on my drives (20GB mobile and ZIP 250):

Attached scsi removale disk sda at scsi0, channel0, id0, lun0
Attached scsi disk sdb at scsi1
SCSI device sda: 489532 512-byte hdwr sectors (251MB)
usb uhci.c: interrupt, status 3, fram# 554
sda: Write Protect is off
SCSI device sdb: 39070080 512-byte hdwr sectors (20004MB)

However when I try to mount either of them (replace sda with sdb as needed):

mount -t vfat /dev/sda /mnt/zip

FAT:bogus logical sector size 8293
VFS: Can;t find a calid FAT filesystem on dev 08:00
mount: wrong fs tyep, bad option. bad superblock on /dev/sda or too many mounted file systems

Iriel 09-21-2003 12:41 PM

As an added note, when I check /sbin/lsmod, the only thing I found was it is(has?) a symbolic link to insmod.

Keep in mind, I am a newb at this
:scratch:

michaelk 09-21-2003 12:52 PM

The command /sbin/lsmod will display all loaded modules. However, it isn't necessary. I used the complete path for the command since /sbin is not usually in a users environment.

Still thinking on what to do next...

Iriel 09-21-2003 01:01 PM

Thanks for that info, but keep in mind that updates to this thread may take a littel bit considering all the rebooting I have to do.

By the way, do you know how to restart the computer from the command line so that I don't actually have to use the reset button?

michaelk 09-21-2003 01:03 PM

shutdown -r now

man shutdown for info on options.

michaelk 09-21-2003 01:10 PM

Quote:

Originally posted by Iriel

mount -t vfat /dev/sda /mnt/zip

Is this a typo or did you forget to specify a partition number

mount -t vfat /dev/sda1 /mnt/zip

Iriel 09-21-2003 01:19 PM

Actually, every time I specify a pratition number I get:

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

michaelk 09-21-2003 01:24 PM

Go ahead and post the modules that lsmod outputs.

Iriel 09-21-2003 01:53 PM

And we have it:

parport_pc
lp
parport
autofs
via-rhine
wii
ipt_REJECT
iptable_filter
ip_tables
ohci1394
ieee1394
usb-storage
scsi_mod
keybdev
mousedev
hid
input
usb-uhci
ehci-hcd
usbcore
ext3
jbd

Iriel 09-21-2003 02:31 PM

If you need more detailed information I can get it more quickly now that I'm using an ibook to stay on the net while my desktop is running the console.


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