Jump to content

so close......... flashdrive install


Trio3b
 Share

Recommended Posts

Checked howtos................... but not quite there yet. Can someone help?

Using GE intelligent stick.

Plugged into usb port and MCC hdwr shows device as:

new devfs device /dev/scsi/host1/bus0/target0/lun0/disc

old device file /dev/sda

 

user guide says to use mount and follow:

# cd /etc/sysconfig/ <works

# cat /etc/sysconfig/hwconf | more <doesn't work ..says no directory

check dev inf in hwconf and write dwn mnt point

create directory in /mnt with:

# mkdir /mnt/usbdisk

#mount /dev/sda1 /mnt/usbdisk

 

OK here's the input and output in my terminal:

[user@localhost user]$ su

Password:

[root@localhost user]# cd /mnt/

[root@localhost mnt]# mkdir usbflash

[root@localhost mnt]# ls /mnt/

cdrom/ fd0/ usbdisk/ usbflash/

[root@localhost mnt]# mount /dev/sda1 /mnt/usbflash

mount: special device /dev/sda1 does not exist

[root@localhost mnt]# mount /dev/sda1 /mnt/usbdisk

mount: special device /dev/sda1 does not exist

[root@localhost mnt]#

 

how to create this device?

Thanks

Link to comment
Share on other sites

Mandrake 10.0

KDE 3.2

Here is some input and output:

[user@localhost user]$ su

Password:

 

without stick inserted:

[root@localhost user]# lsusb

Bus 002 Device 001: ID 0000:0000

Bus 001 Device 001: ID 0000:0000

 

with stick inserted:

[root@localhost user]# lsusb

Bus 002 Device 001: ID 0000:0000

Bus 001 Device 002: ID 0ea0:2168 Ours Technology, Inc.

Bus 001 Device 001: ID 0000:0000

 

without stick:

[root@localhost user]# fdisk -l

 

Disk /dev/hda: 18.4 GB, 18480365568 bytes

255 heads, 63 sectors/track, 2246 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot Start End Blocks Id System

/dev/hda1 * 1 764 6136798+ 83 Linux

/dev/hda2 765 2246 11904165 5 Extended

/dev/hda5 765 827 506016 82 Linux swap

/dev/hda6 828 2246 11398086 83 Linux

 

with stick:

[root@localhost user]# fdisk -l

 

Disk /dev/hda: 18.4 GB, 18480365568 bytes

255 heads, 63 sectors/track, 2246 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot Start End Blocks Id System

/dev/hda1 * 1 764 6136798+ 83 Linux

/dev/hda2 765 2246 11904165 5 Extended

/dev/hda5 765 827 506016 82 Linux swap

/dev/hda6 828 2246 11398086 83 Linux

 

Disk /dev/sda: 65 MB, 65273856 bytes

3 heads, 42 sectors/track, 1011 cylinders

Units = cylinders of 126 * 512 = 64512 bytes

 

Device Boot Start End Blocks Id System

/dev/sda1 ? 6175682 15235283 570754815+ 72 Unknown

Partition 1 has different physical/logical beginnings (non-Linux?):

phys=(357, 116, 40) logical=(6175681, 2, 19)

Partition 1 has different physical/logical endings:

phys=(357, 32, 45) logical=(15235282, 0, 7)

Partition 1 does not end on cylinder boundary.

/dev/sda2 ? 1338806 16704110 968014120 65 Novell Netware 386

Partition 2 has different physical/logical beginnings (non-Linux?):

phys=(288, 115, 43) logical=(1338805, 2, 9)

Partition 2 has different physical/logical endings:

phys=(367, 114, 50) logical=(16704109, 0, 28)

Partition 2 does not end on cylinder boundary.

/dev/sda3 ? 14840330 30205633 968014096 79 Unknown

Partition 3 has different physical/logical beginnings (non-Linux?):

phys=(366, 32, 33) logical=(14840329, 0, 12)

Partition 3 has different physical/logical endings:

phys=(357, 32, 43) logical=(30205632, 0, 25)

Partition 3 does not end on cylinder boundary.

/dev/sda4 ? 1 28866877 1818613248 d Unknown

Partition 4 has different physical/logical beginnings (non-Linux?):

phys=(372, 97, 50) logical=(0, 0, 1)

Partition 4 has different physical/logical endings:

phys=(0, 10, 0) logical=(28866876, 2, 36)

Partition 4 does not end on cylinder boundary.

 

Partition table entries are not in disk order

 

manual says to go to this dir,

[root@localhost user]# cd /etc/sysconfig/

 

then to enter this:

#cat /etc/sysconfig/hwconf | more

..but says this file does not exist

this tells me that etc and sysconfig exist but not hwconf, which I assume is hardware configuration?

anyway....heres what's in sysconfig

 

 

[root@localhost sysconfig]# ls

alsa drakconnect installkernel network-scripts/ system*

autofsck harddisks keyboard* nfs* usb

bootsplash harddrake2/ mouse* pcmcia* userdrake*

clock* hotplug* msec postfix xinetd

console/ i18n* network* rawdevices

desktop* init networking/ syslog

 

 

[root@localhost sysconfig]# cd /mnt

[root@localhost mnt]# ls

cdrom/ fd0/ usbdisk/ usbflash/

 

then manual says to mount dev by:

[root@localhost mnt]# mount /dev/sdal /mnt/usbdisk

mount: special device /dev/sdal does not exist

[root@localhost mnt]# mount /dev/sda1 /mnt/usbdisk

mount: special device /dev/sda1 does not exist

 

tried your advice here:

[root@localhost mnt]# mount /dev/hda /mnt/usbdrive

mount: mount point /mnt/usbdrive does not exist

then I forgot I hadnot named the directory" drive"...I had named them "disk" and "flash" ...so...

 

[root@localhost mnt]# mount /dev/hda /mnt/usbdisk

mount: /dev/hda already mounted or /mnt/usbdisk busy

[root@localhost mnt]# mount /dev/hda /mnt/usbdisk

mount: /dev/hda already mounted or /mnt/usbdisk busy

[root@localhost mnt]# mount /dev/hda /mnt/usbflash

mount: /dev/hda already mounted or /mnt/usbflash busy

[root@localhost mnt]#

 

Am I close? I think I have to create this device. The Mandrake control center hdwr detection in the GUI does acknowledge that something is there:

this is what's listed when the stick is IN.

Bus: SCSI

 

Location on the bus: 0:0:0

 

Channel: 00

 

Description: USB |Flash Disk

 

New devfs device: /dev/scsi/host3/bus0/target0/lun0/disc

 

Old device file: /dev/sda

 

Module: unknown

 

Floppy format: I-Stick2 IntelligentStick

 

Media class: hd (Mass Storage|SCSI|Bulk (Zip))

 

Hope this all helps

 

Sorry about unrelated question...what is different colored text in terminal?

 

Thanks for the help

Link to comment
Share on other sites

maybe the kernel does not support that device yet or the proper module for that device does not exist in your box though the kernel detected it as storage device but as an scsi, have you tried to check the manufacturers site of your device if they have a support for linux?. or try it here http://www.qbik.ch/usb/devices/

hope you find some info there...

also try to install a 2.4 kernel for your distro if ur current is 2.6..

Link to comment
Share on other sites

I said:

 

mount /dev/sda /mnt/usbdisk

 

not:

 

mount /dev/sda1 /mnt/usbdisk

 

and not:

 

mount /dev/hda /mnt/usbdisk

 

so close. Come on, one more try. :)

 

(/dev/sda1 is what your USB disk would show up as if it had been properly formatted at the factory. /dev/hda is your hard disk. /dev/sda is what your USB disk really is.)

Link to comment
Share on other sites

I said:

 

mount /dev/sda /mnt/usbdisk

 

not:

 

mount /dev/sda1 /mnt/usbdisk

 

and not:

 

mount /dev/hda /mnt/usbdisk

 

so close. Come on, one more try. :)

 

(/dev/sda1 is what your USB disk would show up as if it had been properly formatted at the factory. /dev/hda is your hard disk. /dev/sda is what your USB disk really is.)

 

Your'e right ....it's sda not sda1

used tkdial (a small text/script kppp dialer) to test this:

Did:

#mount /dev/sda/ /mnt/usbdisk

#cd usbdisk........OK

#cp /home/user/tkdial /mnt/usbdisk

#ls

tkdial .........it's there!

took to Wme machine ....yeah, the tkdialer file is there.

 

Tried cp -r and did copy a whole folder.

Worked, copied most,but not all files. I guess they're not the right format.

tried to :

#umount /dev/sda /mnt/usbdisk

says usbdisk is busy.

Waited until lite on drive stopped, then unplugged. I guess it's OK to hot plug this.

Next project is to put an icon on the destop and be able to automount this drive when it is plugged in. How big of a job is this?

 

Separate problem on completely different PC also with MDK 10.0. Plugging in usbdisk freezes entire system....had to hard boot several times, now after LILO, I get blue x screen, then terminal with no borders appears in lower right of bluscreen. Prompt responds to keyboard only if I mouseclick 10-12 lines down first. If I try to load kde or x, I receive fatal server error. I think something's really messed up. Could this happen to the PC that I now have the usbdisk installed in?

Anyway.........

Thanks for the tips. :thanks:

Edited by Trio3b
Link to comment
Share on other sites

the _easiest_ way, if you've got nothing on the disk you actually need, is to plug it into a Windows PC and reformat it. Apparently if you do that, XP at least will format it properly, so when you plug it into your Linux system, it'll show a /dev/sda1 partition properly, and all the MDK automount magic will actually _work_ and it'll all happen without you having to do anything at all. If that's not practical, let me know and I'll see if we can sort something out. Hotplugging, btw, usually isn't a brilliant idea - it _normally_ works, especially if you wait for the operation to (apparently) finish, but it's dirty and _can_ cause trouble. Next time, try this. Run the command 'sync', wait for *THAT* to finish, then try umount /mnt/usbdisk (as root). Then unplug.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...