Open Linux Forums
Like Ubuntu forums, except with beer.
Member
Joined: Feb 12 2018
Posts: 3

How can I see the install drives in :
Debian
Wifislax
Kali Linux
Ubuntu

Best Regards

How can I test the drives ?

A good link ?

Administrator
Joined: Nov 08 2017
Posts: 683

How do you mean "see" the drives? Partition structure, or what is on the partition, or what exactly?

And what do you want to test? Perhaps S.M.A.R.T might be the direction you are looking for.
That is this
Wikipedia article

If I remember rightly, the partitioning program Gparted will show you at least some of the S.M.A.R.T. values.
It might also well be the program you need to "see" the drives, depending on what you want to see.

It can be run from a boot medium, and is generally available in the repositories of a linux distribution.
Be careful with gparted. You can really break your machine badly with it... wink
gparted.org

Member
Joined: Feb 12 2018
Posts: 3

Sorry .
I want to see the device drivers installed.
Not the partitions with gPared
Excuse my english.
By example see if the usb wifi adapter drive is installed and functioning.
But first see if is installed.
In windows i can see these things through the device manager.
Best Regards

Administrator
avatar
Joined: Oct 04 2017
Posts: 382

Probably the most universal way to check the by the OS recognized disks, is the partitions file:

[leppie@localhost ~]$ cat /proc/partitions 
major minor  #blocks  name

   8        0   20971520 sda
   8        1     307200 sda1
   8        2   18566144 sda2
   8        3    2097152 sda3

As you can see, this command will also list all the partitions on the drives.

If you just want a list of all the found devices, you can use smartctl:

[root@localhost ~]# smartctl --scan
/dev/sda -d scsi # /dev/sda, SCSI device

To display a bunch of information for a specific drive, use smartctl (physical drives should produce more info):

[root@localhost ~]# smartctl --all /dev/sda
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-573.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

Vendor:               VMware, 
Product:              VMware Virtual S
Revision:             1.0 
User Capacity:        21,474,836,480 bytes [21.4 GB]
Logical block size:   512 bytes
Device type:          disk
Local Time is:        Mon Feb 12 05:46:15 2018 PST
Device does not support SMART

Error Counter logging not supported
Device does not support Self Test logging

To test a drive:

[root@localhost ~]# smartctl -t [drive_to_test]

Replace the [drive_to_test] with the actual drive path. Depending on the size of the drive, this could take a long time to complete.

I will see if I can find some links with more info.

Administrator
avatar
Joined: Oct 04 2017
Posts: 382

JohnLandisJr wrote:

Sorry .
I want to see the device drivers installed.
Not the partitions with gPared
Excuse my english.
By example see if the usb wifi adapter drive is installed and functioning.
But first see if is installed.
In windows i can see these things through the device manager.
Best Regards

To see what USB devices are recognized by your system, use the lsusb command:

[leppie@localhost ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub

If you are looking for other recognized hardware (hence, not USB devices), you could try lshw:

[leppie@localhost ~]$ lshw

This command is installed by default on most distros, but not all. For example, RHEL 6 does not install it by default.

Member
Joined: Oct 06 2017
Posts: 179

! https://wiki.debian.org/WiFi

Member
Joined: Oct 04 2017
Posts: 344

JohnLandisJr wrote:

Sorry .
I want to see the device drivers installed.
Not the partitions with gPared
Excuse my english.
By example see if the usb wifi adapter drive is installed and functioning.
But first see if is installed.
In windows i can see these things through the device manager.
Best Regards

First off there is nothing wrong with your English. By that I mean that I have no idea what your native language is but your English is at least 100% better than my command of yours.

Wifi is a touchy subject with Debian. Most of the firmware (drivers) are not in compliance with the definition of FOSS used by Debian policy. So that stuff is not installed by default in Debian. Most Debian based distros, like Ubuntu, do install them by default.

The firmware is available in the Debian repos but is in the "non-free" repository.

To find the controller for your wifi you would need to use;

$ lspci

and then wade through the results or if you know what the controller is then you can do something like this which I can't demonstrate with wifi as I don't have it on my MB so I am using my Ethernet controller instead;

tom@openbox:~$ lspci | grep Ethernet
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)

using "wifi" instead of Ethernet may work.

Then if you want the package, in Debian, for that device you would search for the device itself. In my case above the Realtek device is not supported with a default install of Debian. Dhcp hooks me up automatically to the net but the gui tools like Network Manager and wicd do not "see" it so the simple disconnect/connect method of using the gui tool is no possible. But the firmware is available and will be found if you add "non-free" to your Debian
/etc/apt/sources.list
lines for the enabled repos after the word "main" with a space between so that a line looks like

deb http://ftp.us.debian.org/debian/ buster main non-free contrib

Contrib is another optional repo supported on Debian repo servers but not installed in default installs.

For my Realtek ethernet controller I need the package
firmware-realtek

For your wifi in Debian it is probably not a specific package you need at all. Debian removes a number of "drivers" that are actually included in the Linux Kernel before they use it in their distributed versions. The installation of the package
firmware-linux

will install that stuff on your system.

Member
Joined: Oct 06 2017
Posts: 179

Since it'sa usb device, use the lsusb command.