Linux Finding all storage devices attached to a machine

0 votes
I'm trying to find all of the writable storage devices attached to a given machine, irrespective of if they are mounted.

I was curious if there is a better solution I could use?
Jun 10, 2019 in Linux Administration by Shubham
• 13,490 points
560 views

1 answer to this question.

0 votes
  1. Use /proc/partitions first. This will list all the block devices and partitions that your system recognizes. 
  2. Try using file -s <device> to determine what kind of filesystem is present on the partition, if there be any.
answered Jun 10, 2019 by Upasana
• 8,620 points

Related Questions In Linux Administration

0 votes
1 answer

Error:mvn clean install" in my linux machine to build a maven Project

Hello @Niroj , You need to double check the PATH environment ...READ MORE

answered Aug 6, 2020 in Linux Administration by anonymous
• 82,880 points
2,790 views
0 votes
1 answer

How to display a simple list of all disks, like this /dev/sda /dev/sdb ?

You can list all the disk in ...READ MORE

answered Jul 12, 2018 in Linux Administration by DearestOne
• 200 points
5,061 views
0 votes
1 answer

How to create a symlink in Linux?

To create a symbolic link, you can ...READ MORE

answered Feb 1, 2019 in Linux Administration by Omkar
• 69,210 points
841 views
0 votes
1 answer

How to find the group associated with a user in linux?

To list all the groups groups or to list ...READ MORE

answered Jun 21, 2019 in Linux Administration by DareDev
• 6,890 points
770 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Adding yes/no/cancel prompts in shell script

You can use the read command. Here's ...READ MORE

answered Mar 13, 2019 in Linux Administration by ajs3033
• 7,300 points
3,987 views
0 votes
1 answer

How to change the default shell in Linux?

1. Change the password file directly for ...READ MORE

answered May 24, 2019 in Linux Administration by Upasana
• 8,620 points
806 views
0 votes
1 answer

To attach a file using mail command on Linux

$ echo | mutt -a syslogs.tar.gz admin@domain.org READ MORE

answered Jun 28, 2019 in Linux Administration by Upasana
• 8,620 points
2,612 views
0 votes
1 answer

generating a list of files with their absolute path in Linux

If you find an absolute path to start with, ...READ MORE

answered May 16, 2019 in Linux Administration by Upasana
• 8,620 points
1,155 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP