how can you find out what devices you have on your system?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[SOLVED] how can you find out what devices you have on your system?
I'm super fresh to linux so please bare with me.
I have two hard drives on my system. One was automatically mounted.
My question is: How do you find the device of the second hard drive which to mount? Is there a device manager (devmgmt.msc in win) that lists all connected devices?
Here is a list of existing devices that are mounted. I don't know if that will help.
pubuntu@pubuntu:~$ mount
/dev/cobd0 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/cobd2 on /tmp type ext2 (rw)
cofs0 on /etc/portable_ubuntu type cofs (rw,noexec,nosuid,nodev,dmask=0777,fmask=0666)
cofs1 on /mnt/C type cofs (rw,noexec,nosuid,nodev,dmask=0777,fmask=0666)
gvfs-fuse-daemon on /home/pubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=pubuntu)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
under the mount command it listed these mounted drives:
root@pubuntu:~# mount
/dev/cobd0 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/cobd2 on /tmp type ext2 (rw)
cofs0 on /etc/portable_ubuntu type cofs (rw,noexec,nosuid,nodev,dmask=0777,fmask=0666) cofs1 on /mnt/C type cofs (rw,noexec,nosuid,nodev,dmask=0777,fmask=0666)
gvfs-fuse-daemon on /home/pubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=pubuntu)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
I don't know what to be looking for in the dmesg output.
I see my C drive is mounted to /mnt/C but I don't see 'cofs1' anywhere in /dev/
My question is: How do you find the device of the second hard drive which to mount? Is there a device manager (devmgmt.msc in win) that lists all connected devices?
In Ubuntu I type this command from the console (Applications > Accessories > Terminal)
Code:
sudo lshw
will show all hardware plugged in your pc...also you might try gparted, that program shows all the partitions and disk space...be careful with this one...don't change anything unless you know what you're doing.
I had a very hard time getting the system to accept my second drive, after a few days here, and a lot of help from some nice folks, I got it to be mounted on bootup by changing a few files.
Linux is hard at first but gets easier every day.
good luck
Last edited by joseph2020; 05-04-2009 at 03:03 AM.
I use Ubuntu 8.04 and also have two hard drives. One of the drives is used as a back-up and is not automatically mounted. When I need access to it I click on Places in the top taskbar than computer in the next window the hard drive is in the list than I just click on it. The drive is mounted and ready to use. I think that if the drive is used as a back-up drive it probably is better it is not mounted automatically that way if something goes wrong with your system the back-up drive will not be effected. When the second drive is mounted it will be on your desktop you can right click on the drive and find the mount point you can use the command line to mount the drive in the future if you would rather mount it that way.
Good Luck
Eric
Distribution: Ubuntus, Fedora, openSUSE, and Vector Lite 6.0
Posts: 46
Rep:
Mate,
I use the following commands:
"sg_map" shows where the devices is mapped to /dev/; and
"sg_scan -i" which shows which device it is that is mapped to /dev, useful info such as who makes the hdd etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.