Author |
Message |
rjad
|
Posted: Fri Jun 22, 2007 3:16 pm |
|
Joined: Fri Jun 22, 2007 2:55 pm
Posts: 5
|
Hi, I have a little usb external harddrive, just one of those hard disk enclosures holding a laptop hard drive. I mount it from a ubuntu box like:
Code: sudo mount -t auto /dev/sdc5 /media/usbdrive/ But I can't seem to do the same under knoppmyth. Some of the info from ubuntu: Code: Jun 22 17:38:52 rafael kernel: [17219674.352000] usb 4-5: new high speed USB device using ehci_hcd and address 3 Jun 22 17:38:53 rafael kernel: [17219674.940000] Initializing USB Mass Storage driver... Jun 22 17:38:53 rafael kernel: [17219674.940000] scsi1 : SCSI emulation for USB Mass Storage devices Jun 22 17:38:53 rafael kernel: [17219674.940000] usbcore: registered new driver usb-storage Jun 22 17:38:53 rafael kernel: [17219674.940000] USB Mass Storage support registered. Jun 22 17:38:58 rafael kernel: [17219679.944000] Vendor: IC25N020 Model: ATCS04-0 Rev: CA2O Jun 22 17:38:58 rafael kernel: [17219679.944000] Type: Direct-Access ANSI SCSI revision: 00 Jun 22 17:38:58 rafael kernel: [17219679.944000] SCSI device sdc: 39070080 512-byte hdwr sectors (20004 MB) Jun 22 17:38:58 rafael kernel: [17219679.944000] SCSI device sdc: 39070080 512-byte hdwr sectors (20004 MB) Jun 22 17:38:58 rafael kernel: [17219679.944000] sdc: sdc1 sdc2 < sdc5 >
But under knoppmyth I get: Code: Jun 22 18:58:18 mythtv kernel: usbcore: registered new driver hiddev Jun 22 18:58:18 mythtv kernel: usbcore: registered new driver usbhid Jun 22 18:58:18 mythtv kernel: drivers/usb/input/hid-core.c: v2.6:USB HID core driver Jun 22 18:58:18 mythtv kernel: ts: Compaq touchscreen protocol output Jun 22 18:58:18 mythtv kernel: Vendor: IC25N020 Model: ATCS04-0 Rev: CA2O Jun 22 18:58:18 mythtv kernel: Type: Direct-Access ANSI SCSI revision: 00 Jun 22 18:58:18 mythtv kernel: SCSI device sda: 1 512-byte hdwr sectors (0 MB) Jun 22 18:58:18 mythtv kernel: sda: Write Protect is off Jun 22 18:58:18 mythtv kernel: SCSI device sda: 1 512-byte hdwr sectors (0 MB) Jun 22 18:58:18 mythtv kernel: sda: Write Protect is off Jun 22 18:58:18 mythtv kernel: sda:fuse init (API version 7.7)
Any clues as to how I can get this recognised under knoppmyth?
|
|
Top |
|
 |
slowtolearn
|
Posted: Fri Jun 22, 2007 8:04 pm |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
rjad wrote: Hi, I have a little usb external harddrive, just one of those hard disk enclosures holding a laptop hard drive. I mount it from a ubuntu box like: Code: sudo mount -t auto /dev/sdc5 /media/usbdrive/ But I can't seem to do the same under knoppmyth. Some of the info from ubuntu: Code: Jun 22 17:38:52 rafael kernel: [17219674.352000] usb 4-5: new high speed USB device using ehci_hcd and address 3 Jun 22 17:38:53 rafael kernel: [17219674.940000] Initializing USB Mass Storage driver... Jun 22 17:38:53 rafael kernel: [17219674.940000] scsi1 : SCSI emulation for USB Mass Storage devices Jun 22 17:38:53 rafael kernel: [17219674.940000] usbcore: registered new driver usb-storage Jun 22 17:38:53 rafael kernel: [17219674.940000] USB Mass Storage support registered. Jun 22 17:38:58 rafael kernel: [17219679.944000] Vendor: IC25N020 Model: ATCS04-0 Rev: CA2O Jun 22 17:38:58 rafael kernel: [17219679.944000] Type: Direct-Access ANSI SCSI revision: 00 Jun 22 17:38:58 rafael kernel: [17219679.944000] SCSI device sdc: 39070080 512-byte hdwr sectors (20004 MB) Jun 22 17:38:58 rafael kernel: [17219679.944000] SCSI device sdc: 39070080 512-byte hdwr sectors (20004 MB) Jun 22 17:38:58 rafael kernel: [17219679.944000] sdc: sdc1 sdc2 < sdc5 >
But under knoppmyth I get: Code: Jun 22 18:58:18 mythtv kernel: usbcore: registered new driver hiddev Jun 22 18:58:18 mythtv kernel: usbcore: registered new driver usbhid Jun 22 18:58:18 mythtv kernel: drivers/usb/input/hid-core.c: v2.6:USB HID core driver Jun 22 18:58:18 mythtv kernel: ts: Compaq touchscreen protocol output Jun 22 18:58:18 mythtv kernel: Vendor: IC25N020 Model: ATCS04-0 Rev: CA2O Jun 22 18:58:18 mythtv kernel: Type: Direct-Access ANSI SCSI revision: 00 Jun 22 18:58:18 mythtv kernel: SCSI device sda: 1 512-byte hdwr sectors (0 MB) Jun 22 18:58:18 mythtv kernel: sda: Write Protect is off Jun 22 18:58:18 mythtv kernel: SCSI device sda: 1 512-byte hdwr sectors (0 MB) Jun 22 18:58:18 mythtv kernel: sda: Write Protect is off Jun 22 18:58:18 mythtv kernel: sda:fuse init (API version 7.7)
Any clues as to how I can get this recognised under knoppmyth? What errors are you getting, and what have you tried? According to your post, it should be as simple as Code: mount /dev/sda[1, 2 or 5] /media/usbdrive This assumes you have a directory called /media/usbdrive, that the 1, 2 and 5 partitions of your drive contain valid filesytems (which I assume they do, as you are able to access them in Ubuntu), and that you have permissions to perform the mount. You may have to play with the -t option depending on the type of filesystem you have on each partition, see man mount.
|
|
Top |
|
 |
rjad
|
Posted: Fri Jun 22, 2007 8:41 pm |
|
Joined: Fri Jun 22, 2007 2:55 pm
Posts: 5
|
Quote: What errors are you getting, and what have you tried? According to your post, it should be as simple as Code: mount /dev/sda[1, 2 or 5] /media/usbdrive
Well, if I do Code: mount -t ext2 /dev/sda5 /media/usbdrive
I get Code: mount: special device /dev/sda5 does not exist
And if I try to mount just /dev/sda, I get Code: mount: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or other error (aren't you trying to mount an extended partition, instead of some logical partition inside?) In some cases useful info is found in syslog - try dmesg | tail or so
I noticed that in dmesg, it recognises the drive, but only sda, so under knoppmyth, it says: Code: Jun 22 18:58:18 mythtv kernel: usbcore: registered new driver hiddev Jun 22 18:58:18 mythtv kernel: usbcore: registered new driver usbhid Jun 22 18:58:18 mythtv kernel: drivers/usb/input/hid-core.c: v2.6:USB HID core driver Jun 22 18:58:18 mythtv kernel: ts: Compaq touchscreen protocol output Jun 22 18:58:18 mythtv kernel: Vendor: IC25N020 Model: ATCS04-0 Rev: CA2O Jun 22 18:58:18 mythtv kernel: Type: Direct-Access ANSI SCSI revision: 00 Jun 22 18:58:18 mythtv kernel: SCSI device sda: 1 512-byte hdwr sectors (0 MB) Jun 22 18:58:18 mythtv kernel: sda: Write Protect is off Jun 22 18:58:18 mythtv kernel: SCSI device sda: 1 512-byte hdwr sectors (0 MB) Jun 22 18:58:18 mythtv kernel: sda: Write Protect is off Jun 22 18:58:18 mythtv kernel: sda:fuse init (API version 7.7)
Note that it says sda:fuse not sda: sda1 sda2 < sda5 > as I expected. [/quote]
|
|
Top |
|
 |
rjad
|
Posted: Fri Jun 22, 2007 8:44 pm |
|
Joined: Fri Jun 22, 2007 2:55 pm
Posts: 5
|
oh, also if I do fdisk -l /dev/sda I get nothing. No output at all.
|
|
Top |
|
 |
tjc
|
Posted: Fri Jun 22, 2007 8:58 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
This really shouldn't be hard... When I insert the USB thumb drive /var/log/syslog shows the following:
Code: Jun 22 22:48:46 black2 kernel: usb 3-1: new high speed USB device using ehci_hcd and address 3 Jun 22 22:48:46 black2 kernel: usb 3-1: configuration #1 chosen from 1 choice Jun 22 22:48:46 black2 kernel: scsi4 : SCSI emulation for USB Mass Storage devices Jun 22 22:48:46 black2 kernel: usb-storage: device found at 3 Jun 22 22:48:46 black2 kernel: usb-storage: waiting for device to settle before scanning Jun 22 22:48:51 black2 kernel: Vendor: SanDisk Model: Cruzer Mini Rev: 0.1 Jun 22 22:48:51 black2 kernel: Type: Direct-Access ANSI SCSI revision: 02 Jun 22 22:48:51 black2 kernel: SCSI device sdb: 2001888 512-byte hdwr sectors (1025 MB) Jun 22 22:48:51 black2 kernel: sdb: Write Protect is off Jun 22 22:48:51 black2 kernel: sdb: Mode Sense: 03 00 00 00 Jun 22 22:48:51 black2 kernel: sdb: assuming drive cache: write through Jun 22 22:48:51 black2 kernel: SCSI device sdb: 2001888 512-byte hdwr sectors (1025 MB) Jun 22 22:48:51 black2 kernel: sdb: Write Protect is off Jun 22 22:48:51 black2 kernel: sdb: Mode Sense: 03 00 00 00 Jun 22 22:48:51 black2 kernel: sdb: assuming drive cache: write through Jun 22 22:48:51 black2 kernel: sdb: sdb1 Jun 22 22:48:51 black2 kernel: sd 4:0:0:0: Attached scsi removable disk sdb Jun 22 22:48:51 black2 kernel: usb-storage: device scan complete
A quick look /the /dev directory shows: Code: root@black2:/var/log# ls -al /dev/sdb* brw-rw---- 1 root floppy 8, 16 Jun 22 22:48 /dev/sdb brw-rw---- 1 root floppy 8, 17 Jun 22 22:48 /dev/sdb1
At this point I can do something like this: Code: mount -t auto /dev/sdb1 /mnt/usb_key If you want to automate this some: - give the USB drive or partition a label. - add a mount point in /etc/fstab which uses that label Code: LABEL=thumb1 /thumb1 vfat defaults 0 0
|
|
Top |
|
 |
rjad
|
Posted: Fri Jun 22, 2007 9:48 pm |
|
Joined: Fri Jun 22, 2007 2:55 pm
Posts: 5
|
Quote: This really shouldn't be hard... When I insert the USB thumb drive /var/log/syslog shows the following:
Yep, I know how it is supposed to go, I just can't figure out why it doesn't do the standard thing, and that another computer running Ubuntu does. The machine running knoppmyth is older, so perhaps it is a hardware issue. When you plug your usb thumb drive in, you get a message like Code: Jun 22 22:48:46 black2 kernel: scsi4 : SCSI emulation for USB Mass Storage devices
which I don't get. If anyone has any suggestions, I would love to hear them. [/quote]
|
|
Top |
|
 |
tjc
|
Posted: Sat Jun 23, 2007 7:44 am |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
Number one, you're not telling us which log files you're looking at. What is in messages or produced by dmesg is slightly different that what is in syslog. Log file extracts are good, but knowing which file they're from is even better.
Number two, you need to mount based on the device names you're seeing there, and verify them in /dev as shown. Given the new udev stuff, if the disk isn't recognized you won't see an entry, so doing ls -la /dev/sd* should provide a really clear indicator of where (if anywhere) things are.
Bottom line, when you're troubleshooting a screwy issue, the more things you look at and report the more likely you are to find the answer.
|
|
Top |
|
 |
sk6
|
Posted: Sat Jun 23, 2007 4:04 pm |
|
Joined: Thu May 13, 2004 4:21 pm
Posts: 14
Location:
london
|
hi,
i noticed you tried fdisk -l /dev/sda and got nothing. It could be that your distro is naming your drive as something else (ie. uba1)
so try this.
insert your device into a usb port... wait a couple of seconds and then enter
fdisk -l | grep ^/dev
then mount using the discovered device as usual.
let us know how this works out.
|
|
Top |
|
 |
mjl
|
Posted: Sat Jun 23, 2007 8:10 pm |
|
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location:
Warwick, RI
|
Hi,
Unless you reformatted the drive it is probably a fat32.. Some of the new external "book" types are ntfs.
All I do is add to my /etc/fstab
/dev/sda1 /stick vfat defaults,user,noauto,showexec,umask=022 0 0
make a directory /stick
mkdir /stick
chown to mythtv
chown mythtv:mythtv /stick
Now I can mount my usb stick or an external usb drive to move things around as user mythtv
$ mount /stick
Do note that the transfer rate is not the fastest in the world, but your milage may vary. You would have to try esata for performance.
Mike
|
|
Top |
|
 |
rjad
|
Posted: Sun Jun 24, 2007 6:50 am |
|
Joined: Fri Jun 22, 2007 2:55 pm
Posts: 5
|
Thanks for your replies, I gave up on this, plugged the drive into a networked computer (which has windows only) and booted it using a slax live cd, then used nfs to copy things across. One of the difficulties was that the knoppmyth box is in my mother-in-laws bedroom, and access wasn't easy, so inserting and removing the drive wasn't easy. I remotely administer the box for her.
Under slax and ubuntu to mount it worked as expected (mount -t auto /dev/sdb1 /media/some_mount_point or similar).
A few notes: I took the drive out of an old laptop I had, so it was formatted as ext2 (not fat32).
I looked at /dev/ and it has /dev/sda only (not /dev/sda1 etc), which is not surprising since the messages I was seeing mentioned only sda.
I was looking at the messages log (/var/log/messages), so the quotes I gave were from there.
Since most other computers could mount the drive fine, I am thinking that there is some hardware problem on my knoppmyth box, rather than knoppmyth.
|
|
Top |
|
 |
mjl
|
Posted: Mon Jun 25, 2007 4:13 pm |
|
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location:
Warwick, RI
|
Hi,
I left out one small tid bit, you need to have the check box "monitor cd/dvd" ticked in your setup menu, under the General, a couple pages in.
Once the drive auto mounts (switches to gallery view) then you can mount it to a mount point.
Mike
|
|
Top |
|
 |