LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2011, 02:09 PM   #16
confused2
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
tail


OK,
I put the 'on' in because the first reply had it in there.
I'll try it this last way, maybe with/without the 's'
thankyou, I hope it works, I WILL post the results!
Dm
 
Old 04-28-2011, 02:11 PM   #17
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
The original post meant to run the command "tail -f" on the file "/var/log/messages".

I agree that the instructions in post #2 were very poor for someone who is clueless about the command line.
 
Old 04-28-2011, 05:01 PM   #18
confused2
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Wow!
it did something that time. but, it printed up a whole page of stuff. you don't want all
that, do you?
in brief, it said,
operation="profile load" pid 855,855,855,
" pid 873,873,873,
" 878,878,
" 879
sudo: pam_sm_authenticate:username
 
Old 04-28-2011, 05:06 PM   #19
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Rep: Reputation: 35
Here's what I get:
Code:
Apr 28 14:03:37 RyanLaptop klogd: [ 1281.595050] usb 1-4: new high speed USB device using ehci_hcd and address 3
Apr 28 14:03:38 RyanLaptop klogd: [ 1282.264734] usb 1-4: New USB device found, idVendor=05dc, idProduct=a813
Apr 28 14:03:38 RyanLaptop klogd: [ 1282.264744] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 28 14:03:38 RyanLaptop klogd: [ 1282.264753] usb 1-4: Product: USB Flash Drive
Apr 28 14:03:38 RyanLaptop klogd: [ 1282.264760] usb 1-4: Manufacturer: Lexar
Apr 28 14:03:38 RyanLaptop klogd: [ 1282.264768] usb 1-4: SerialNumber: AAEXWVB4S6O60DCU
Apr 28 14:03:38 RyanLaptop klogd: [ 1282.269381] scsi3 : usb-storage 1-4:1.0
Apr 28 14:03:41 RyanLaptop klogd: [ 1285.075299] scsi 3:0:0:0: Direct-Access     Lexar    USB Flash Drive  1100 PQ: 0 ANSI: 0 CCS
Apr 28 14:03:41 RyanLaptop klogd: [ 1285.075712] sd 3:0:0:0: Attached scsi generic sg2 type 0
Apr 28 14:03:44 RyanLaptop klogd: [ 1288.657284] sd 3:0:0:0: [sdb] 62652416 512-byte logical blocks: (32.0 GB/29.8 GiB)
Apr 28 14:03:44 RyanLaptop klogd: [ 1288.658529] sd 3:0:0:0: [sdb] Write Protect is off
Apr 28 14:03:44 RyanLaptop klogd: [ 1288.664216]  sdb: sdb1
Apr 28 14:03:44 RyanLaptop klogd: [ 1288.667281] sd 3:0:0:0: [sdb] Attached SCSI removable disk
If what you get looks something like this, then please post it -- it might contain an error message that would be helpful for us.

If what you get doesn't look like this, then please post some of it (a couple of pages if it's a large amount), as something isn't right.

In other words, please post what that command output
 
1 members found this post helpful.
Old 04-28-2011, 05:14 PM   #20
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
And please use [code]command output goes here[/code] tags. It will put it in a nice scroll box with a monospaced font.
 
Old 04-28-2011, 07:20 PM   #21
confused2
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Apr 28 13:31:20 don-desktop kernel: [ 17.569377] type=1505 audit(1304022680.100:3): operation="profile_load" pid=855 name=/sbin/dhclient3
Apr 28 13:31:20 don-desktop kernel: [ 17.569879] type=1505 audit(1304022680.100:4): operation="profile_load" pid=855 name=/usr/lib/NetworkManager/nm-dhcp-client.action
Apr 28 13:31:20 don-desktop kernel: [ 17.570164] type=1505 audit(1304022680.100:5): operation="profile_load" pid=855 name=/usr/lib/connman/scripts/dhclient-script
Apr 28 13:31:20 don-desktop kernel: [ 17.757628] type=1505 audit(1304022680.288:6): operation="profile_load" pid=873 name=/usr/bin/evince
Apr 28 13:31:20 don-desktop kernel: [ 17.769165] type=1505 audit(1304022680.300:7): operation="profile_load" pid=873 name=/usr/bin/evince-previewer
Apr 28 13:31:20 don-desktop kernel: [ 17.776678] type=1505


does this help?
Dm
 
Old 04-28-2011, 07:35 PM   #22
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778
Did you perform these steps AFTER inserting the device, like requested?

The command, tail, displays the last entries in a log file. In this particular case, you were getting the last entries in the messages log that is contained in your /var/log directory. The objective was to see if you get any sort of response from your system indicating that it saw activity when you inserted the USB device. If you inserted a device and then performed the command, it suggests that your system did not 'see' that a device had been inserted. This being the case, I would suggest that you can see if your system recognizes that it has a USB controller and whether or not it has any USB drivers (aka modules) loaded into the kernel. You may have a compatibility issue or even a hardware failure.

You can do this with two commands. First:
Code:
 sudo lspci | grep -i usb
This command runs lspci, which lists the devices that are seen on your PCI bus and filters for anything containing the word USB.
Second:
Code:
 sudo lsmod | grep -i usb
This command does a similar function, but lists the kernel modules, i.e. drivers, that are installed in your system.

For example, my system gives the following output:
Code:
root@slacker:~# lspci | grep -i usb
00:02.0 USB Controller: nVidia Corporation MCP67 OHCI USB 1.1 Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation MCP67 EHCI USB 2.0 Controller (rev a2)
00:04.0 USB Controller: nVidia Corporation MCP67 OHCI USB 1.1 Controller (rev a2)
00:04.1 USB Controller: nVidia Corporation MCP67 EHCI USB 2.0 Controller (rev a2)
root@slacker:~# lsmod | grep -i usb
usbhid                 36859  0 
hid                    77723  1 usbhid
This tells me that I have two USB controllers, each of which has an open host controller and an extended host controller and that I am using the modules usbhid and hid (which is in turn used by usbhid).

Lets see if your hardware reports something similar.

Last edited by Noway2; 04-28-2011 at 07:35 PM. Reason: fixed code tag
 
1 members found this post helpful.
Old 04-28-2011, 09:51 PM   #23
confused2
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
thanks, I can see how that works. I tried the USB and had no response. my first instruction
was to do the 'tail' first, then put in a CD, I then got this error code. I'll try what you
said next, to see what results I get .

Apr 28 18:11:38 don-desktop kernel: [ 149.625667] ILI
Apr 28 18:11:38 don-desktop kernel: [ 149.625670] sr 1:0:1:0: [sr1] Add. Sense: Illegal mode for this track
Apr 28 18:11:38 don-desktop kernel: [ 149.655611] sr 1:0:1:0: [sr1] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Apr 28 18:11:38 don-desktop kernel: [ 149.655624] sr 1:0:1:0: [sr1] Sense Key : Illegal Request [current]
Apr 28 18:11:38 don-desktop kernel: [ 149.655633] ILI
Apr 28 18:11:38 don-desktop kernel: [ 149.655635] sr 1:0:1:0: [sr1] Add. Sense: Illegal mode for this track
Apr 28 18:11:38 don-desktop kernel: [ 149.665614] sr 1:0:1:0: [sr1] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Apr 28 18:11:38 don-desktop kernel: [ 149.665621] sr 1:0:1:0: [sr1] Sense Key : Illegal Request [current]
Apr 28 18:11:38 don-desktop kernel: [ 149.665628] ILI
Apr 28 18:11:38 don-desktop kernel: [ 149.665631] sr 1:0:1:0: [sr1] Add. Sense: Illegal mode for this track
Apr 28 18:11:38 don-desktop kernel: [ 149.675629] sr 1:0:1:0: [sr1] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Apr 28 18:11:38 don-desktop kernel: [ 149.675637] sr 1:0:1:0: [sr1] Sense Key : Illegal Request [current]
Apr 28 18:11:38 don-desktop kernel: [ 149.675644] ILI
Apr 28 18:11:38 don-desktop kernel: [ 149.675647] sr 1:0:1:0: [sr1] Add. Sense: Illegal mode for this track
 
Old 04-29-2011, 06:23 AM   #24
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 336

Rep: Reputation: 36
ooops. cross post. please ignore

Last edited by alar; 04-29-2011 at 06:27 AM.
 
Old 04-29-2011, 09:13 AM   #25
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
@confused2

Use [code]command output goes here[/code] tags when posting command output. I already said that once, but you ignored me.
 
Old 05-01-2011, 06:55 PM   #26
confused2
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
I'm sorry MTK358, I didn't mean to ignore you, I didn't understand what you meant? I did
cut/paste to [notes] the results of, Sudo lspci grep -i usb, if you think that will do
any good?
 
Old 05-01-2011, 07:09 PM   #27
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by confused2 View Post
I'm sorry MTK358, I didn't mean to ignore you, I didn't understand what you meant? I did
cut/paste to [notes] the results of, Sudo lspci grep -i usb, if you think that will do
any good?
What is "[notes]"?
 
Old 05-01-2011, 07:16 PM   #28
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
After pasting message in window highligh the pasted content only, at the top of quick reply box there is a row of icons, if you put mouse on them they'll say what they are.
You want the 1 that says "wrap quote tags arouund selected text". Later on you can experiment in Advanced section under "Go Advanced" button.
 
1 members found this post helpful.
Old 05-01-2011, 08:03 PM   #29
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Also, in Post #25, I gave an example of how [code] tags are used.
 
Old 05-03-2011, 08:42 AM   #30
confused2
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Original Poster
Rep: Reputation: 0
I guess I can't be helped. but, I think you guys are great, and I really do appreciate you
trying. I was hoping it would be some simple, 'little' thing. and I'd have a fighting chance.
but, I'll keep trying, somehow, somewhere I'll 'find it'.
thanks again, and have fun.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Boot Unbuntu and Windows XP (Unbuntu Installed First). Mad4Macintosh Linux - Newbie 16 03-20-2009 11:37 AM
Why can I not get my usb Sandisk to work with Unbuntu? gnosis1.7 Linux - Newbie 12 08-22-2007 05:54 PM
realtek rtl8139D cannot work in Unbuntu linux! Help me! gvtheen Linux - Networking 1 07-07-2007 04:40 PM
Getting my CD drives to work with 2.6.0 jspaceman Slackware 5 12-23-2003 02:18 PM
CD drives dont work Riichard Linux - Newbie 4 09-15-2003 07:49 AM


All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration