Professional Documents
Culture Documents
Volumes Under Ubuntu Linux
Volumes Under Ubuntu Linux
Home
About
Forum
Low graphics
Shell Scripts
RSS/Feed
UUID benefits
1 de 6 31-07-2010 04:52
How To Use UUID To Mount Partitions / Volumes ... http://www.cyberciti.biz/faq/linux-finding-using-uuid...
As a sesonded UNIX admin I have to deal with various data storage technologies
such as SAN, iSCSI, DAS, scsi disks volumes. Sometime you may need to move
storage from one device to another and updating /etc/fstab can be pain in a$$.
With UUID Linux kernel should automatically find and map (read as mount to
exact location) volumes to storage device. This saves lots of time and avoid
/etc/fstab breaks.
However, UUID may be not very useful for single desktop computer at home as
you do not have enterprise grade storage and requirements.
Open /etc/fstab:
$ sudo vi /etc/fstab
Append line as follows:
UUID=41c22818-fbad-4da6-8196-c816df0b7aa8 /disk2p2 ext3 defaults,errors=remount-ro 0 1
Save and close the file. To mount new partition immediately using /etc/fstab
2 de 6 31-07-2010 04:52
How To Use UUID To Mount Partitions / Volumes ... http://www.cyberciti.biz/faq/linux-finding-using-uuid...
type:
$ sudo mount -a
Further readings:
man pages mount, fstab, vol_id
Featured Articles:
Want to read Linux tips and tricks, but don't have time to check our blog
everyday? Subscribe to our daily email newsletter to make sure you don't miss
a single tip/tricks. Subscribe to our weekly newsletter here!
man tune2fs
Reply
3 de 6 31-07-2010 04:52
How To Use UUID To Mount Partitions / Volumes ... http://www.cyberciti.biz/faq/linux-finding-using-uuid...
Reply
Reply
I have a UBUNTU server, recently i cloned the disk using dd and kept the
second disk in box itself. yesterday i realized that because of UUID features
it generated same UUID to my /dev/sdb partitions and it looks like it is
using the mix of first disk and second disk.
Reply
as of ubuntu 10.04 i found out that vol_id does not exist anymore
( https://bugs.launchpad.net/ubuntu/+source/unetbootin/+bug/376339 ) .
Reply
Leave a Comment
Name *
E-mail *
Website
4 de 6 31-07-2010 04:52
How To Use UUID To Mount Partitions / Volumes ... http://www.cyberciti.biz/faq/linux-finding-using-uuid...
Tagged as: /etc/fstab, data storage technologies, ext3 uuid, filesystem, iscsi, linux kernel, linux uuid,
osf, partitions, scsi disks, storage device, sudo command, Universally Unique Identifie, uuid, vi
command, vol_id command
Previous FAQ: Alarm clock: How To Set Timeout For A Shell Command
Next FAQ: How To Limit The Growth Of UNIX / Linux Log Files
Search
5 de 6 31-07-2010 04:52
How To Use UUID To Mount Partitions / Volumes ... http://www.cyberciti.biz/faq/linux-finding-using-uuid...
Sponsored links
Save now with the best deals from CDW. Click here to save on desktops,
notebooks, LCDs and more. Shop now!
Related FAQs
6 de 6 31-07-2010 04:52