On 2013-08-10 15:26, crumpybumpy wrote:
>
> robin_listas;2578234 Wrote:
>> On 2013-08-10 13:36, crumpybumpy wrote:
>> With pipes.
>
> I’m so much of a linux noob I don’t know if this is a serious reply or
> a joke–please explain 
The use of ‘|’ or ‘>’ after a command is called “piping”. MsDOS also has
it. It means the output of a command is “piped” through to somewhere
else. The full documentation in “man bash”, IIRC.
Better here:
http://en.wikipedia.org/wiki/Redirection_%28computing%29
I made a file of the output of that command called disklog which
appears to be in the root directory.
How do I copy that to an attached USB flash drive in that command line
mode?
Mmm. You have to mount manually that usb stick. Connect the stick, wait
a few seconds, then have a look at the log:
less /var/log/messages
Question mark gives help,the “end” key goes to the end of the file. You
will see something like this:
> <0.6> 2013-08-10 16:00:14 Telcontar kernel - - - [44234.408014] usb 1-6: new high-speed USB device number 4 using ehci_hcd
> <0.6> 2013-08-10 16:00:15 Telcontar kernel - - - [44234.522872] usb 1-6: New USB device found, idVendor=0781, idProduct=5151
> <0.6> 2013-08-10 16:00:15 Telcontar kernel - - - [44234.522874] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> <0.6> 2013-08-10 16:00:15 Telcontar kernel - - - [44234.522877] usb 1-6: Product: Cruzer Micro
> <0.6> 2013-08-10 16:00:15 Telcontar kernel - - - [44234.522878] usb 1-6: Manufacturer: SanDisk
> <0.6> 2013-08-10 16:00:15 Telcontar kernel - - - [44234.522880] usb 1-6: SerialNumber: 4318200EEB516BCB
> <0.6> 2013-08-10 16:00:15 Telcontar kernel - - - [44234.523290] scsi13 : usb-storage 1-6:1.0
> <1.6> 2013-08-10 16:00:15 Telcontar mtp-probe - - - checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-6"
> <1.6> 2013-08-10 16:00:15 Telcontar mtp-probe - - - bus: 1, device: 4 was not an MTP device
> <0.5> 2013-08-10 16:00:16 Telcontar kernel - - - [44235.524479] scsi 13:0:0:0: Direct-Access SanDisk Cruzer Micro 8.02 PQ: 0 ANSI: 0 CCS
> <0.5> 2013-08-10 16:00:16 Telcontar kernel - - - [44235.524646] sd 13:0:0:0: Attached scsi generic sg5 type 0
> <0.5> 2013-08-10 16:00:16 Telcontar kernel - - - [44235.528254] sd 13:0:0:0: [sde] Attached SCSI removable disk
> <0.5> 2013-08-10 16:00:16 Telcontar kernel - - - [44236.240829] sd 13:0:0:0: [sde] 15695871 512-byte logical blocks: (8.03 GB/7.48 GiB)
> <0.3> 2013-08-10 16:00:16 Telcontar kernel - - - [44236.241825] sd 13:0:0:0: [sde] No Caching mode page present
> <0.3> 2013-08-10 16:00:16 Telcontar kernel - - - [44236.241828] sd 13:0:0:0: [sde] Assuming drive cache: write through
> <0.3> 2013-08-10 16:00:16 Telcontar kernel - - - [44236.243697] sd 13:0:0:0: [sde] No Caching mode page present
> <0.3> 2013-08-10 16:00:16 Telcontar kernel - - - [44236.243700] sd 13:0:0:0: [sde] Assuming drive cache: write through
> <0.6> 2013-08-10 16:00:16 Telcontar kernel - - - [44236.245210] sde: sde1
The last line above says that partition /dev/sde1 was found (yours will
be different). Thus you do (as root - you probably are already):
> Telcontar:~ # mount /dev/sde1 /mnt
> Telcontar:~ # ls /mnt
> .Trash-1000 AB_Spain_1 AD_WC_1 AF_WC_3 Babylon ConsejosanthiPhising.pdf ZZ_Fotos_20110817
work
> Telcontar:~ # umount /mnt
> Telcontar:~ #
The work is the copy sequence, something like this:
cp filename /mnt/
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)