Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

printroo(8) [minix man page]

PRINTROOT(8)						      System Manager's Manual						      PRINTROOT(8)

NAME
printroot - print the name of the root device on standard output SYNOPSIS
printroot OPTIONS
-r Print only the root device, not a full mtab line EXAMPLES
printroot # Print the name of the root device DESCRIPTION
Printroot is useful for initializing the /etc/mtab when the system is booted. It figures out what the root device is by searching /dev until it finds a block special file with the right major/minor device numbers. SEE ALSO
fstab(5), boot(8). PRINTROOT(8)

Check Out this Related Man Page

MAKEDEV(3)						   BSD Library Functions Manual 						MAKEDEV(3)

NAME
makedev, major, minor -- device number conversion SYNOPSIS
#include <sys/types.h> dev_t makedev(int major, int minor); int major(dev_t dev); int minor(dev_t dev); DESCRIPTION
The makedev() macro allows a unique device number to be generated based on its major and minor number. The major() and minor() macros can be used to obtain the original numbers from the device number dev. In previous implementations of FreeBSD all block and character devices were uniquely identified by a pair of major and minor numbers. The major number referred to a certain device class (e.g. disks, TTYs) while the minor number identified an instance within the device class. Later versions of FreeBSD automatically generate a unique device number for each character device visible in /dev/. These numbers are not divided in device classes. On FreeBSD these macros are only used by utilities that need to exchange numbers with other operating systems that may use different encod- ings for dev_t, but also applications that present these numbers to the user in a more conventional way. RETURN VALUES
The major() macro returns a device major number that has a value between 0 and 255. The minor() macro returns a device minor number whose value can span the complete range of an int. SEE ALSO
mknod(2), devname(3), devfs(5) BSD
September 28, 2008 BSD
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Samba question

I'm about to be leaving when my current contract is, though I would like to be able to do one last thing though. Ok here's the deal. Everything here is Windows :( apart from a huge Xerox printer they have which running of Unix :) The other IT blokes here (Windows people) have told the blokes in... (3 Replies)
Discussion started by: woofie
3 Replies

2. Shell Programming and Scripting

Help with calling to file for a username and password combo

Hokay...first post, and I have been doing Linux scripting for a total of 2 days now. I think I am doing pretty well, but awk and arrays(what I think I need here) is a bit above me so far. I have written a script that will take and either create or modify 5 users, and passwords. It checks... (6 Replies)
Discussion started by: cashman04
6 Replies