01-25-2007
Yes, you did.
You need to label the disk after making changes.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, all you unix people. I am a pretty advanced windows user, but I am curious about unix. Is there any reason I should attempt to acquire some form of unix for my home computer system? What sort of things is unix useful for? Unix is open source, right? Assuming that to be the case, I infer that... (3 Replies)
Discussion started by: BoneMalone
3 Replies
2. Shell Programming and Scripting
I think my script is working but i am trying to understand while I am tracing to see if it's realli working..
can somebody please comment.. also. is there different way to write this in shell?
sh -x findbiggestnum 1 2 3
+
big=0
+
big=1
+
big=2
+
big=3
+ echo 3
3
big=0
... (3 Replies)
Discussion started by: hankooknara
3 Replies
3. UNIX for Dummies Questions & Answers
Hello everybody;
I am new to unix.
Thanks for creating such a informative forum,
I wanted to know that how can i list top 10 files in my current dir. which were accesed recently by using ls command.
Thank You. (4 Replies)
Discussion started by: satish_1983
4 Replies
4. Shell Programming and Scripting
Hi all, I am needing a bash shell script to generate a list of the top 5 users using the most disk space. I am thinking that the du command would be used somehow but I am at a loss. Can anyone help? Thanks! (3 Replies)
Discussion started by: sytemx
3 Replies
5. UNIX for Dummies Questions & Answers
if i am in /tmp file, and i have a few DIRs under /tmp. i want to find the biggest and most recent files (from 7 days ago) in /tmp and subfolders. (3 Replies)
Discussion started by: tjmannonline
3 Replies
6. Shell Programming and Scripting
Hi ,
I need to get a list of name and size , of the the top 5 biggest file under the
current directory , in decending order
Thank You (4 Replies)
Discussion started by: yoavbe
4 Replies
7. HP-UX
Hi!
I'm using Unix HP
I'm looking for a command which find the 20 (less or more) biggest files on / but which exclude every other files system
Thanks;) (7 Replies)
Discussion started by: Castelior
7 Replies
8. UNIX for Dummies Questions & Answers
Hello, can you please help me writing a command that would output the biggest files on my system from biggest to smallest? I want this to print only the files, not the directories.
I have tried
du -a ~ | sort -nr | head -10
However, this also prints out all the directories - which I do... (8 Replies)
Discussion started by: tonydaniels1980
8 Replies
9. Shell Programming and Scripting
# fdisk -l /dev/sda
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk... (9 Replies)
Discussion started by: yanglei_fage
9 Replies
10. Shell Programming and Scripting
please help,
file1.txt
id,week,ict,outgoing_call,blackberry_problem,gprs_problem,sms_problem,flash_problem,sinyal_lemah,blankspot,incoming_call,mms_problem,kualitas_suara,drop_call,data_probl
em,cross_connect,connect_no_voice,vas_problem
,1,sumbagsel,96,127,52,70,28,29,21,18,18,8,5,3,0,0,3... (1 Reply)
Discussion started by: radius
1 Replies
LEARN ABOUT OSF1
createlabel
createlabel(3) Library Functions Manual createlabel(3)
NAME
createlabel - Creates a disk label structure for a disk device
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <sys/types.h>
#include <sys/disklabel.h>
int createlabel( char *devname, char *name, struct disklabel *disk, char *boot, int boot_len);
PARAMETERS
Specifies the device special file name of the device. Specifies the name entry in the /etc/disktab file that is to be used for the label
information. Otherwise, specify NULL to indicate that the name entry either is not in the /etc/disktab file, or, if it is, that it should
be ignored. Points to the disk label structure that is filled in with the returned disk description on successful completion of the func-
tion. Points to the buffer that the function may use to contain the (optional) primary and secondary bootstrap names for the disk label.
Specifies the length of the boot buffer. The value must be set to the value of the BUFSIZ constant.
DESCRIPTION
The function fills in the disk label structure pointed to by the disk parameter. The resulting disk label can then be written to the disk
in order to label it.
The function queries the device, using the devname parameter, to obtain the disk's geometry, capacity, and any default partition informa-
tion.
The function checks the name parameter. If name is non-null, the function looks for an entry in the /etc/disktab file that matches the
name string and initializes the disk label structure from that entry. The function then overrides the device data and initializes the disk
label structure from the entry in the /etc/disktab file.
If the name string is NULL, or has no matching entry in the /etc/disktab file, the function queries the device (using the devname parame-
ter) to obtain the device's name string. The function then looks for an entry in the /etc/disktab file that matches that name string, and
if it finds a match, initializes the disk label structure from that entry.
If an /etc/disktab entry indicates that the device has a dynamic geometry, the function queries the device (using the devname parameter) to
obtain the disk's true geometry and capacity and to override any value given in an /etc/disktab entry associated with the device. In this
case, any -1 lengths encountered in the partition specifications for the entry are replaced by a value equal to the device's total capacity
minus the starting offset of the partition.
RETURN VALUES
Upon successful completion of the createlabel function, a value of 0 is returned and the contents of the disk label structure are updated.
Upon error, a value of -1 is returned and errno is set to [EINVAL].
ERRORS
Either disk or boot is NULL, or boot_len is not equal to BUFSIZ.
FILES
Table of disk partition sizes for supported disks.
RELATED INFORMATION
Commands: disklabel(8)
Functions: getdiskbyname(3).
Files: disklabel(4), disktab(4) delim off
createlabel(3)