KingHackR Posted April 12, 2013 Share Posted April 12, 2013 (edited) I have tried a number of ways to get any of my USB drives to work but none of them are working. I can not activate the swop file. I am using at this moment the drive you sent me I reformatted it more than once and other drives also to no avail. The info below is using the drive you sent with the Pineapple - SanDisk 4 GB I did make the two partitions folloing directions. I did a dgmsg and I get " scsi0 : usb-storage 1-1:1.0 " scsi 0:0:0:0 Direct-Access SanDisk Cruzer Fit 1.26 PQ: 0 ANS: 5 " " sd 0:0:0:0: [sda] 7821312 512-byte logical blocks: (4.00GB/3.72 Gib) " " sd 0:0:0:0: [sda] Write Protect is off " " sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00 " " sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA " " :sda: sda1: sda2: < sda5 > " I also get " usbserial: US Serial Driver core " " usbcore: registered new interface driver rndis_host " " sd 0:0:0:0: Attached scsi generic sg0 type 0 " " EXT4-fs (sdal1): warning maximal mount count reached, running e2fsck is recommended " " EXT4-fs (sda1): mounted filesystewm with ordered data mode. Opts: (null) " " EXT4-fs (sda5) couldn't mount as ext3 due to feature incompatibilities " " EXT4-fs (sda5) couldn't mount as ext2 due to feature incompatibilities " " EXT4-fs (sda5): mounted filesystewm with ordered data mode. Opts: (null) " hope some of this helps I have all my usb drives partitioned with EXT4 I used "minitool partition wizard". Do I need to change the sector size's? I just do not know where to go from here. Please help thanks :-) Edited April 12, 2013 by KingHackR Quote Link to comment Share on other sites More sharing options...
KingHackR Posted April 12, 2013 Author Share Posted April 12, 2013 I did ls /dev/ad* and I got : " /dev/ada " " /dev/sda1 " " /dev/sda2 " " /dev/sda5 " Quote Link to comment Share on other sites More sharing options...
Lordx18 Posted April 12, 2013 Share Posted April 12, 2013 did you follow this? http://forums.hak5.org/index.php?/topic/25882-how-to-enable-usb-mass-storage-with-swap-partition/ make sure to edit the config file in the lsusb output. if you follow the steps exactly you should get it. As long as you run "free" in the terminal and see "swap" it should be working and then it's just a matter of changing that config file to get it up and running! Let me know if this helps! Hopefully this is helpful! Quote Link to comment Share on other sites More sharing options...
KingHackR Posted April 12, 2013 Author Share Posted April 12, 2013 (edited) I am getting a better response from my PNY Drive: hub 1-0:1.0: 1 port detected[ 11.410000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver[ 11.530000] uhci_hcd: USB Universal Host Controller Interface driver[ 11.650000] Initializing USB Mass Storage driver...[ 11.650000] usbcore: registered new interface driver usb-storage[ 11.660000] USB Mass Storage support registered.[ 11.700000] usb 1-1: new high-speed USB device number 2 using ehci-platform[ 12.280000] scsi0 : usb-storage 1-1:1.0[ 14.060000] scsi 0:0:0:0: Direct-Access PNY USB 2.0 FD 8192 PQ: 0 ANSI: 0 CCS[ 15.480000] sd 0:0:0:0: [sda] 31326208 512-byte logical blocks: (16.0 GB/14.9 GiB)[ 15.490000] sd 0:0:0:0: [sda] Write Protect is off[ 15.490000] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00[ 15.490000] sd 0:0:0:0: [sda] No Caching mode page present[ 15.500000] sd 0:0:0:0: [sda] Assuming drive cache: write through[ 15.510000] sd 0:0:0:0: [sda] No Caching mode page present[ 15.510000] sd 0:0:0:0: [sda] Assuming drive cache: write through[ 15.520000] sda: sda1 sda2 < sda5 >[ 15.530000] sd 0:0:0:0: [sda] No Caching mode page present[ 15.530000] sd 0:0:0:0: [sda] Assuming drive cache: write through[ 15.540000] sd 0:0:0:0: [sda] Attached SCSI removable disk My USB file looks like this: 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 I am a little lost on this, at this point just can not activate the swap Edited April 12, 2013 by KingHackR Quote Link to comment Share on other sites More sharing options...
KingHackR Posted April 12, 2013 Author Share Posted April 12, 2013 (edited) Will try more later and get back to you A.S.A.P. Edited April 12, 2013 by KingHackR Quote Link to comment Share on other sites More sharing options...
KingHackR Posted April 12, 2013 Author Share Posted April 12, 2013 (edited) I am getting this with the "free" command: : total used free shared buffers : : Mem: 29480 26856 2624 0 3952 : ; -/+ buffers: 22904 6576 : : Swap: 0 0 0 : Edited April 12, 2013 by KingHackR Quote Link to comment Share on other sites More sharing options...
KingHackR Posted April 12, 2013 Author Share Posted April 12, 2013 From the "ls -al" command I get: : brw-r--r-- 1 root root 8, 0 Jan 1 1970 /dev/sda : : brw-r--r-- 1 root root 8, 1 Jan 1 1970 /dev/sda1 : : brw-r--r-- 1 root root 8, 2 Jan 1 1970 /dev/sda2 : : brw-r--r-- 1 root root 8, 5 Jan 1 1970 /dev/sda5 : Under disk usage I get this: (no mention of /dev/sda2)? : Filesystem Size Used Available Use% Mounted on : : rootfs 960.0K 752.0K 208.0K 78% / : : /dev/root 5.3M 5.3M 0 100% /rom : : tmpfs 14.4M 92.0K 14.3M 1% /tmp : : tmpfs 512.0K 0 512.0K 0% /dev : : /dev/mtdblock3 960.0K 752.0K 208.0K 78% /overlay : : overlayfs:/overlay 960.0K 752.0K 208.0K 78% / : : /dev/sda1 9.4G 14.2M 8.8G 0% /usb : : /dev/sda5 4.6G 11.0M 4.4G 0% /mnt/sda5 : Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted April 12, 2013 Share Posted April 12, 2013 You say you followed the USB formatting guide? If so, you should only have two partitions, sda1 and sda2. Not 3, 4 and 5. Looks to me like you need to re-format the stick following these instructions. Best Regards, Sebkinne Quote Link to comment Share on other sites More sharing options...
KingHackR Posted April 12, 2013 Author Share Posted April 12, 2013 The system is seeing my /dev/sda2 as having 0kb so it will not make the swap file there? should I use /dev/sda5 because pineapple says it has 4.6gb? this is not making sense, I do not know why it is not seeing /dev/sda2 as having the 4.6gb, it keeps putting it in /dev/sda5? I ssh over to pinapple and tried everything I could think of, I have to be missing something. Just lost on this one. :-( could it be the format I am using when I use mkswap who knows If I could get an exact example of what I should input it might be helpful but I don't think its that. Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted April 12, 2013 Share Posted April 12, 2013 The system is seeing my /dev/sda2 as having 0kb so it will not make the swap file there? should I use /dev/sda5 because pineapple says it has 4.6gb? this is not making sense, I do not know why it is not seeing /dev/sda2 as having the 4.6gb, it keeps putting it in /dev/sda5? I ssh over to pinapple and tried everything I could think of, I have to be missing something. Just lost on this one. :-( could it be the format I am using when I use mkswap who knows If I could get an exact example of what I should input it might be helpful but I don't think its that. I repeat. Follow THIS guide to format your USB. If you don't use Ubuntu then it will be slightly different but still: Remove All partitions. Re-format the drive. Create 1 partition, give it 80% of the space or something, format it ext4. Create another partition, give it all available free space and format that ext4. Now the USB will work. Quote Link to comment Share on other sites More sharing options...
KingHackR Posted April 12, 2013 Author Share Posted April 12, 2013 (edited) I only have two partitions but pineapple is creating a /dev/sda5 out of the /dev/sda2 and putting a <sda5> around it there are no /dev/sda3 or /dev/sda4 listed like this : [ 15.690000] sda: sda1 sda2 < sda5 > : Edited April 12, 2013 by KingHackR Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted April 12, 2013 Share Posted April 12, 2013 I only have two partitions but pineapple is creating a /dev/sda5 out of the /dev/sda2 and putting a <sda5> around it there are no /dev/sda3 or /dev/sda4 listed? Well, according to ls -la /dev/sd* you have more than just those two. I suggest you re-format. Just do it and see if it helps. Quote Link to comment Share on other sites More sharing options...
KingHackR Posted April 12, 2013 Author Share Posted April 12, 2013 (edited) I have put 4 different drives in there and all are doing the same thing but they look good in backtrack 5? And yes I have reformatted each drive at least 3 times each but I have been using the default cluster size could that be it? Who knows Edited April 12, 2013 by KingHackR Quote Link to comment Share on other sites More sharing options...
KingHackR Posted April 12, 2013 Author Share Posted April 12, 2013 I am SSH'ed in right now if you want me to try something? Quote Link to comment Share on other sites More sharing options...
KingHackR Posted April 12, 2013 Author Share Posted April 12, 2013 I have been on this for 6 hours now and getting tired will get back to it in a while. I am like a dog with a bone and will not let this go till I figure it out. This is like hacking it keeps me going in circles. Quote Link to comment Share on other sites More sharing options...
Lordx18 Posted April 12, 2013 Share Posted April 12, 2013 (edited) Just reformat the whole USB stick. Start from step one of tst guide, and follow it exactly. You should have novpr Edited April 12, 2013 by Lordx18 Quote Link to comment Share on other sites More sharing options...
Lordx18 Posted April 12, 2013 Share Posted April 12, 2013 (edited) No problems if you follow it.* Looks like you're doing something wrong to create the swap. Make sure you format it correctly. Make the first partition 3 gigs and the second, one. I used a pny with 8 gigs so I had to make my own since the guide uses 4 gigs. I think I did 6.6 and the rest on the other. Just follow the guide man. It will work, I promise you Edited April 12, 2013 by Lordx18 Quote Link to comment Share on other sites More sharing options...
KingHackR Posted April 13, 2013 Author Share Posted April 13, 2013 No I did nothing wrong but I found out what the problem was the minitool partition wizard makes the second partition into some strange two part partition all inside itself I suggest that everyone use the Linux (Ubuntu GUI disk partition) tool like what is in your catalog because I was able to see what the disk wizard and how it screwed up the second partition. All is working correctly now. Thanks for trying to help I knew if I hit my head against this enough I would figure it out like a hack. Hee Hee :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.