You are not logged in.
Pages: 1
Hi. My /etc/fstab looks really weird since I installed Arch Linux again...
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/cdrom /media/cdrom auto ro,user,noauto,unhide 0 0
/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
UUID=980747b1-9c9b-4253-9315-eedf5b823096 / ext3 defaults 0 1
UUID=988f3d9d-c635-4e3b-a63c-8663be80ac37 /boot ext2 defaults 0 1
UUID=9a9cef1a-3654-4df1-823e-d1ce0089947b swap swap defaults 0 0
UUID=da824a2c-86d1-4547-b55b-8bbac1fe93a2 /backup ext3 defaults 0 1
What's up with the UUIDs? I don't get it.
Offline
Offline
Offline
There is an entry in the proc fs which generates uuids, I use it all the time when I need a unique identifier in a shell script.
UNIQ_TMP_FILE=/tmp/$(cat /proc/sys/kernel/random/uuid)
Offline
There is an entry in the proc fs which generates uuids, I use it all the time when I need a unique identifier in a shell script.
UNIQ_TMP_FILE=/tmp/$(cat /proc/sys/kernel/random/uuid)
or uuidgen
Offline
oh that's just too easy...
actually I didn't know about it
Offline
Also, when you want to do anything more (like adding fstab entries for an external drive):
blkid lists partitions and their UUIDs, and can be done as a normal user.
vol_id (/lib/udev/vol_id) lists more info, but only for a specified partition.
Last edited by cerbie (2009-01-19 07:26:32)
"If the data structure can't be explained on a beer coaster, it's too complex." - Felix von Leitner
Offline
That's good info to know.. beats ls -l /dev/disk/by-uuid/
Offline
Pages: 1