VectorLinux
December 21, 2014, 07:05:31 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1] 2
  Print  
Author Topic: USB to ide adapter - no go?  (Read 3396 times)
haywire
Vectorian
****
Posts: 507


« on: July 04, 2010, 03:56:13 pm »

I got an off the shelf usb to ide adapter. Works with my windows boxes fine.

Tried hooking up this drive to my linux box. Looks like nothing happens, unless its mounted somewhere I don't know or see.

Tried running vl hot config isn't that a config program for hot pluggable drives? Enter password, program dosn't start...?

Anyone know how I can get vector to see this drive that is plugged in to usb? I never tried using a usb drive with vector before sorry.

Steven
Logged
bigpaws
Vectorian
****
Posts: 1862


« Reply #1 on: July 04, 2010, 05:25:05 pm »

Run lsusb as root and
that should give you an
idea if the drive is recognized. From there
you can mount the drive as root.

HTH

Bigpaws
Logged
haywire
Vectorian
****
Posts: 507


« Reply #2 on: July 04, 2010, 06:11:48 pm »

This is what I get when I run this as root... Is the device 002 the hard drive?

root:# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 2525:8911 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
vector:/~
root:#


Logged
nightflier
Administrator
Vectorian
*****
Posts: 4039



« Reply #3 on: July 04, 2010, 06:50:42 pm »

Doesn't look like anything is detected. Before you plug in the drive, open a root terminal and issue command:
Code:
tail -f /var/log/messages
Plug in the drive and look for messages about it. It should trigger several.

To see what drives are in your box, mounted or not, use command:
Code:
fdisk -l
Logged
haywire
Vectorian
****
Posts: 507


« Reply #4 on: July 04, 2010, 08:51:30 pm »

I tried this and saw no messages when plugging and unplugging the drive. Interesting, worked with xbuntu.

fdisk -l I tried that already and don't see the drive...

If I rerun vasm, can I pick the other usb thing, isn't there vlhot and something else?

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0000123a

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        4681    37593088   83  Linux
/dev/hda2            4681        4866     1486849    5  Extended
/dev/hda5            4681        4866     1486848   82  Linux swap

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0xcfb6cfb6

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1      155061    78150712+  83  Linux
Logged
retired1af
Packager
Vectorian
****
Posts: 1269



« Reply #5 on: July 04, 2010, 08:56:07 pm »

HAL is the hotplug system you're thinking of. Could be worth a shot. It's what I use, and my external drive works fine.
Logged

ASUS K73 Intel i3 Dual Core 2.3GHz
bigpaws
Vectorian
****
Posts: 1862


« Reply #6 on: July 04, 2010, 08:59:38 pm »

Quote
If I rerun vasm, can I pick the other usb thing, isn't there vlhot and something else?

It's possible however, I have never tried them.

How many drives are in this box, perhaps including the drives type, and sizes in the box and the
size of the drive on the ide connector.

Bigpaws
Logged
haywire
Vectorian
****
Posts: 507


« Reply #7 on: July 05, 2010, 07:26:47 am »

There is a cd-rom drive...  Master on ide controller 2. The system will boot from cd if a bootable cd is in the drive.

There is a 40 gig boot drive, (master on ide 1) containing vector linux. (HDA1)

There is an 80 gig work drive (slave on ide 1) formatted with linux, (HDB1)

Those three are all connected to onboard ide controller on the motherboard, and are all seen and usable.

The usb drive is an 80 gig drive, formatted with windows xp.

This is the phantom drive right now, not showing anywhere I can see...

Steven

Logged
M0E-lnx
Administrator
Vectorian
*****
Posts: 3195



« Reply #8 on: July 06, 2010, 08:44:36 am »

I just bought one of these from the local frys for a laptop IDE drive I had laying around, and it works fine. As a matter of fact, I use it as a portable VM. I have vl-light installed in it, and VM's at home and at work that boot off this ide-to-usb converted drive.
Logged

toothandnail
Tester
Vectorian
****
Posts: 2527


« Reply #9 on: July 06, 2010, 01:24:05 pm »

I've not used VL-Hot for a long time, but I've had no problems with HAL and automounting USB drives. I have several, mainly old laptop drives that have been upgraded and so end up spare. For most of them, I buy IDE-USB caddies and use them for backup and transportig files (much nicer to write big files to a USB hard drive than to a flash drive).

I also have a 'universal' adaptor which will taken any IDE or SATA device and allow it to be hooked up through USB. Not a permenant arrangement, but great for pulling data off old drives and similar jobs. It also works will with VL (using HAL).

Smiley In my experience, using USB drives with VL is a whole lot simpler than using them with Windows - instead of waiting while we go through the 'discovered new hardware', 'loading drivers for new hardware' routine, VL just mouts the device....

Paul.
Logged
Joe1962
Administrator
Vectorian
*****
Posts: 2499



WWW
« Reply #10 on: July 06, 2010, 04:47:24 pm »

I tried this and saw no messages when plugging and unplugging the drive. Interesting, worked with xbuntu.
This would only happen when the kernel is not getting anything from the hardware (either the USB port or the USB to IDE adapter). AFAIK, this could only mean broken hardware, bad contacts or maybe no USB support in the kernel. Did you run "tail -f /var/log/messages" (without the quotes) in a console as root, before plugging in?

Smiley In my experience, using USB drives with VL is a whole lot simpler than using them with Windows - instead of waiting while we go through the 'discovered new hardware', 'loading drivers for new hardware' routine, VL just mouts the device....
I just HATE that whenever I am forced to use winders for some reason, grrrr... Angry
Logged

O'Neill (RE the Asgard): "Usually they ask nicely before they ignore us and do what they damn well please."
http://joe1962.bigbox.info
Running: VL 7 Std 64 + self-cooked XFCE-4.10
Andy Price
Packager
Vectorite
****
Posts: 237


« Reply #11 on: July 07, 2010, 04:32:10 am »

Have you tried connecting it to a Windows machine and does it detect? I have one of these adaptors too and it is a bit finicky about what drives it wants to work with and also the drive jumper settings. For example, I found that one drive needed to be set to "single master" before it would work - it wouldn't detect if set to "master with slave present". One or two drives won't detect no matter how I set the jumpers, even though they boot and work fine when installed in the computer.
Andy
Logged
haywire
Vectorian
****
Posts: 507


« Reply #12 on: July 07, 2010, 06:49:08 pm »

I checked the hard drive, and the jumper was set to cable select. I changed it to master...

I ran the command you guys reccomended as root, and when I plugged in the drive this is what I got :

Jul  7 22:49:57 vector kernel: sd 4:0:0:0: [sda] Write Protect is off
Jul  7 22:49:57 vector kernel:  sda: sda1
Jul  7 22:49:57 vector kernel: sd 4:0:0:0: [sda] Attached SCSI disk
Jul  7 22:49:57 vector kernel: sd 4:0:0:0: Attached scsi generic sg0 type 0
Jul  7 22:49:57 vector vl-hot_mount: Starting vl-hot_mount...
Jul  7 22:49:57 vector vl-hot_mount: Mounting device sda
Jul  7 22:49:57 vector vl-hot_mount: ALERT: /dev/vl-hot/sda not mountable (MBR)...
Jul  7 22:49:57 vector vl-hot_mount: Finishing vl-hot_mount...
Jul  7 22:49:57 vector vl-hot_mount: Starting vl-hot_mount...
Jul  7 22:49:57 vector vl-hot_mount: Mounting device sda1
Jul  7 22:49:58 vector vl-hot_mount: /dev/vl-hot/sda1 filesystem is NTFS
Jul  7 22:49:58 vector vl-hot_mount: Device serial number: 7D577A8E3132
Jul  7 22:49:58 vector vl-hot_mount: VOLUME LABEL:
Jul  7 22:49:58 vector vl-hot_mount: Using default mountpoint: vl-hot
Jul  7 22:49:58 vector vl-hot_mount: Checking if vl-hot already used...
Jul  7 22:49:58 vector vl-hot_mount: Mountpoint vl-hot is available...
Jul  7 22:49:58 vector vl-hot_mount: Mountpoint /mnt/vl-hot/vl-hot exists...
Jul  7 22:49:58 vector vl-hot_mount: Mounting NTFS-3G filesystem /dev/vl-hot/sda1 on /mnt/vl-hot/vl-hot
Jul  7 22:49:58 vector vl-hot_mount: Command: ntfs-3g /dev/vl-hot/sda1 /mnt/vl-hot/vl-hot -o user,noatime,uid=root,gid=users,fmask=0111,dmask=0000,nls=iso8859-1,rw
Jul  7 22:49:58 vector vl-hot_mount: ERROR: mounting of /dev/vl-hot/sda1 on /mnt/vl-hot/vl-hot failed...
Jul  7 22:49:58 vector vl-hot_mount: Finishing vl-hot_mount...


When I check in /mnt/vlhot directories, nothing is there. The mounting thing on the bottom taskbar, shows nothing. Any ideas? At least its seeing it now when I plug it in...
Thats progress!

Going to try a cold reboot and see what happens then...

EDIT : Tried a cold reboot, same thing. Apparently it sees the drive but has this error when trying to mount the drive. Any ideas how to fix this?

Steven
« Last Edit: July 07, 2010, 07:08:32 pm by haywire » Logged
haywire
Vectorian
****
Posts: 507


« Reply #13 on: July 07, 2010, 07:26:14 pm »

Okay as root I was able to mount /dev/sda1 to /mnt/sda1 and read it...

Problem is, my user account can't open that directory, when I try it says permission denied...
Another strange thing, As root if I go to file properties, thunar just dumps out and dies, so I can't set the file permissions that way.

Can someone tell me exactly with chmod how can I make this folder read and writeable by all users?

THANKS!

Steven
Logged
haywire
Vectorian
****
Posts: 507


« Reply #14 on: July 07, 2010, 09:11:37 pm »

Okay very annoyed now. Tried doing what is described in like 10 chmod help things I googled. Permission still denied when I try to access /mnt/sda1 on my regular user account.

Tried chmod 666 /mnt/sda1 which is supposed to make the folder readable by all users... no go.

I even tried chown to change the ownership of the folder to the user account, still locked folder permission denied.

I tried modifying fstab as one tutorial described so that a regular user could mount the disk. When I try to use the mount command on the user account, it still says only root can do that... grrrr...

Interestingly, I can see the drive no problem with the root account, but I don't really use the root account much and I want to be able to read/write to the drive on my regular account.

Sometimes linux is so crazy about secrurity that things like this drive me absolutely crazy. Come on man, let me use the damn hard drive already.

grrrr....

Thanks for the help so far guys, I give up for tonight unless one of you bigger nerds than me knows how to fix this. Smiley

Steven
« Last Edit: July 07, 2010, 09:19:39 pm by haywire » Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!