LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-18-2011, 09:33 PM   #16
sean_hurly
LQ Newbie
 
Registered: Jun 2010
Location: South Africa
Distribution: Ubuntu
Posts: 18

Rep: Reputation: 0

sorry, i took this too far regarding the mknod, but for the sake of completeness.
(do NOT do it on your system)

iff i had written a suitable block driver:

sudo mknod /dev/example -b 250 0
ls -l /dev ( to check if it happened )
sudo mkdir /mnt/myexample
sudo mount -t ext2 /dev/example /mnt/myexample

summary,in response to your initial question: Why doesn't Ubuntu 9.10 detect my USB devices?
the kernel did detect your usb device ( the "dmesg" exercise ) but did not mount it (the "diff file1.dmp file2.dmp" exercise)

cat /etc/fstab provides a list of filesystems, partitions, and devices that MAY be automatically/manually mounted.
cat /etc/mtab shows what is currently mounted.

decide if you need to upgrade your OS or if you have an "odd" usb device
 
Old 02-19-2011, 08:29 AM   #17
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Original Poster
Rep: Reputation: 7
I don't want to upgrade my OS. What are your instructions now? What does this output of cat /etc/mtab say:
Code:
/dev/sda1 / ext4 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
none /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
udev /dev tmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
none /dev/shm tmpfs rw,nosuid,nodev 0 0
none /var/run tmpfs rw,nosuid,mode=0755 0 0
none /var/lock tmpfs rw,noexec,nosuid,nodev 0 0
none /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
none /var/lib/ureadahead/debugfs debugfs rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
gvfs-fuse-daemon /home/lapiii/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=lapiii 0 0
 
Old 02-19-2011, 09:27 AM   #18
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
@Advise_Pro, you have not identified exactly what USB device is involved. You should state the exact brand, model, and expected function of the USB device.
 
Old 02-19-2011, 12:20 PM   #19
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Original Poster
Rep: Reputation: 7
  • keyboard, no name brand
  • mouse, kensington Optical Elite
  • printer, canon MP600
  • webcam, Logitech Quickcam STX
  • wireless keypad, Targus Stow-N-Go Keypad
  • external HDD enclosure, Startech eSATA USB 2.0 to IDE SATA
 
Old 02-19-2011, 12:42 PM   #20
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
We can see from your previous posts in this discussion that most of these USB devices are detected and identified correctly. Are you saying that none of them are working? You appear to be using them to post in this forum. Which, if any, of the USB devices are not working?
 
Old 02-19-2011, 12:55 PM   #21
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Original Poster
Rep: Reputation: 7
No they work, Sean pointed out that the kernel isn't recognising them and that they must be mouted.
 
Old 02-19-2011, 02:34 PM   #22
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by Advice Pro View Post
No they work, Sean pointed out that the kernel isn't recognising them and that they must be mouted.
I think there is a misunderstanding. If a device is working then there is no problem. You don't need to mount mice, keyboards, or various other devices. You only need to mount a file system (on a disk for example). These other devices are automatically handled by their device drivers. You don't have to do anything unless one of them isn't working.

Last edited by stress_junkie; 02-19-2011 at 02:36 PM.
 
Old 02-20-2011, 06:47 PM   #23
sean_hurly
LQ Newbie
 
Registered: Jun 2010
Location: South Africa
Distribution: Ubuntu
Posts: 18

Rep: Reputation: 0
perhaps a bit more thought about the commands?: cat /proc/self/mountstats
 
Old 02-22-2011, 07:38 AM   #24
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by sean_hurly View Post
perhaps a bit more thought about the commands?: cat /proc/self/mountstats
What for? I just want to mount the usb devices. Please guide me on how to do so!
 
Old 02-23-2011, 02:57 AM   #25
sean_hurly
LQ Newbie
 
Registered: Jun 2010
Location: South Africa
Distribution: Ubuntu
Posts: 18

Rep: Reputation: 0
"No they work" : your words!

Why do you want to mount them, they are already?
 
Old 02-27-2011, 02:25 PM   #26
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by sean_hurly View Post
Why do you want to mount them, they are already?
Quote:
Originally Posted by sean_hurly View Post
summary,in response to your initial question: Why doesn't Ubuntu 9.10 detect my USB devices?
the kernel did detect your usb device ( the "dmesg" exercise ) but did not mount it (the "diff file1.dmp file2.dmp" exercise)
Quote:
Originally Posted by sean_hurly View Post
summary,in response to your initial question: Why doesn't Ubuntu 9.10 detect my USB devices?
the kernel did detect your usb device ( the "dmesg" exercise ) but did not mount it (the "diff file1.dmp file2.dmp" exercise)

cat /etc/fstab provides a list of filesystems, partitions, and devices that MAY be automatically/manually mounted.
cat /etc/mtab shows what is currently mounted.
This is the output of cat /etc/fstab:
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=01fc29b5-aca0-4830-80f9-7cf826c46274 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=40d709cd-7845-4e06-ab81-68cdc186bc6a none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
And cat /etc/mtab:
Code:
/dev/sda1 / ext4 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
none /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
udev /dev tmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
none /dev/shm tmpfs rw,nosuid,nodev 0 0
none /var/run tmpfs rw,nosuid,mode=0755 0 0
none /var/lock tmpfs rw,noexec,nosuid,nodev 0 0
none /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
gvfs-fuse-daemon /home/lapiii/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=lapiii 0 0
 
Old 02-28-2011, 01:42 AM   #27
sean_hurly
LQ Newbie
 
Registered: Jun 2010
Location: South Africa
Distribution: Ubuntu
Posts: 18

Rep: Reputation: 0
and what did the: diff file1.dmp file2.dmp display? please remember to generate file1 before plugging in the device and file2 after plugging in the device.
 
Old 02-28-2011, 08:30 AM   #28
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Original Poster
Rep: Reputation: 7
  1. How do you run the diff command?
  2. Would it make a difference if for file1.dmp, I need to keep the usb keyboard & mouse in or must I adapt ps/2 devices?
  3. There are no differences between file1.dmp and file2.dmp, they're both:
Code:
device rootfs mounted on / with fstype rootfs
device none mounted on /sys with fstype sysfs
device none mounted on /proc with fstype proc
device udev mounted on /dev with fstype tmpfs
device /dev/disk/by-uuid/01fc29b5-aca0-4830-80f9-7cf826c46274 mounted on / with fstype ext4
device none mounted on /sys/kernel/security with fstype securityfs
device none mounted on /sys/fs/fuse/connections with fstype fusectl
device none mounted on /sys/kernel/debug with fstype debugfs
device none mounted on /dev/pts with fstype devpts
device none mounted on /dev/shm with fstype tmpfs
device none mounted on /var/run with fstype tmpfs
device none mounted on /var/lock with fstype tmpfs
device none mounted on /lib/init/rw with fstype tmpfs
device binfmt_misc mounted on /proc/sys/fs/binfmt_misc with fstype binfmt_misc
device gvfs-fuse-daemon mounted on /home/lapiii/.gvfs with fstype fuse.gvfs-fuse-daemon
 
Old 02-28-2011, 12:03 PM   #29
sean_hurly
LQ Newbie
 
Registered: Jun 2010
Location: South Africa
Distribution: Ubuntu
Posts: 18

Rep: Reputation: 0
try this from your terminal:

echo '123' > file1.tmp
echo '123' > file2.tmp
diff file1.tmp file2.tmp

echo '234' > file2.tmp
diff file1.tmp file2.tmp

does that help you?
 
Old 02-28-2011, 12:41 PM   #30
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

Original Poster
Rep: Reputation: 7
file1.tmp + file2.tmp are the same, both files consist of
Quote:
123
After echo '234' > file2.tmp, diff output
Code:
1c1
< 123
---
> 234
 
  


Reply



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
Ubuntu, can't detect USB devices Qysik Linux - Newbie 7 09-10-2009 10:34 AM
how to detect usb devices connected to the system vijaya_svk Linux - Software 5 03-16-2008 02:21 PM
Cannot Detect Usb Devices garbo365 Linux - Newbie 17 09-21-2007 11:55 AM
Can't detect usb devices?? CM019 Debian 5 06-09-2005 01:43 PM
Can Hotplug detect USB devices in a certain order? SAM_site Linux - General 0 07-10-2004 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:26 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
Open Source Consulting | Domain Registration