#robotics Logs
Jul 04 2017
#robotics Calendar
12:17 AM rue_house: oh, a minute ago it was bedtime
12:22 AM rue_house: and there are so many more things I wanted to do tongiht
12:22 AM Anniepoo_: 8cD
12:22 AM Anniepoo_: are u changing bedtime?
12:22 AM rue_house: nope, 9:45
12:34 AM rue_house: ok I think I finished designing the triiping tray for the screw sorter
12:34 AM rue_house: start a print and go to bed
12:42 AM Anniepoo_: 8cD
12:42 AM Anniepoo_: it now involves tripe?
12:42 AM Anniepoo_: that's, uh, novel design
12:42 AM Anniepoo_: biomimetic robotics!
12:55 AM rue_house: tipping
12:56 AM rue_house: the tray on the cart that tips left or right depending
12:56 AM rue_house: I think I set it up so I can couple a servo horn to it
12:57 AM rue_house: befroe I go to bed I'll fire you an image
12:59 AM rue_house: http://ruemohr.org/~ircjunk/projects/screwsorter/tiptray.png
12:59 AM rue_house: goes ontop of that cart
01:03 AM rue_bed2: anniepoo, ^!?
01:05 AM rue_bed2: :( everyone died.
01:26 AM Anniepoo_: hey
01:27 AM Anniepoo_: fe;; aleep
01:28 AM Anniepoo_: looking good - will it be rugged enough?
01:29 AM rue_bed2: #8 x 1"?
02:25 AM Anniepoo_: kk
02:34 AM synja: hey Anniepoo_, you might appreciate this
02:34 AM synja: https://www.indiegogo.com/projects/poly-funics-game-music
02:34 AM Anniepoo_: thanks
02:36 AM Anniepoo_: I sometimes do art pieces with an artist. She's been trying to make music games that don't involve 'more points for imitating better'
02:48 AM Anniepoo_: anyway, I'm headed for bed
02:48 AM Anniepoo_: night
02:48 AM synja: the only reason i do it is because it continues to motivate kids
02:48 AM synja: g'night
05:40 AM Schrostfutz: anniepoo: Thanks for your answer yesterday.
05:41 AM Schrostfutz: rue_shop3: We are running a robot that follows a line and tries to keep a certain distance to the leading robot. We already use a PID to dampen the line-detection and we were thinking about using it for the distance measurement, too.
08:58 AM rue_bed2: one thing at a time tho, right?
09:01 AM Schrostfutz: rue_bed2: Well the PID for line-following works.
09:21 AM rue_house: good show
09:22 AM rue_house: what kinda drive is the robot, vector or tractor?
09:27 AM Schrostfutz: What do you mean by that?
09:27 AM rue_house: usually two motors
09:27 AM rue_house: two options for how to use them
09:27 AM rue_house: one drives the robot forwards/backwards, and the other does steering
09:28 AM rue_house: or a left and right motor , both forwad makes the robot go forwards, one forwadrs and one backwadrs makes the robot spin
09:28 AM rue_house: vector, and tractor
09:33 AM rue_house: well, aside from the printer running out of filamant, the tray looks good
02:02 PM codepython7771: rue_house: ping :)
02:10 PM zhanx: my leds are bright http://imgur.com/a/9L2T9
02:20 PM robopal: there are
02:37 PM zhanx: ?
04:22 PM jago: hi. would anyone here be able to help me with a basic question on servo motors and arduinos please?
04:22 PM ace4016: maybe
04:23 PM ace4016: depends what your question is
04:23 PM jago: thanks... ;)
04:25 PM jago: ok. i've got an arduino controlling a servo no problem. but it's not smooth (ie, move 1 position, delay, move again, delay etc). last night I was playing with a dc motor and an L298N h-bridge. much better, I could tell it to turn on, and move at a certain speed by changing the analog value... today I went to buy a geared motor (I need much slower speed) but the man at the shop told me I could use an Arduino Motor Shield to
04:25 PM jago: control the speed of a servo. I didn't think that was possible, but he showed me a model he made which seemed to do it. But I can't make it work at all. Is it remotely possible to control the speed of a servo in the same way you can with a dc motor? thanks
04:27 PM zhanx: jago: hop over to #arduino there are more people on that can help you over there
04:27 PM jago: thanks. I did ask there earlier but no reply (although I couldn't stay too long sadly)
04:28 PM jago: just thought maybe someone here might know as it's more a general motor question and obviously you guys use them a lot
04:29 PM zhanx: well with arduino you can control the servo the same way, make sure you are using the right pin
04:31 PM codepython7771: any suggestion for a good cheap proximity sensor? (1cm to 50cm would be nice)
04:31 PM deshipu: jago: there are special "rotation servos" which basically are geared motors with a controller built in
04:31 PM jago: I can control the servo yes, but not the speed. with the dc motor there's just the power, but with the servo there's the power and the signal. or am I supposed to do that - treat it as a dc motor (ie, vary the power to change the speed) AND use the pwm signal to tell it which angle to go to?
04:32 PM deshipu: jago: you can also modify a normal servo to be a continuous rotation servo by breaking its feedback pot
04:32 PM deshipu: jago: but then you lose the ability to set the servo to a desired position
04:33 PM jago: it's not the continuous rotation I care about, I only need 180 degrees but happy to lose position (I was prepared today to buy a dc motor and use an IMU to find the position)
04:33 PM deshipu: you can also move a normal servo smoothly, by only giving it the new position very close to the old one and very fast
04:33 PM jago: yes, but that's only then at the one speed yes?
04:33 PM jago: and fast, as you say
04:33 PM jago: i want to be able to move slowly and smoothly
04:33 PM deshipu: the speed will then depend on how large the steps are and how often
04:34 PM deshipu: you can do it at 50Hz
04:34 PM jago: is there any way at all to say to it - go to position 0, now go to position 90 and take 2 seconds to do it
04:34 PM jago: with out move, delay, move, delay, etc
04:34 PM deshipu: not with the cheap hobby servos, no
04:35 PM deshipu: though there are servo controllers that can handle it for you
04:35 PM deshipu: like the maestro one by pololu
04:35 PM deshipu: but normally you would do it yourself in the program
04:35 PM jago: I was sold the official Arduino Motor Shield by the guy in the shop who said it did it, but I can only see how to use it for dc and stepper motors
04:36 PM zhanx: well you can do it with cheap servo's but you would need to count the steps in it and delay the steps and watch and repeat
04:36 PM deshipu: I don't know the "official arduino motor shield", so I can't comment on that
04:36 PM zhanx: deshipu: the board he has will do it
04:36 PM jago: do I need to use PID or PIV?
04:37 PM zhanx: but he needs to smooth his code out via trial and error to get the steps to range of movement vs range of time
04:37 PM zhanx: PID
04:37 PM jago: zhanx - would that allow me to change the speed and keep it smooth, or just have it smooth at one speed?
04:38 PM zhanx: change the speed and keep it smooth
04:38 PM jago: ah right ok
04:38 PM jago: so it IS possible
04:38 PM jago: I was going to buy a geared motor with a slow RPM and use that (which I was fine with) but he sold me this board but I've spent all night trying to find out how to do it
04:39 PM jago: I just found PID (and an article on PIV too) and wondered if that is it
04:41 PM zhanx: jago: i am grilling so i am in and out
04:41 PM jago: no worries
04:41 PM jago: just knowing it is possible means I can carry on looking - I was about to give up and get a geared motor (2 actually) tomorrow. but if this is possible, I'll keep searching. thanks.
04:43 PM deshipu: veverak: https://forum.micropython.org/viewtopic.php?f=15&t=3530
04:46 PM zhanx: jago: i did a robot with 32 servos once and used pid so yes its possible
04:47 PM zhanx: someone wanted the robot more than me so its gone now
04:47 PM jago: ;)
04:47 PM veverak: deshipu: cool!
04:48 PM jago: is it complicated? I can program (I'm new to arduinos but 35 years programming) but if it's going to take LOTS of work, I may be best with geared motors and IMUs
05:04 PM veverak: deshipu: will join I think
05:06 PM deshipu: veverak: awesome :)
05:06 PM deshipu: veverak: I guessed you would be the local expert
06:39 PM z64555: oh is that what they're called? I always called them "car" and "tank" steering
07:03 PM ace4016: https://i.redd.it/cozohvgr2h7z.png
07:05 PM zhanx: lol
07:31 PM zhanx: led porn http://imgur.com/a/NQuOg SFW
07:41 PM rue_shop3: "when I get home I'm going to" ... gee, wish I remmebered the end of that
07:42 PM rue_shop3: zhanx, 3W or 5W?
07:42 PM zhanx: 15w :D
07:42 PM zhanx: 35vdc
07:43 PM zhanx: some test run for microscopes, they don't even light up till 17.2vdc
07:45 PM Tom_itx: rue_shop3, the hdd is done spinning
07:48 PM rue_shop3: spinning!?
07:48 PM rue_shop3: you mean the data transfer finished?
07:48 PM Tom_itx: i stopped it
07:48 PM rue_shop3: ugh
07:48 PM zhanx: he had to
07:48 PM Tom_itx: it had gone 7 + hrs with no valid reads
07:48 PM rue_shop3: well start a filesystem recovery on the image and see what you get
07:49 PM Tom_itx: how do i go about that
07:49 PM rue_shop3: ITS NOT THE RIGHT SIZE NOW so there are going to be a whole chapter of new problems
07:49 PM Tom_itx: nothing i can do about that
07:49 PM rue_shop3: fsck.ext3 partition.img
07:49 PM zhanx: rue got as i typo'd the command
07:50 PM rue_shop3: hu?
07:50 PM zhanx: but i think its test.img
07:50 PM rue_shop3: whatever its called
07:50 PM zhanx: rue see my led collection?
07:50 PM rue_shop3: yea
07:51 PM zhanx: want some?
07:51 PM rue_shop3: hah, no I'm ok
07:51 PM rue_shop3: 15W?
07:51 PM zhanx: yea they take a ton of power to use
07:51 PM rue_shop3: I thought those beads only came in 3 and 5
07:52 PM rue_shop3: 333mA
07:52 PM zhanx: same here
07:52 PM zhanx: they are 700ma base
07:52 PM rue_shop3: oooo
07:53 PM zhanx: max is 1500ma i was like wow
07:53 PM zhanx: still need to order and find resistors for them or just tune the buck boosters to run them with out resistors
07:54 PM rue_shop3: use the constant current controllers
07:55 PM rue_shop3: https://www.aliexpress.com/item/Free-shipping-5A-constant-current-LED-driver-module-battery-charging-constant-voltage-DC-DC-power-module/32687888107.html
07:55 PM rue_shop3: one pot is voltage limit, the other is current limit
07:55 PM zhanx: i have 4 of those
07:56 PM zhanx: which came labeled wrong so i have 4 instead of 5
07:56 PM Tom_L: Either the superblock or the partition table is likely to be corrupt!
07:56 PM rue_shop3: no no no
07:56 PM rue_shop3: did you run the command like I said?
07:56 PM rue_shop3: fsck.ext3 cant complain about a partition table
07:56 PM Tom_L: fsck.ext3 test.img
07:57 PM rue_shop3: it dosn't know or care
07:57 PM rue_shop3: why would it not look for an alternate superblock
07:57 PM rue_shop3: let me think
07:58 PM Tom_L: asks if i want to abort or not
07:58 PM zhanx: no
07:58 PM Tom_L: should i say no?
07:58 PM rue_shop3: there are backup superblocks
07:58 PM zhanx: let it run on the new drive and see if you can mount it and recover some stuff
07:58 PM rue_shop3: at 32768 98304... etc
07:58 PM rue_shop3: you did, thats the image
07:58 PM rue_shop3: that image is all we get
07:59 PM rue_shop3: need to tell fsck to use a backup block
07:59 PM rue_shop3: <rue_shop3> let me think
07:59 PM Tom_L: i'll wait for something definitive here
08:00 PM rue_shop3: fsck.ext3 -b 32768 test.img
08:00 PM zhanx: and if both are bad?
08:00 PM rue_shop3: there's a list of them
08:01 PM rue_shop3: its part of what you ignore when you format a drive
08:01 PM Tom_L: The filesystem size (according to the superblock) is 76054016 blocks
08:01 PM Tom_L: The physical size of the device is 59872291 blocks
08:01 PM Tom_L: Either the superblock or the partition table is likely to be corrupt!
08:01 PM rue_shop3: BECAUSE THE IMAGE IS NOW TOO SMALL there may be things upset
08:01 PM rue_shop3: its because you canceled the command
08:01 PM Tom_L: i realize that
08:01 PM rue_shop3: THATS WHY I SAID NOT TO
08:02 PM rue_shop3: :)
08:02 PM Tom_L: it was getting nowhere for 7 hours
08:02 PM rue_shop3: just, pointing that out...
08:02 PM Tom_L: the heads were banging on it
08:02 PM rue_shop3: and meanwhile the program was making an image THE RIGHT SIZE
08:02 PM rue_shop3: anyhow too late now!
08:02 PM rue_shop3: tell it to carry on anyhow
08:03 PM Tom_L: it can resume i think
08:03 PM rue_shop3: no, you will lose everything you done so far
08:03 PM rue_shop3: if you try that
08:03 PM rue_shop3: tell fsck to go ahead anyway
08:03 PM Tom_L: ok gimme the command i should run and accept again..
08:03 PM rue_shop3: fsck.ext3 -b 32768 test.img
08:04 PM Tom_L: ok it's running
08:04 PM Tom_L: test.img contains a file system with errors, check forced.
08:04 PM Tom_L: Pass 1: Checking inodes, blocks, and sizes
08:05 PM rue_shop3: if you havn't already tested the other drives on your other computers, put a bookmark in this log file so that in a year when the next drive fails, you have something to look back on
08:05 PM Tom_L: HTREE directory inode 12847139 has an invalid root node.
08:05 PM Tom_L: Clear HTree index<y>?
08:05 PM rue_shop3: er, say yes to everything
08:05 PM rue_shop3: (use a paperclip to jam down the Y key)
08:05 PM rue_shop3: or a butterknife, that works good
08:07 PM rue_shop3: eat, when I get home I'm gonna eat
08:07 PM rue_shop3: thats one of the things!
08:07 PM rue_shop3: but... what to eat..
08:08 PM rue_shop3: I wonder why it thought it was a 760G drive...
08:08 PM rue_shop3: er, odd block size
08:09 PM rue_shop3: cause ... huh
08:11 PM Tom_L: i see what you mean about the butterknife :D
08:11 PM rue_shop3: haha, I was serious
08:11 PM rue_shop3: most of the things its doing are to unimportant files
08:12 PM rue_shop3: the hope is that the 1% of the files there, the ones you want, are mostly ok
08:12 PM Tom_L: Entry 'data' in /opt/Xilinx/14.7/ISE_DS/EDK/sw/lib/bsp/xilkernel_v5_01_a (11796529) has deleted/unused inode 12976982. Clear<y>? yes
08:13 PM rue_shop3: yep
08:15 PM rue_shop3: say it with me tom, "I will never trust a drive of any kind again, I will use software mirrored raid on everything"
08:15 PM Tom_L: naw
08:15 PM rue_shop3: speaking of, I should update my backups tonight
08:16 PM rue_shop3: my two file servers, that both use mirrored raid, have backups of the ciritical bits of each other
08:17 PM Tom_L: i'm fairly sure i have the configs i need backed up
08:17 PM Tom_L: i'd just rather use these if they're still there
08:17 PM Tom_L: i'll have to get the xilinx stuff from them again probably
08:18 PM rue_shop3: yea
08:19 PM Tom_L: i think the xilinx i have is for both win and linux but i'm not positive
08:22 PM rue_shop3: is it done yet?
08:22 PM Tom_L: nope
08:23 PM rue_shop3: is it doing more checking or asking?
08:23 PM Tom_L: i superglued the "Y" key down
08:23 PM * rue_shop3 nods
08:24 PM rue_shop3: spagetti
08:35 PM Tom_itx: found my piece of tungsten to hold the key
08:41 PM Tom_itx: http://tom-itx.no-ip.biz:81/~webpage/rue/keyweight1.jpg
08:41 PM rue_house: I just jam it under the (H) key leaning on the Y key (butterknife)
08:42 PM rue_house: nice... impact printer?
08:42 PM Tom_itx: this cheap kbd it would probably pop the top off it
08:42 PM Tom_itx: yes
08:42 PM Tom_itx: ibm ps1
08:42 PM rue_house: ah yea, ibm thats it
08:42 PM Tom_itx: lexmark
08:43 PM Tom_itx: being 290G i'm guessing this will also take a while
08:43 PM rue_house: no
08:43 PM rue_house: shouldnt' be more than 10k files
08:44 PM Tom_itx: what is it doing?
08:44 PM rue_house: fixing files
08:44 PM Tom_itx: will it write them out to separate files or fix the img?
08:44 PM rue_house: nope, when its done we should be able to just mount the iamge
08:45 PM Tom_itx: ok
08:46 PM Tom_itx: and if not?
08:46 PM rue_house: then it'll be so badly mauled that nothing will be recoverable
08:46 PM Tom_itx: ok
08:48 PM rue_house: oooooh
08:48 PM rue_house: ooooooooooooooooh
08:48 PM rue_house: IF I take two identicle gears, put them togethor and measure the centre-centre, then 1/2 of that is the pitch radius!!!!!
08:49 PM rue_house: which means for ALL that pitch of gear, I can work it out!
08:49 PM Tom_itx: huh?
08:49 PM rue_house: thats how I work out the pitch radius of all the gears I'v got
08:49 PM Tom_itx: oh, mesh the 2 gears and measure to the center
08:49 PM Tom_itx: then divide by 2
08:50 PM Tom_itx: for the PD
08:50 PM Tom_itx: or PR
08:52 PM rue_house: yea
08:52 PM rue_house: then, using the tooth count, you can work out what the radii are for all the other meshing gears
08:52 PM Tom_itx: my calipers finally gave out so i got an elcheapo 2" longer from HF
08:53 PM rue_house: gave out?
08:53 PM Tom_itx: i kinda like having the 8" ove 6" even if it's cheap
08:53 PM Tom_itx: it skips
08:53 PM * rue_house hands tom two new batteries
08:53 PM Tom_itx: part of the capacitor strip is bad
08:53 PM Tom_itx: or whatever it is
08:53 PM rue_house: ah
08:53 PM Tom_itx: just one little spot
08:53 PM Tom_itx: they were nice fowler calipers too
08:54 PM rue_house: they use a multichannel vernier capacitor
08:54 PM Tom_itx: i figure for what i do anymore these are good enough
08:54 PM Tom_itx: if i had a gage block set i'd check them
08:55 PM Tom_itx: all i have is a 1" and .1" certified block
08:55 PM Tom_itx: a 6" block would test it's accuracy
08:56 PM rue_house: :/ only 22 things left from china on their way
08:56 PM rue_house: I got 4 packages today with 5 deliveries in them
08:56 PM Tom_itx: gives you 22 things to look forward to
08:56 PM Tom_itx: i have 0
08:56 PM rue_house: I was at 42, this feels empty
08:57 PM rue_house: ooh drat, I'm tired
08:57 PM Tom_itx: i got a bad feeling about this recovery
08:57 PM rue_house: (leg shakes, its really annoying)
08:57 PM rue_house: it knows there are files, thats good
08:58 PM rue_house: let it finish, we will see what we get
08:58 PM Tom_itx: it's got a couple hours
08:58 PM rue_house: not usually
08:58 PM Tom_itx: i won't let it "YYYY" unattended
08:58 PM rue_house: no its fine
08:59 PM rue_house: theprogram finishes and you get a bunch of YYYYY on the consile
08:59 PM rue_house: usually beeps
08:59 PM Tom_itx: nothing to beep on that one
08:59 PM rue_house: all th better
08:59 PM Tom_itx: i generally leave all the noise makers out
09:00 PM rue_house: so , $9 usd for 4 pcs of 6mm HSS lathe bit material
09:00 PM rue_house: which I thought wasn't an awesome deal, till I read it again
09:00 PM rue_house: 20mm peices
09:00 PM rue_house: er
09:00 PM rue_house: sorry 200mm
09:00 PM rue_house: each of these is 20cm
09:01 PM Tom_itx: i get tool blank from my local guy
09:01 PM rue_house: I'v never seen peices that long before
09:01 PM Tom_itx: 5/16 iirc
09:01 PM rue_house: these are 6mmx6mmx200mm 4pcs $9usd
09:01 PM rue_house: no idea if they are cheese yet
09:01 PM Tom_itx: that is pretty long
09:01 PM rue_house: yea!
09:01 PM Tom_itx: no need for that really
09:01 PM rue_house: makes it a good price!
09:02 PM Tom_itx: i suppose
09:02 PM rue_house: I'll knock them up
09:02 PM Tom_itx: only long tools i have are boreing bars
09:03 PM rue_house: S8550, I got 100 pcs, I dont know why
09:03 PM rue_house: pnp, 0.5A
09:03 PM Tom_itx: ok this ain't gonna work
09:03 PM Tom_itx: i gotta use the printer now...
09:07 PM rue_house: JUST LEAVE IT!!!
09:07 PM rue_house: geeez
09:07 PM Tom_itx: it's leaning on the pc now
09:07 PM Tom_itx: all is good
09:07 PM rue_house: even with everything I'd say you have a good 75% chance of getting your files
09:08 PM rue_house: hmm, I should software raid the usb drives for the music on the jukebox
09:09 PM Tom_itx: i usually keep good stuff at least 2-3 places
09:09 PM Tom_itx: i'm low on linux drives though
09:10 PM Tom_itx: the mix of pata sata kinda screws me up
09:10 PM rue_house: you didn't get any of those adaterS?
09:10 PM Tom_itx: yeah a bunch of em
09:10 PM Tom_itx: it's writing numbers now
09:10 PM rue_house: ah
09:10 PM Tom_itx: linking files probably
09:11 PM rue_house: let up on the Y key if you think its not needing it
09:11 PM rue_house: it may be just counting off verified sectors
09:11 PM Tom_itx: it needs it now and then now
09:12 PM Tom_itx: it appears to be done now
09:12 PM rue_house: yay!
09:12 PM rue_house: you have the command back?
09:12 PM Tom_L: test.img: 313301/19013632 files (0.2% non-contiguous), 12105751/76054016 blocks
09:13 PM rue_house: ok
09:13 PM Tom_itx: gimme a sec, i need to print something
09:13 PM rue_house: mount -o loop test.img /mnt
09:13 PM rue_house: k
09:14 PM Tom_L: mount: wrong fs type, bad option, bad superblock on /dev/loop0,
09:14 PM Tom_L: missing codepage or helper program, or other error
09:14 PM Tom_L: In some cases useful info is found in syslog - try
09:14 PM Tom_L: dmesg | tail or so
09:14 PM rue_house: it might not like it being short
09:15 PM rue_house: try this
09:15 PM rue_house: mount.ext3 test.img /mnt
09:15 PM Tom_L: bash: mount.ext3: command not found
09:15 PM rue_house: ugh
09:16 PM rue_house: oh, hmm
09:16 PM rue_house: oh duh
09:16 PM rue_house: mount -t ext3 test.img /mnt
09:17 PM Tom_L: mount: wrong fs type, bad option, bad superblock on /dev/loop0,
09:17 PM Tom_L: missing codepage or helper program, or other error
09:17 PM Tom_L: In some cases useful info is found in syslog - try
09:17 PM Tom_L: dmesg | tail or so
09:17 PM Tom_L: we should move to garf
09:18 PM rue_house: mount -t ext3 test.img -o sb=32768 /mnt
09:18 PM Tom_L: mount: wrong fs type, bad option, bad superblock on /dev/loop0,
09:18 PM Tom_L: missing codepage or helper program, or other error
09:18 PM Tom_L: In some cases useful info is found in syslog - try
09:18 PM Tom_L: dmesg | tail or so
09:18 PM rue_house: ls -l /dev/loop0
09:19 PM Tom_L: brw-rw---T 1 root disk 7, 0 Jul 4 20:47 /dev/loop0
09:19 PM rue_house: ok, smartass, dig us out of this one...
09:19 PM rue_house: I didn everythignright
09:20 PM rue_house: well now you have something new
09:20 PM Tom_L: heh
09:20 PM rue_house: but.. thats not fair
09:20 PM rue_house: think of something
09:20 PM rue_house: I'm working on it, stop hounding me!
09:21 PM rue_house: mount -t ext3 -o sb=32768 test.img /mnt
09:21 PM rue_house: there are files there
09:21 PM Tom_L: mount: wrong fs type, bad option,......
09:22 PM rue_house: it prolyl dosn't like the short image... let me think
09:23 PM rue_house: mount -t ext2 -o sb=32768 test.img /mnt
09:24 PM Tom_L: img size 311,387,357,184 bytes if that helps
09:24 PM rue_house: no, we need ti tot be the right size, over anything else
09:24 PM Tom_L: mount: wrong fs type, bad option,......
09:24 PM rue_house: the data disn't matter as long as that image was the right size
09:24 PM rue_house: that was the most important part
09:24 PM Tom_L: it wasn't gonna get any more
09:25 PM rue_house: it was making it up
09:25 PM Tom_L: it was banging the heads for 7 hrs
09:25 PM rue_house: dosn't matter it was trying 3 times and then making a block of zeros
09:25 PM rue_house: try this
09:25 PM rue_house: rerunt eh fsck command
09:26 PM Tom_L: what was it?
09:26 PM rue_house: it should say its clean and quit
09:26 PM rue_house: fsck.ext3 test.img
09:26 PM rue_house: it should have fixed the other master record
09:26 PM Tom_L: The filesystem size (according to the superblock) is 76054016 blocks
09:26 PM Tom_L: The physical size of the device is 76022304 blocks
09:26 PM Tom_L: Either the superblock or the partition table is likely to be corrupt!
09:26 PM rue_house: if not, we can go with that
09:27 PM Tom_L: abort? Y
09:27 PM rue_house: thats fine, THATS CAUSE YOU QUIT BEFORE IT FINISHED
09:27 PM rue_house: dont abort
09:27 PM Tom_L: abort? Y
09:27 PM Tom_L: ok
09:27 PM Tom_L: YYYYY
09:27 PM rue_house: there should be almost no more errors...
09:28 PM Tom_L: Pass 1: Checking inodes, blocks, and sizes
09:28 PM Tom_L: Pass 2: Checking directory structure
09:28 PM Tom_L: Pass 3: Checking directory connectivity
09:28 PM Tom_L: Pass 4: Checking reference counts
09:28 PM rue_house: it should take a few mins, go thru it, and say everyting is ok
09:28 PM Tom_L: will it fix anything?
09:28 PM rue_house: and THEN I need to figureout HOW THE HELL to tell it the partition got smaller
09:29 PM Tom_L: test.img: 313301/19013632 files (0.2% non-contiguous), 12105751/76054016 blocks
09:29 PM rue_house: it shouldn't
09:29 PM rue_house: ok, so the only problem we have is all the missing size on the end
09:29 PM zhanx: that is bright https://www.youtube.com/watch?v=hMyhI2AAPrY
09:30 PM rue_house: how the hell do I fix this...
09:31 PM rue_house: tom whats df report?
09:31 PM zhanx: and ten of them
09:31 PM zhanx: https://www.youtube.com/watch?v=7xJogF9Iq5U
09:33 PM Tom_L: Filesystem 1K-blocks Used Available Use% Mounted on
09:33 PM Tom_L: rootfs 472498456 234420080 214076792 53% /
09:33 PM Tom_L: udev 10240 0 10240 0% /dev
09:33 PM Tom_L: tmpfs 335064 648 334416 1% /run
09:33 PM Tom_L: /dev/disk/by-uuid/8299d54b-0fb0-4a4b-9cb1-1a336cffec3e 472498456 234420080 214076792 53% /
09:33 PM Tom_L: tmpfs 5120 0 5120 0% /run/lock
09:33 PM Tom_L: tmpfs 2340460 0 2340460 0% /run/shm
09:33 PM rue_house: oh, lots of room
09:34 PM rue_house: usually this would be a partition tools job
09:34 PM rue_house: but we dont ahve one anymore
09:35 PM rue_house: I need something that actaully alters the superblock
09:36 PM zhanx: rue_house: https://www.cyberciti.biz/tips/surviving-a-linux-filesystem-failures.html
09:36 PM rue_house: ITS CAUSE HE CUT IT SHORT
09:37 PM zhanx: dumpe2fs /dev/sda3|grep -i superblock
09:37 PM Tom_itx: it's all z's fault :)
09:37 PM rue_house: if we had the right number of bytes we would have files
09:37 PM rue_house: no, we need to either modify the size of the image and re-fix it, or modify the superblocks
09:37 PM rue_house: but
09:37 PM zhanx: we can do both
09:38 PM zhanx: find the superblocks and then fix to them
09:38 PM rue_house: they are fine
09:38 PM rue_house: the image isn't
09:38 PM rue_house: its SHORT
09:38 PM rue_house: hold on
09:38 PM rue_house: reading a manual
09:38 PM rue_house: JUST WAIT
09:39 PM zhanx: put the pc in a freezer and try again
09:42 PM rue_house: tune2fs and parted are not options...
09:43 PM Tom_shop: http://www.linuxquestions.org/questions/linux-hardware-18/size-in-superblock-is-different-from-the-physical-size-of-the-partition-298175/
09:46 PM Tom_shop: I had to do "resize2fs -f /dev/md0 10477568" and after the reboot, a filecheck was initiated. All my data was still present!
09:46 PM Tom_shop: what about somethign like that
09:46 PM rue_house: let me do mroe reading
09:46 PM Tom_shop: i'm waiting but looking too
09:47 PM Tom_shop: just don't know what i'm looking at
09:47 PM Tom_shop: can i copy the image?
09:47 PM Tom_shop: to have a spare
09:47 PM rue_house: yea, NOT to somewhere else on that machine tho
09:48 PM zhanx: yes and testing these leds is leaving like half blind
09:48 PM Tom_shop: ok, it should fit on a thumbdrive you think?
09:48 PM zhanx: 10 is way too many to turn on at once
09:48 PM rue_house: oh easy
09:48 PM rue_house: ok
09:48 PM rue_house: this is good
09:48 PM Tom_L: lemme copy the file first
09:49 PM Tom_L: may take a sec
09:50 PM rue_house: resize2fs -f -M -p test.img
09:50 PM Tom_L: you sure?
09:50 PM rue_house: you pull and throw the pin, right?
09:50 PM Tom_L: i got nothing to copy it to right now anyway
09:50 PM Tom_L: let's do it
09:51 PM * rue_house hides under z's helmet
09:52 PM Tom_L: Resizing the filesystem on test.img to 11225156 (4k) blocks.
09:52 PM Tom_L: drum roll....
09:52 PM rue_house: ? 4k?
09:52 PM Tom_L: relocating blocks xxxx.............
09:53 PM rue_house: it might just die at the end
09:53 PM rue_house: something about MISSING DATA
09:53 PM Tom_L: could be
09:55 PM rue_house: is it done yet?
09:55 PM Tom_L: no
09:55 PM rue_house: ...
09:55 PM zhanx: ok i messed up
09:55 PM rue_house: is it done yet?
09:55 PM Tom_L: no
09:55 PM rue_house: ...
09:55 PM rue_house: ...
09:55 PM Tom_L: scanning inote table
09:55 PM rue_house: how about now?
09:56 PM Tom_L: updating inode references
09:56 PM zhanx: rue let it work
09:56 PM rue_house: is it done YET!?
09:56 PM Tom_L: rue's nervous
09:56 PM rue_house: zhanx, how many feet/second was that cord?
09:57 PM zhanx: i powered up 20 of them led's at 35 vdc with 700ma to them and am blinded
09:57 PM rue_house: well yea
09:57 PM rue_house: Tom_itx, is it done yet?
09:57 PM zhanx: rue_house: you tested each cord and calculated it
09:57 PM Tom_L: nope
09:57 PM zhanx: normal was 3 feet a sec
09:57 PM rue_house: zhanx, that unreliable eh?
09:57 PM Tom_L: z you sending rue det cord?
09:57 PM Tom_L: i want some
09:57 PM zhanx: he wants it
09:57 PM rue_house: haha
09:58 PM Tom_L: The filesystem on test.img is now 11225156 blocks long.
09:58 PM * rue_house peers over the edge? did it go out?
09:58 PM rue_house: yay!
09:58 PM rue_house: is it done?
09:58 PM Tom_L: haha went from 290G to 42.8G
09:58 PM rue_house: yea, like I said, mostly fluff
09:58 PM Tom_L: yeah it's done now rue
09:58 PM rue_house: ok, mount -o loop test.img /mnt
09:58 PM zhanx: lets mount it and see whats on it
09:59 PM * rue_house mumbles 'if anything'
09:59 PM zhanx: rue should i solder up the rest of these leds and spot light your house from mine?
09:59 PM Tom_L: returned nothing
09:59 PM rue_house: hah, I need more dark, not less
09:59 PM zhanx: tom that is good
09:59 PM rue_house: Tom_itx, yay, it worked!
10:00 PM rue_house: cd /mnt/
10:00 PM rue_house: ls -l
10:00 PM rue_house: anything there?
10:00 PM Tom_L: bin dev home initrd.img lib lost+found opt proc root run sbin srv sys tmp vmlinuz
10:00 PM rue_house: haha!
10:00 PM Tom_L: yay, the home is there!
10:00 PM rue_house: see if your files are there
10:01 PM Tom_L: looks like it
10:01 PM rue_house: remember, your walking thru a ship with trillions of holes in it
10:01 PM rue_house: its ready to just collapse at any moment, get what you need and get out
10:01 PM Tom_L: pfft
10:02 PM rue_house: *only what you need*
10:02 PM rue_house: hell dont try to run anythnig from it
10:02 PM Tom_L: ohh???
10:02 PM zhanx: copy the files off it and get out
10:02 PM Tom_L: was installing xilinx....
10:02 PM rue_house: no, get your config files and get out
10:02 PM Tom_L: heh
10:03 PM zhanx: notice me and rue agree for once
10:04 PM Tom_L: oh good... the xilinx tar file is there
10:05 PM Tom_L: good to challenge ya once in a while...
10:05 PM Tom_L: all the home dir looks good
10:06 PM Tom_L: can i copy it to a cd?
10:06 PM Tom_L: mmm, it wouldn't fit anyway
10:06 PM rue_house: the tar is most likley corrupt
10:06 PM zhanx: copy it to a safe spot and then run through it
10:07 PM Tom_L: it's almost done copying
10:07 PM rue_house: like I say, you can see them, but there are millions of holes in almost everything your looking at
10:08 PM rue_house: cant
10:08 PM zhanx: might ber
10:08 PM zhanx: be
10:08 PM rue_house: the holes are blocks of zeros riddled thru the files your looking at
10:09 PM rue_house: they are valid files, but, if they are all there, they will randomly have zeros in them
10:09 PM rue_house: zhanx, 20cm long HSS steel for the lathe
10:09 PM rue_house: 20cm!
10:10 PM rue_house: a new peice isn't even 10cm! here
10:11 PM zhanx: sweet, my bluetooth works great (testing it)
10:11 PM zhanx: nice rue
10:12 PM rue_house: .. dare I ask what the leds are for?
10:12 PM zhanx: sure my exploder for rock light when i off road at night
10:12 PM rue_house: aaah
10:12 PM zhanx: i am gonna wire them to some h bridges and rock the lights to music if i want to
10:13 PM zhanx: and make a UFO circle pattern etc
10:13 PM rue_house: 4" is a new peice
10:13 PM rue_house: these things are roughly 8"
10:13 PM zhanx: k
10:13 PM rue_house: I paid $8usd for 4 of them
10:13 PM zhanx: cheap
10:13 PM rue_house: thats $12cad
10:13 PM Tom_L: i see one file that is bad
10:14 PM rue_house: they want $6cad for one 4" peice
10:14 PM rue_house: Tom_itx, its the badness you cant see
10:14 PM rue_house: the files that are not truncated, but full of zeros
10:14 PM Tom_L: i know
10:14 PM zhanx: Tom_L: you will have some. i would copy them open them and save them as new files
10:15 PM Tom_L: yeah i will
10:15 PM rue_house: so, just to get this right, your not going to use this to pre-emtivly check your other drives to see if their failing now
10:15 PM Tom_L: once i get past this i will
10:16 PM Tom_L: i'm pretty sure i have all this but i will compare them
10:16 PM zhanx: rue you will love this circuit i am using 4 buck boosters to power 16 circuits with switches and no uc
10:16 PM rue_house: ?
10:16 PM rue_house: my 4 transistor pwm circuit?
10:17 PM zhanx: dont think i saw that
10:17 PM rue_house: http://ruemohr.org/~ircjunk/tutorials/elex/micropwm/p1080966.jpg
10:18 PM rue_house: http://ruemohr.org/~ircjunk/tutorials/elex/micropwm/p1080967.jpg
10:19 PM zhanx: i am doing Apollo style switching
10:19 PM zhanx: quad throw
10:19 PM rue_house: heh
10:20 PM rue_house: lever or rotary?
10:20 PM Tom_L: what's a good one to move these to a dvd?
10:20 PM rue_house: ...wodim?
10:20 PM zhanx: lever
10:20 PM rue_house: maybe I think
10:21 PM Tom_L: brasero?
10:21 PM zhanx: i use brasero
10:21 PM zhanx: its easy
10:41 PM Tom_L: thanks for the help guys...
10:41 PM Tom_L: gonna log off here now
10:48 PM Tom_itx: good thing is, there was a backup directory on the disk and between the configs and the backup i think i have it all
10:51 PM rue_shop3: yay
10:51 PM Tom_itx: thanks for the help rue
10:51 PM rue_shop3: :)
10:51 PM rue_shop3: your still lousy with instructions
10:51 PM Tom_itx: i'll sort it all out over the next few days
10:52 PM rue_shop3: I'v got a fat filesystem a programs been fixing for 9 days now
10:52 PM Tom_itx: it had reached the end.. i'm quite sure
10:52 PM Tom_itx: or i would have let it run for a week
10:52 PM rue_shop3: but the program was filling the file in with the zeros we needed
10:52 PM Tom_itx: it hadn't done anything in 7 hours
10:52 PM Tom_itx: no writes, no error changes nothing
10:52 PM Tom_itx: no reads
10:53 PM Tom_itx: just banging the heads
10:53 PM Tom_itx: i was watching it
10:53 PM Tom_itx: but you learned something too...
10:54 PM rue_shop3: I think I'm going to print a rack for driving the car on this screw sorter
10:55 PM rue_shop3: or not, ARG
10:56 PM Tom_itx: i need a good file compare program now
10:56 PM rue_shop3: diff
10:57 PM rue_shop3: diff -y
10:57 PM Tom_itx: gonna sort these out on windows
10:57 PM Tom_itx: it has diff but i purposely changed a file and it returned nothing
10:57 PM rue_shop3: er, you did it wrong
10:57 PM rue_shop3: (??)
10:58 PM Tom_itx: i didn't use -y
10:58 PM Tom_itx: what's that do
10:58 PM Tom_itx: diff file.1 file.2
10:58 PM rue_shop3: ribbon!
10:58 PM rue_shop3: thats what I need
10:58 PM rue_shop3: a roll of ribbon
11:00 PM rue_shop3: and I can do up two rubber pullies
11:00 PM rue_shop3: so, then the question is, do i use a stepper or a dc motor
11:01 PM Tom_itx: yeah it wrote all 000 to the one file
11:01 PM Tom_itx: but i have a copy of it
11:01 PM rue_shop3: the recover program couldn't read any of the sectors for that file
11:02 PM rue_shop3: _holes_
11:03 PM rue_shop3: dont get why the smart didn't pick up on it
11:03 PM Tom_itx: who knows
11:03 PM Tom_itx: skimming thru the backup it looks useable
11:03 PM Tom_itx: i'll trust it before i use the one off my server
11:03 PM rue_shop3: some drives may require a test to update the smart status
11:04 PM Tom_itx: it was a fairly new drive still in the sealed package that i'd gotten out to use
11:04 PM rue_shop3: yea, its still, wow
11:05 PM Tom_itx: it did sit for a while after being installed though
11:05 PM rue_shop3: stepper or dc motor
11:06 PM Tom_itx: stepper
11:06 PM rue_shop3: if I use a dc motor, I need to set up a driver, pwm, and a loop control
11:07 PM rue_shop3: well, I have about 400 steppers
11:09 PM Tom_itx: won't be sleeping for a while here
11:09 PM Tom_itx: sounds like a warzone outside
11:10 PM rue_shop3: storm time?
11:10 PM Tom_itx: fireworks
11:10 PM rue_shop3: oooh right the 4th
11:10 PM Tom_itx: i could only hope for bad weather now
11:11 PM zhanx: heck i think i had 40 days of rain
11:12 PM rue_shop3: huh, I'm exhausted
11:12 PM rue_shop3: I'm going to use ribbon to drive the car
11:12 PM rue_shop3: put the motor on the end of the rail, and a pulley on the other end
11:13 PM rue_shop3: I can get it in arbitrary length, so I can expand the system later
11:13 PM rue_shop3: I might put an encoder on the idler
11:14 PM rue_shop3: and then I'll stepper drive it, I have a library for trapazoidal profiles somewhere
11:15 PM Tom_itx: is this part of your screw sorter?
11:16 PM Tom_itx is now known as Tom_L
11:16 PM rue_shop3: yup
11:17 PM rue_shop3: I realized it can be used to sort lots of things
11:17 PM rue_shop3: once you have a machine that can put things in 1/300 bins, the rest is trivial
11:18 PM rue_shop3: didn't appreciate that when I started
11:46 PM rue_house: cool,
11:46 PM rue_house: in my "remove atleast one thing from the medical machine on the deck, per day" theme, today I pulled out a barcode scanner