PDA

View Full Version : [ubuntu] where is udevinfo?



kudude
September 13th, 2009, 06:13 PM
I'm a new user (here's my first post) migrating from 6 years of gentoo. I'm trying to setup my filesystem right now. I have a large external drive with several partitions that I want mounted via /etc/fstab. The problem is I need udevinfo to tell me about the drive. Even though the "udev" package is installed, running
"sudo udevinfo"
gets me a
"command not found"
message.

Where is this elusive executable?

thank you

sisco311
September 13th, 2009, 06:27 PM
use udevadm instead.


udevadm info -q all -n /dev/sda1

you can list the partitions with:

sudo fdisk -l
or

sudo blkid

kudude
September 13th, 2009, 06:38 PM
thanks for the quick help

Jose Catre-Vandis
January 3rd, 2010, 03:36 AM
use udevadm instead.


udevadm info -q all -n /dev/sda1

you can list the partitions with:

sudo fdisk -l
or

sudo blkid

Thanks, Useful stuff.

Question though..

Are the UUIDs for USB drives hard coded, or can they be changed, say if you reformat etc?

sisco311
January 3rd, 2010, 03:53 AM
Thanks, Useful stuff.

Question though..

Are the UUIDs for USB drives hard coded, or can they be changed, say if you reformat etc?

Nope, UUIDs are not hard coded.

Yep, they change after a reformat.

You can use tune2fs to set a custom UUID.


man tune2fs | less +2/-U



It doesn't matters if it's an USB drive or not, partitions are partitions.

Jose Catre-Vandis
January 3rd, 2010, 03:18 PM
Thanks sisco311