You are not logged in.

#1 2009-01-16 15:28:24

skorpan
Member
Registered: 2007-11-09
Posts: 81

Strange fstab

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

#2 2009-01-16 15:30:11

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Strange fstab


Mr Green

Offline

#3 2009-01-16 17:00:34

kakTuZ
Member
From: Hannover, Germany
Registered: 2007-10-20
Posts: 86

Offline

#4 2009-01-16 18:40:12

pizmooz
Member
Registered: 2009-01-11
Posts: 21

Re: Strange fstab

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)

cool

Offline

#5 2009-01-16 18:48:23

jo3
Member
Registered: 2007-08-18
Posts: 112

Re: Strange fstab

pizmooz wrote:

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)

cool

or uuidgen big_smile

Offline

#6 2009-01-16 19:17:36

pizmooz
Member
Registered: 2009-01-11
Posts: 21

Re: Strange fstab

oh that's just too easy...

actually I didn't know about it

Offline

#7 2009-01-16 21:35:56

cerbie
Member
Registered: 2008-03-16
Posts: 124

Re: Strange fstab

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

#8 2009-01-16 21:52:26

jo3
Member
Registered: 2007-08-18
Posts: 112

Re: Strange fstab

That's good info to know.. beats ls -l /dev/disk/by-uuid/ big_smile

Offline

Board footer

Powered by FluxBB