12-30-2010
Hi
thanks for your response, im using Ubuntu 10.4, and luckily its not my boot disk thats failed, but my secondary data HDD. Have a backup of most of it, but the newer stuff (ie my current work) is only on that disk. of which i cannot use.
disk is a 250Gb WD Scorpio formatted with a single NTFS (came out of my windows box) partition taking the entire disk
hope this helps shed some light
9 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
First time so excuse my ignorance please.
I may not be accurately describing the issue.
I have inherited a small lab mostly SUN V120s.
We lost power and are trying to recover.
Nope no backups...
The primary issue I have is 1 box is an Oracle Server.
It has 2 36Gb harddrives.
I am able to... (3 Replies)
Discussion started by: murphsr
3 Replies
2. UNIX for Dummies Questions & Answers
I'm confused. Originally I did
telinit 1
cp /dev/sda /dev/sdb
where sda is my boot disk and sdb is a USB disk. This probably copied my MBR.
Since /dev/sdb is 300GB and /dev/sda only 160GB I had a bunch of space left which I decided to experiment with by creating partitions of various... (1 Reply)
Discussion started by: siegfried
1 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I am newbie here.I want to know what is MBR,boot loader & boot strap programe.
What is procedure of loading OS in to memory.
Thanx in advance:) (1 Reply)
Discussion started by: vishwasrao
1 Replies
4. Ubuntu
Hi All,
Today when I was working on a script to generate custom wordlist. So I ran a script and the output was directed to /tmp.
The disk space was around 19 gb. While the script was running, I decided to direct the o/p file to my 1TB drive. So I broke the run using Ctrl + C.
Now when I... (4 Replies)
Discussion started by: morningSunshine
4 Replies
5. SCO
hi
How can I backup MBR an Partition Table of SCO 5.0.6? (7 Replies)
Discussion started by: ccc
7 Replies
6. Solaris
Hi All
Hope it's okay to post on this sub-forum, couldn't find a better place
I've got a 480R running solaris 8 with veritas volume manager managing all filesystems, including an encapsulated root disk (I believe the root disk is encapsulated as one of the root mirror disks has an entry under... (1 Reply)
Discussion started by: sunnyd76
1 Replies
7. Fedora
Hi,
I just built myself a new machine which has an ASUS motherboard with is UEFI based.
I noticed after I installed Fedora 17 that my sda is MBR and my sdb is GPT:
sda is a ssd drive. Should the ssd drive be GPT or is MBR okay?
sda is 60Gb drive. (3 Replies)
Discussion started by: mojoman
3 Replies
8. Solaris
Hi guys, I appreciate any help in this regard, we have lost sensitive data in the company.
One box with 2 disk mirrored and a 3ware controller handling 13 disks in a raidz2 pool. Suddenly the box restart and keeps "Reading ZFS config" for hours.
Unplugging disk by disk we isolate the disk... (3 Replies)
Discussion started by: tatxo
3 Replies
9. Hardware
Hello everyone. I have a question which I may know the answer to, I'm just looking for a confirmation. When it comes to the MBR of a hard drive, i've read in multiple sources that it's always located in the first sector of the hard drive. Is the MBR there from the factory? When I buy a new blank... (3 Replies)
Discussion started by: Lost in Cyberia
3 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)