Unix and Linux Discussions Tagged with hard disk |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
9 |
8,699 |
AIX |
|
|
|
8 |
8,468 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
4,215 |
Shell Programming and Scripting |
|
|
|
2 |
10,885 |
Red Hat |
|
|
|
6 |
4,691 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
12,573 |
Solaris |
|
|
|
5 |
5,126 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,900 |
IT Security RSS |
|
|
|
0 |
1,571 |
OS X Support RSS |
|
|
|
2 |
9,981 |
HP-UX |
|
|
|
1 |
7,856 |
Filesystems, Disks and Memory |
|
|
|
1 |
11,803 |
SCO |
|
|
|
10 |
4,852 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,892 |
UNIX and Linux RSS News |
|
|
|
3 |
6,054 |
Red Hat |
|
|
|
1 |
4,954 |
Solaris |
|
|
|
1 |
2,723 |
Shell Programming and Scripting |
|
|
|
2 |
6,706 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
6,260 |
Filesystems, Disks and Memory |
|
|
|
1 |
2,716 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,317 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,136 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
8,260 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
4,873 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,932 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,946 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
6,336 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
7,592 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,040 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,759 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
54,441 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,635 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,077 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
7,916 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,651 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,812 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
10,924 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,640 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,680 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
6,121 |
UNIX for Dummies Questions & Answers |
WREN(3) Library Functions Manual WREN(3)
NAME
wren, ata - hard disk interface
SYNOPSIS
bind #H[drive] /dev
bind #w[target[.lun]] /dev
/dev/hd0disk
/dev/hd0partition
/dev/sd0disk
/dev/sd0partition
...
DESCRIPTION
The hard disk interfaces (wren, #w, is a SCSI disk; ata, #H, is an IDE or ATA disk) serve a one-level directory giving access to the hard
disk partitions. The parameter to attach defines the numerical SCSI target and logical unit number or the IDE drive number to access.
Both default to zero.
Each partition name is prefixed by hd and the numeric drive identifier. The partition always exists and covers the entire disk. The size
of each partition as reported by stat(2) is the number of bytes in the partition, so the size of is the size of the entire disk.
The partition also always exists; it is the last block on the disk for SCSI, second to last for IDE. If it contains valid partition data,
those partitions will be visible as well. Every time the device is bound, the partitions are updated to reflect any changes in the parti-
tion file.
The format of the partition file is the string
plan9 partitions
on a line, followed by partition specifications, one per line, consisting of a name and textual strings for the block start and limit for
each partition on the disk.
The program prep(8) writes the partition table for the disk; its use is preferred to writing it by hand.
SEE ALSO
prep(8), scsi(3)
SOURCE
/sys/src/9/port/devwren.c
/sys/src/9/pc/devata.c
WREN(3)