Ask Your Question
0

Find disk names in fedora 19

asked 2013-08-29 07:55:32 -0600

daniel88 gravatar image

Hello,

I'm trying to configure automounting for my ntfs partitions at startup. I read that I have to modify /etc/fstab for this but I seem to need the disk names to do so, however I don't have any /dev/sdx partitions or at least I can't find them. I found that dolphin shows something like "link to ../../sdx" when I hover of the various IDs in /dev/disk/ but this doesn't help me much.

Thanks for your help.

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
3

answered 2013-08-29 08:23:51 -0600

nonamedotc gravatar image

There are two very useful commands in this regard -

lsblk and blkid

edit flag offensive delete link more

Comments

blkid also shows a filesystem's UUID. You should always use the UUID or the filesystem's Label. device nodes like /dev/sda1 could change based on the drives attached to the system, or the system the drive is attached to, but the UUID and Label are build into the filesystem on the drive.

randomuser gravatar imagerandomuser ( 2013-08-29 09:54:35 -0600 )edit
2

answered 2013-08-29 08:20:27 -0600

Jann5s gravatar image

the command lsblk will give you a list of available devices

edit flag offensive delete link more

Comments

From the linux-utils package.

ralph gravatar imageralph ( 2013-08-29 11:34:46 -0600 )edit
0

answered 2013-09-02 10:48:25 -0600

Schotty gravatar image

As many mentioned its lsblk you probably want.

example usage:

[andrew@big-red ~]$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0  12.7G  0 part [SWAP]
└─sda2   8:2    0 918.8G  0 part /home
sdb      8:16   0  59.6G  0 disk 
├─sdb1   8:17   0   500M  0 part /boot
└─sdb2   8:18   0  59.1G  0 part /
sdc      8:32   0 931.5G  0 disk 
└─sdc1   8:33   0 931.5G  0 part /run/media/andrew/Seagate 1TB
sr0     11:0    1  1024M  0 rom  
[andrew@big-red ~]$
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-08-29 07:55:32 -0600

Seen: 733 times

Last updated: Sep 02 '13