#robotics Logs
Oct 01 2014
#robotics Calendar
01:38 mrdata that's 15 years
02:31 deshipu 15 years is the level of IBM mainframes
07:51 Gebruiker12345 eey
07:53 Gebruiker12345 anyone
07:53 Gebruiker12345 ?
13:08 Tom_L http://www.electronicproducts.com/Software/System/New_Shellshock_virus_considered_1_000_times_worse_than_Heartbleed_bug_could_affect_at_least_500M_computers.aspx
13:47 deshipu sigh
16:43 theBear pfft, good article asshats, "So wherein lies the problem? Many web servers are run using the Apache system. One of the components that makes Apache run is Bash. " that explains everything !
19:12 rue_house theBear, why do you think someone put a scare compain out on linux?
19:12 rue_house do you think its microsoft origionated?
19:13 Tom_itx rue_house
19:13 rue_house yea
19:13 Tom_itx can i rename a hdd device to access it?
19:14 Tom_itx once it's mounted
19:14 rue_house you dont have to, its already called /dev/hd*
19:14 rue_house or sd*
19:14 rue_house you dont use to use the unique colume name
19:14 Tom_itx then why did i have to use some obscure name to copy files?
19:14 rue_house because you found a stupid way of doing it
19:14 Tom_itx it worked :D
19:14 rue_house yea,
19:15 Tom_itx so just call it /dev/hd1
19:15 Tom_itx starting with 0?
19:15 rue_house nono, the os creates those
19:15 Tom_itx no i mean when i copy files
19:15 rue_house if the hd is attached to the system, there will be ne there for for
19:15 rue_house you have to mount it
19:15 rue_house aka mount /dev/sda1 /mnt
19:15 Tom_itx it appears to be mounted when it boots
19:16 rue_house what IS IT?
19:16 rue_house I dont know what your trying to do
19:16 Tom_itx i haven't put it back in the pc yet
19:16 Tom_itx what's /mnt do?
19:16 rue_house ok, basics:
19:16 rue_house linux and the unix filesystem in general has ONE filesystem /
19:17 rue_house all volumes are mounted to a directory off the root one (/)
19:17 rue_house so, /dev/sd* is the *device file*
19:17 rue_house and you 'mount' that to somewhere in the root filesystem to access it
19:18 Tom_itx sd isn't a hdd though right?
19:18 rue_house so, if you crete a directory called
19:18 rue_house /supercalifragulisticexialidoshus
19:18 rue_house you can 'attach' the contants of any drive to it by 'mounting' it
19:18 rue_house sd = scsi disk, almost all things are scsi disks now
19:19 rue_house ub = usb disk (no, I dont know why )
19:19 rue_house hd = old ata disk (now they use scsi emulation, so its sd)
19:20 rue_house runt eh command blkid (as root) and it will show you the /dev/ and uuid mappings
19:20 Tom_itx ok lemme boot and see if i can mount it
19:21 rue_house if you look thru dmesg after the system has booted you can see th kernel finding all the drives, and in the process, naming them
19:22 Tom_itx yeah, i've done that quite a bit finding the io on my cnc boards
19:23 Tom_itx ok the gui let me mount it without using terminal
19:24 rue_house no
19:24 rue_house use the terminal...
19:25 rue_house who knows what a stupid gui program is gonna do
19:25 Tom_itx i am looking at dmesg
19:25 Tom_itx it appears it did ok
19:25 rue_house k
19:25 rue_house see the drive?
19:25 rue_house is it removable?
19:25 rue_house /dev/??
19:25 Tom_itx do they start with 0 or 1?
19:25 rue_house a, b, c
19:26 rue_house sda is the first drive
19:26 rue_house sda1 is the first partiion of the first drive
19:26 rue_house sdb4 is the 4th partition of the 2nd drive
19:27 rue_house mount the partitioin, not the raw drive
19:27 atom1 [ 0.882755] sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
19:27 atom1 [ 0.882764] sd 1:0:0:0: [sdb] 4096-byte physical blocks
19:27 atom1 [ 0.882786] sd 1:0:0:0: Attached scsi generic sg1 type 0
19:27 atom1 [ 0.882925] sd 1:0:0:0: [sdb] Write Protect is off
19:27 atom1 [ 0.882932] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
19:27 atom1 [ 0.882998] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
19:27 atom1 [ 0.883332] sdb: sdb1 sdb2 < sda5 >
19:27 atom1 [ 0.911711] sd 0:0:0:0: [sda] Attached SCSI disk
19:27 atom1 [ 0.924998] sdb5 >
19:27 atom1 [ 0.925583] sd 1:0:0:0: [sdb] Attached SCSI disk
19:27 rue_house you have 2 partitions on drive b
19:27 rue_house sdb1
19:28 rue_house and sdb5 which is a extended partition in sdb2, so if you want to mount it, mount sdb5
19:28 Tom_itx but both drives are mounted right?
19:28 rue_house not neccissarily
19:28 rue_house to find out whats mounted run the command mount
19:28 rue_house as root
19:28 rue_house it will tell you what is mounted where
19:29 atom1 ./dev/sda1 on / type ext4 (rw,errors=remount-ro)
19:29 rue_house so the main system filesystem is on sda1
19:30 rue_house are you trying to copy that?
19:30 atom1 apparently the other one isn't mounted yet
19:30 rue_house mount /dev/sdb5 /mnt
19:30 atom1 no i want to copy some files from it
19:30 rue_house from sda or sdb
19:30 atom1 why 5?
19:30 atom1 why not 1
19:31 rue_house because of iwndows stupidity, all important stuff is dumped into extended partitions
19:31 atom1 it isn't a windows drive
19:31 atom1 they're both linux with a single large partition
19:31 atom1 and maybe a backup area it did on it's own
19:31 rue_house no...
19:32 rue_house dosn't do that...
19:32 rue_house not that I ever heard of
19:32 rue_house but by all means try
19:32 atom1 well then there's just one partition on each of the 2 drives
19:32 atom1 so how do i mount the 2nd one?
19:32 rue_house remember to unmount one system before loading the next
19:33 rue_house umount /mnt
19:33 atom1 why?
19:33 rue_house sda2 isn't a real partition
19:33 rue_house it will prolly give you an error if you try to mount it
19:33 atom1 i want to copy from one to the other so why do i need to unmount it?
19:33 atom1 1
19:34 rue_house because an extended partiotion must lie in a real one, if sda5 exists, the one before it will be fake, which is sdb2
19:34 rue_house lets do this
19:34 rue_house mkdir /mnt2
19:34 atom1 mount: /dev/sdb1 already mounted or /media/01a2a28a-a4c7-41af-b4cc-55f3e49ea7a5 busy
19:34 atom1 mount: according to mtab, /dev/sdb1 is already mounted on /media/01a2a28a-a4c7-41af-b4cc-55f3e49ea7a5
19:34 rue_house yea
19:34 atom1 that's the 2nd drive
19:34 rue_house mount /dev/sdb1 /mnt2
19:34 atom1 what's that do?
19:35 rue_house you can make as many dirs as you want and mount filesystems to them
19:35 rue_house mkdir /mnt2 makes a place to mount a filesytem, its just a directory
19:35 atom1 what does the /mnt2 do?
19:35 rue_house its just a directory
19:35 atom1 i don't want any more directories
19:35 atom1 i have all i need
19:35 rue_house call if floobywiblestien if you want
19:35 rue_house mnt2 is easy to type
19:35 atom1 all the directories are all in place already on both drives
19:36 rue_house to access the contents of a drive you have to mount it
19:36 atom1 it says it is
19:36 atom1 ^^
19:36 rue_house you have to mount dirves to directoryies off the main root filsystem
19:37 rue_house you said you wanted to mount the ohter one, if you dont, then you dotn need to make another directory to mount it to
19:37 atom1 so the directory is just a name that points to the other drive?
19:37 rue_house you can only have one filesystem mounted to a directory at a time,
19:37 atom1 why do you make things so confusing?
19:37 rue_house if you mount a filesystem to a driectory that already has a filesystem mounted to it, the last one will prevail
19:37 rue_house whats confusing?
19:37 rue_house you should se my day job
19:38 rue_house did you get what you need?
19:38 atom1 or mine..
19:38 rue_house or do you need access to the other partition?
19:38 atom1 not yet
19:38 rue_house what do you need?
19:38 atom1 i haven't tried yet
19:38 atom1 i've been typing on irc instead
19:38 rue_house I'll go do some boiler insulating and come back :)
19:38 atom1 i just wanna copy a couple files that have root access from one drive to the other
19:39 atom1 in the same directories of each drive
19:39 atom1 they are basically mirror images
19:41 rue_shop2 are they both mounted?
19:41 rue_shop2 the right drives :)
19:49 rue_shop2 foam thru tablesaw
19:49 e_shop2 gets out all the mess protec
19:49 Tom_itx ok are you with me for a bit?
19:49 Tom_itx i need to copy 2 files from the first drive to the 2nd drive and both are owned by root
19:50 Tom_itx just booted the pc
19:50 Tom_itx done nothing else
19:50 Tom_itx the drive to copy from is being booted
19:57 atom1 ok i got it
21:45 rue_shop2 ARG, that was evil
21:46 rue_shop2 did you mount the two drives and copy the files?
21:46 Tom_itx yes
21:46 rue_shop2 see! easy
21:46 Tom_itx and did updates and swapped drives out
21:46 rue_shop2 unlike insulating the thermal storage tank for the boiler
21:46 rue_shop2 that was anything but easy
21:47 rue_shop2 tho I didn't cut myself doing it, which is nice
21:47 rue_shop2 that makes atleast one task that hasn't taken a slice off me
21:47 Tom_itx well i'm gradually getting better at linux but i don't mess with it every day
21:48 Tom_itx haha
21:48 Tom_itx i bumped the monitor and found some buttons i didn't even know it had
23:10 Loshki Tom_itx: the kind with switches that are flush so you can't see them? Been there...
23:24 rue_house Loshki, capacitive ones