Sponsored Content
Full Discussion: Find Partition/Slice UUID
Operating Systems BSD Find Partition/Slice UUID Post 302941758 by AntumDeluge on Monday 20th of April 2015 11:53:00 PM
Old 04-21-2015
Thanks, I'll try that out.

--- Edit ---

Apparently, busybox does not have blkid on FreeBSD. I did find it though, in the Port/Package sysutils/e2fsprogs.

It's a bit different though. Executing the command blkid without any arguments doesn't print anything. I have to point it to a device or devices:
Code:
$ blkid /dev/ad*
/dev/ad4s1: LABEL="GRUB" UUID="a01cbff7-216d-49ab-87ac-5f3e2fa91859" TYPE="ext2" 
/dev/ad4s3: UUID="5BBEAFDF7079F5E8" LABEL="Windows" TYPE="ntfs" 
/dev/ad4s5: LABEL="Debian" UUID="f56b8de1-3937-d001-e063-88e13937d001" TYPE="ext4" 
/dev/ad4s6: LABEL="Shared" UUID="3a5ae84b-66c1-4c0b-a2d5-9546a20d7111" TYPE="ext2" 
/dev/ad4s7: UUID="9a4906bd-aae0-4226-a604-001db362121c" TYPE="swap" 
/dev/ad8s1: UUID="01CDAAC34C08EB50" LABEL="Data" TYPE="ntfs" 
/dev/ada0s1: LABEL="GRUB" UUID="a01cbff7-216d-49ab-87ac-5f3e2fa91859" TYPE="ext2" 
/dev/ada0s3: UUID="5BBEAFDF7079F5E8" LABEL="Windows" TYPE="ntfs" 
/dev/ada0s5: LABEL="Debian" UUID="f56b8de1-3937-d001-e063-88e13937d001" TYPE="ext4" 
/dev/ada0s6: LABEL="Shared" UUID="3a5ae84b-66c1-4c0b-a2d5-9546a20d7111" TYPE="ext2" 
/dev/ada0s7: UUID="9a4906bd-aae0-4226-a604-001db362121c" TYPE="swap" 
/dev/ada1s1: UUID="01CDAAC34C08EB50" LABEL="Data" TYPE="ntfs"


Last edited by AntumDeluge; 04-21-2015 at 01:17 AM.. Reason: Found answer
These 2 Users Gave Thanks to AntumDeluge For This Post:
 

9 More Discussions You Might Find Interesting

1. Solaris

Find a Fat32 partition under solaris 10 x86

Hello, I use Sun Solaris 10 under a x86 computer, and I want to mount a Fat32 partition who are stored in the same disk with the UFS filesystem. But, before mount this partition, I need to know is location in /dev/dsk Because there are a lot of file "c0t0d0" etc..., and I didn't find my... (4 Replies)
Discussion started by: willits
4 Replies

2. Solaris

mirroring the boot slice (slice 8) on x86

Hi there I am about to mirror a Solaris 10 x86 box (SunFire X4100) onto a secondary disk using svm (current system is one disk). My question is this, on X86 boxes there is a slice 8 defined as boot partition (and also a slice 9, dunno what its used for tho). Do I need to mirror this boot slice... (0 Replies)
Discussion started by: hcclnoodles
0 Replies

3. UNIX for Dummies Questions & Answers

slice & partition???

:confused: Hello, What is the difference between slice and partition on Solaris world? Regards (4 Replies)
Discussion started by: XNOR
4 Replies

4. Linux

How to give UUID to a swap partition?

Dear Folks Is there anyway to give a UUID to a swap partition? mkswap on CentOS 5 (util-linux-2.13-0.45.el5_1.1) appears to override this option ;-( # swapoff -a # mkswap -L swap1 /dev/sda3 Setting up swapspace version 1, size = 4293591 kB LABEL=swap1, no uuid And there's no... (3 Replies)
Discussion started by: Santi
3 Replies

5. UNIX for Advanced & Expert Users

Generate UUID for a host

Hello Experts, Is there a way to generate Universally Unique identifiers on all Unix flavours such as Solaris, RHELinux,Suse Linux, MacOS,HP UX etc? If i can get a system command or a system call or an algorithm/script/program to generate a unique identifier, it will be helpful. Thanks in... (1 Reply)
Discussion started by: GajendraSharma
1 Replies

6. UNIX for Dummies Questions & Answers

How to find the partition types in linux

How do we find the partition type in Linux? df -T will give me the mounted partition types like ufs, ext3 etc. How do I find out for say a newly added disk to the system? Please advise... Thanks (2 Replies)
Discussion started by: lubu
2 Replies

7. Ubuntu

How to find unallocated partition.

HI, I'm trying to find the unallocated space in console mode from my hard disk. I tried " df-hk and fdisk" commands, but either of the commands are not listing out the unallocated space. It's just listing the existing partition. please let me know how to list that and partition that in text mode. (3 Replies)
Discussion started by: Prabhu.Are
3 Replies

8. Solaris

Trouble creating a disk partition slice (EFI)

Hi all, I am using SPARC Solaris 11.1 with EFI labelled disks. I am new to ZFS file systems and slightly stuck when trying to create a partition (slice) on one of my LUNs. EFI labels use sectors and blocks and I am not sure how exactly it works. From here I can try and create a... (2 Replies)
Discussion started by: selectstar
2 Replies

9. Solaris

Find device ID for partition in Solaris 11?

I have a laptop I'm setting up to multi-boot between Win 7, Solaris 11, Ubuntu 14.04, and CentOS 7. I have a common FAT32 partition for all of them to save data to. I'm less familiar with Solaris and haven't used it in years, and am really struggling :-) 'format' says: AVAILABLE DISK... (5 Replies)
Discussion started by: jnojr
5 Replies
jfs_tune(8)						  Set JFS file system parameters.					       jfs_tune(8)

NAME
jfs_tune - adjust tunable file system parameters on JFS SYNOPSIS
jfs_tune [options] device DESCRIPTION
jfs_tune adjusts tunable parameters on a Linux JFS file system or external journal. jfs_tune must be run as root. device is the special file name corresponding to the actual device (e.g. /dev/hdb1) on which a JFS file system or JFS external journal has been created. OPTIONS
-J device=external-journal Attach the JFS external journal located on external-journal to the JFS file system on device. The external journal must already have been created using the command. More than one file system may share the same external jour- nal. mkfs.jfs -J journal_dev external-journal Attach the external journal to the file system by using the command jfs_tune -J device=external-journal device Instead of specifying a device name directly, external-journal can also be specified by either LABEL=label or UUID=UUID (Use jfs_tune -l device to display a journal device's volume label and UUID.) -l List the contents of the JFS file system or external journal superblock that resides on device. -L volume-label Set the volume label of the JFS file system or external journal. JFS labels can be at most 16 characters long; if volume-label is longer than 16 characters, jfs_tune will truncate it and print a warning. The volume label can be used by mount(8), fsck(8), and /etc/fstab(5) (and possibly others) by specifying LABEL=volume_label instead of a block special device name like /dev/hda5. -U UUID Set the universally unique identifier (UUID) of the file system or external journal device to UUID. The format of the UUID is a series of hex digits separated by hyphens, like this: "c1b9d5a2-f162-11cf-9ece-0020afc76f16". The UUID parameter may also be one of the following: clear clear the file system UUID random generate a new randomly-generated UUID time generate a new time-based UUID The UUID may be used by mount(8), fsck(8), and /etc/fstab(5) (and possibly others) by specifying UUID=uuid instead of a block spe- cial device name like /dev/hda1. See uuidgen(8) for more information. -V Print version information and exit (regardless of any other chosen options). EXAMPLES
Set a randomly-generated UUID for the JFS file system on the 3rd partition of the 2nd hard disk, and view the resultant superblock: jfs_tune -l -U random /dev/hdb3 Attach an already existing external journal on a device labeled JFSLog to a JFS file system on /dev/hda8: jfs_tune -J device=LABEL=JFSLog /dev/hda8 REPORTING BUGS
If you find a bug in JFS or jfs_tune, please report it via the bug tracking system ("Report Bugs" section) of the JFS project web site: http://jfs.sourceforge.net/ Please send as much pertinent information as possible including any error messages resulting from running jfs_tune. SEE ALSO
jfs_fsck(8), jfs_mkfs(8), jfs_fscklog(8), jfs_logdump(8), jfs_debugfs(8) AUTHOR
Barry Arndt (barndt@us.ibm.com) jfs_tune is maintained by IBM. See the JFS project web site for more details: http://jfs.sourceforge.net/ October 28, 2002 jfs_tune(8)
All times are GMT -4. The time now is 10:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy