Jump to content

USB Storage issues.


nitchimon

Recommended Posts

I initially used an older 8gig attache' stick and this works fine. But I wanted something larger.

I bought a SanDisk/Staples16gig relay, nope, it mounts but the device can not find it doe downloading to USB.

Bought a 32gig Sandisk cruzer, same issue as before, it sees this, mounts it but when you go to download, it does not see the usb device at all.

SSH to the unit and I can see the files I put onto the device from a separate Ubuntu based machine (BackTrak 5 r3)

So it mounts it but can't see the device for downloading to.

I took the 32gig San Disk drive and partitioned it as shown in this link http://forums.hak5.org/index.php?showtopic=25882

Now the Mark IV doesn;t want to see the 32g usb nor mount it at all !!!

So I ran out and purchased another PNY device 32gig, same exact issue. It mounts after being formatted to a straight 32gig ext4 device, but can't see it otherwise when you go to download to it.

Followed the instructions in the link above and same issue, can;t find the device at all !!

YES I am on power, I also put it on a 20000ma battery capable of up 1.0 and 2.1amps and still same problem.

I originally started with 2.7.0 and no luck, moved to each release after all the way to 2.7.7 and still same issue.

Each one of the USB sticks I moved over to a stand-alone Ubuntu (BackTrack 5 r3) box and also to an Ubuntu 12.10 server to test the sticks. They work perfectly! I stressed each one with a 100k read/writes, no issues!

So whats the deal with the Mark IV ?

Why is this so picky with USB sticks ??

The idea is to be able to have a compact usb device in the Mark IV to keep it as small as possible.

thanks.

Link to comment
Share on other sites

OK:

This is with the San Disk 32 gig Cruzer Fit

fstab:

config global automount
option from_fstab 1
option anon_mount 1

config global autoswap
option from_fstab 1
option anon_swap 1

config mount
option target /usb
option device /dev/sda1
option fstype ext4
option options rw,sync
option enabled 1
option enabled_fsck 0

config swap
option device /dev/sda2
option enabled 1

This is from the dmesg/logs on a new boot (I just included the /dev/sda information and the usb information:

[ 11.920000] SCSI subsystem initialized
[ 12.240000] usbcore: registered new interface driver usbfs
[ 12.250000] usbcore: registered new interface driver hub
[ 12.250000] usbcore: registered new device driver usb
[ 13.090000] usbcore: registered new interface driver rt73usb
[ 13.230000] usbcore: registered new interface driver rtl8187
[ 13.260000] ath: EEPROM regdomain: 0x833a
[ 13.260000] ath: EEPROM indicates we should expect a country code
[ 13.260000] ath: doing EEPROM country->regdmn map search
[ 13.260000] ath: country maps to regdmn code: 0x37
[ 13.260000] ath: Country alpha2 being used: GB
[ 13.260000] ath: Regpair used: 0x37

[ 15.080000] hub 1-0:1.0: USB hub found
[ 15.080000] hub 1-0:1.0: 1 port detected
[ 15.190000] nf_conntrack version 0.5.0 (460 buckets, 1840 max)
[ 15.730000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 15.930000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 16.060000] uhci_hcd: USB Universal Host Controller Interface driver
[ 16.230000] usbcore: registered new interface driver ath9k_htc
[ 16.490000] usbcore: registered new interface driver usbserial
[ 16.490000] USB Serial support registered for generic
[ 16.500000] usbcore: registered new interface driver usbserial_generic
[ 16.500000] usbserial: USB Serial Driver core
[ 16.530000] Initializing USB Mass Storage driver...
[ 16.540000] scsi0 : usb-storage 1-1:1.0
[ 16.540000] usbcore: registered new interface driver usb-storage
[ 16.540000] USB Mass Storage support registered.
[ 16.560000] usbcore: registered new interface driver cdc_ether
[ 16.670000] Error: Driver 'gpio-keys-polled' is already registered, aborting...
[ 16.770000] usbcore: registered new interface driver rndis_host
[ 17.540000] scsi 0:0:0:0: Direct-Access SanDisk Firebird 1.07 PQ: 0 ANSI: 2
[ 17.550000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 17.560000] sd 0:0:0:0: [sda] 131072 512-byte logical blocks: (67.1 MB/64.0 MiB)
[ 17.570000] sd 0:0:0:0: [sda] Write Protect is off
[ 17.570000] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 17.570000] sd 0:0:0:0: [sda] No Caching mode page present
[ 17.580000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 17.680000] sd 0:0:0:0: ioctl_internal_command return code = 8070000
[ 17.680000] : Sense Key : 0x4 [current]
[ 17.680000] : ASC=0x0 ASCQ=0x0
[ 17.690000] sd 0:0:0:0: [sda] No Caching mode page present
[ 17.690000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 17.700000] sda: unknown partition table
[ 17.710000] sd 0:0:0:0: [sda] No Caching mode page present
[ 17.710000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 17.720000] sd 0:0:0:0: [sda] Attached SCSI removable disk

It looks like the Pineapple is having a problem reading the Partition Table.

Yet, if I plug the device into a laptop or server running Ubuntu, I can mount /dev/sda1 which is 26 gig and the /dev/sda2 which is the ext4 8gig partition that was converted to swap space.

thanks in advance

Link to comment
Share on other sites

Hi,

if you make ls /dev/

do you see your sda1 and sda2 ?

or do you see sg ... ?

if so, then yoou either have not formated the stick correct or you have a power issue ( my experience)

I have a similar setup and my fstab is :

config global automount
option from_fstab 1
option anon_mount 1


config global autoswap
option from_fstab 1
option anon_swap 1


config mount
option target /usb
option device /dev/sda
option fstype ext4
option options rw,sync
option enabled 1
option enabled_fsck 0


config mount
option target /usb
option device /dev/sda1
option fstype ext4
option options rw,sync
option enabled 1
option enabled_fsck 0


config swap
option device /dev/sda2
option enabled 1

Hope this helps

Edited by webdirector
Link to comment
Share on other sites

The ls /dev only shows sda no number associated with it.

there is only sg0 in the /dev folder

The unit can't mount it based upon the dmesg findings.

Power wise, I'm on a 7 port USB powwered hub, with only 2 items in it, the 3rd beling the pineapple.

I thought power and moved this to the laptop USB, nope, same issue.

I also moved it to a 20000mah external battery that puts out 1amp and 2.1 amp, nope, same issue.

I also have a power adapter that puts out 500 mah and same issue.

Funny part is, that if I plug the 32gig sanDisk device into a regular computer running Ubuntu, I can read and write to it with no problems.

Do you think I have a defective USB port on the PineApple ??

or you think its something else we're missing ?

So I guess the next question is who else was successful at using a larger storage device with this unit ?

I'm going to re-partition and re-format again. this time as a 25g and 7g partitions

thanks again.

Edited by nitchimon
Link to comment
Share on other sites

Thanks for the response.

I followed the tutorial verbatim... nothing. This is on the SanDisk 32g and the PNY 32G

Everytime they mount, I get (in bold below) "unknown partition table"

[ 12.870000] sd 0:0:0:0: [sda] 131072 512-byte logical blocks: (67.1 MB/64.0 MiB)
[ 12.870000] sd 0:0:0:0: [sda] Write Protect is off
[ 12.880000] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 12.880000] sd 0:0:0:0: [sda] No Caching mode page present
[ 12.880000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 12.990000] sd 0:0:0:0: ioctl_internal_command return code = 8070000
[ 12.990000] : Sense Key : 0x4 [current]
[ 12.990000] : ASC=0x0 ASCQ=0x0
[ 13.000000] sd 0:0:0:0: [sda] No Caching mode page present
[ 13.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 13.010000] sda: unknown partition table
[ 13.020000] sd 0:0:0:0: [sda] No Caching mode page present
[ 13.020000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 13.030000] sd 0:0:0:0: [sda] Attached SCSI removable disk

so just a hunch, I took the PNY and wiped it, re partitioned and then unmounted in a terminal window. I then opened fdisk and Listed the partition table then WROTE the partition table back to the device.

Reinserted into the pineapple and WHAM! it found both partitions!!!!

I tried this with the SanDisk 32g, same error "unknown partition table". In another post I read somewhere that the SanDisk devices are not all that good. Could be defective in some ways ?

I think I'll run with the 32g PNY device for now, until I get an adapter for a 60g SSD <grins evilly>

thanks for all the help. If someone can help as to WHY the SanDisk is not liked... please let me know.

Nitch!

Link to comment
Share on other sites

Also, the purpose of the hub is to make sure a full 5V gets to USB devices plugged into the Pineapple, so you'd want to plug the hub into the Pineapple, not the Pineapple into the hub. When the hub is plugged into the Pineapple, then plug your USB drives into the hub. Or, just power the Pineapple with 12V.

Link to comment
Share on other sites

  • 2 weeks later...

Hi I installed sslstrip to usb stick with the above information it worked fine

I then rebooted the pineapple and laptop now I can't find it installed

And when I try to reinstall it it flashes twice then the loading flashes twice and nothing happens

Link to comment
Share on other sites

xneox, Please explain your problem in more detail, as far as i can tell you have installed sslstrip using the '--dest usb' option, but I'm not sure what you mean by flashing twice, what LED is flashing twice? the WPS light?

Did you prepare the usb stick according to darrens guide.

Have you seen this guide:

https://www.dropbox.com/s/dr6sedfteu8atwq/hak5-mk4-book1e.pdf

It covers almost every aspect of the pineapple with pictures.

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...