Hi everyone,
I have an external hard drive and I accidentally deleted the partition table.
Can I restore my files?
If I try to run the f-disk command this is what it says
Any ideas?
:confused: Hello,
In my Solaris system, I want to resize my mounted home directory slice.
1.I unmount the slice, #umount /export/home
2.Resize the directory #format>partition>
3.#format>label
4.#format>Cannot label disk when partitions are in use as described.
So, How can label ?
Thanks (2 Replies)
Hi Fellows,
I am trying to mirror 2 identical disks on a SUN Ultra 10 machines (with new installation of Solaris 8). In the process, I found 2 issues:
1. prtvtoc /dev/rdsk/c0t0d0s0 | fmthard -s - /dev/rdsk/c0t1d0s0
Result: Disk partitions between the 2 disks do not match up.
2. manually... (2 Replies)
I 'm having problem in importing a zfs pool was getting error device missing and upon further digging found that labels on my disk for zpool are missing
Does anyone know how to recover from it ?
root@essapl020-u006 # zdb -l /dev/dsk/emcpower0c
--------------------------------------------... (0 Replies)
Hello,
I'm brand new to Sun/Solaris.
I have a Sun Blade 150, with SunOS 5.8.
I wanted to make a backup to prevent future data loss, so I put the disk in a normal PC with Windows XP to try to make a backup with Norton Ghost, the disk was detected, but not the file volume, so I place the disk... (6 Replies)
Hi there,
I'm wondering how to display a disk label (why not edit it but I don't need that yet).
I found several commands on forums like disklabel and diskinfo but I can't find them on my system and don't know the package they belong to.
Can you help me?
Cheers
Santiago (2 Replies)
I have a external HD that I can't seem to open. When I try to open it with gparted it says unrecognized disk. When I run gparted from the terminal this is what it says.
~ $ sudo gparted
======================
libparted : 2.2
======================
/dev/sdb: unrecognised disk label
When I... (18 Replies)
Hi there,
I am trying to do root volume mirroring on SunFire V210 server. I have two disks in it.First one is c1t0do and second one is c1t1do. Both disks already have partitions in them so I am deleting the partitions of second disk(c1t1do) using format command and selecting cylinder start 0... (2 Replies)
Hi Guys,
Do you have any script to label a disk automatically.
It is part of my script but I am not able to find solution to label this inside script without user intervention. (2 Replies)
I have a B.11.31 U ia64 system where I swremove the disk driver "SerialSCSI-00 B.11.31.1303 PCI-X/PCI-E SerialSCSI" (by mistake). afterwards the system won;t boot because of the missing disk drivers. I'm trying to recover my kernel by using the image HP-ux_11_31_disc_1.iso
Run an Expert... (1 Reply)
Dear Community!
i try to instaled the sco 6 in hp proliant ML350g8
but unsucces,
the trouble when i do instaled it undetected hardisk
please help me
:(:o (7 Replies)
Discussion started by: mnr
7 Replies
LEARN ABOUT PLAN9
prep
PREP(8) System Manager's Manual PREP(8)NAME
prep, format - prepare hard and floppy diskettes
SYNOPSIS
disk/prep [ -ra ] special [ type ]
disk/format [ -t type ] [ -f ] [ -d ] [ -b bfile ] [ -c csize ] [ -l label ] drive [ files ... ]
DESCRIPTION
A partition table is stored on a hard disk to specify the division of the physical disk into a set of logical units. On Plan 9 the parti-
tion table is a list of triples: name, starting sector, and ending sector. The kernel fabricates the first two partitions, disk and parti-
tion; the disk partition records the starting and ending sectors for the whole disk, and the partition partition, typically the last sector
on the disk, holds the partition table itself.
Special is the maximal prefix of names of the logical units on the disk, for example #w/hd0. Prep reads and prints the associated parti-
tion table and then enters a simple interactive mode to control editing the table.
The options are:
-r (read only) prohibits writing the table on disk.
-a automatically create default partitions if no partition table already exists. These include partitions for DOS, a boot kernel, an
NVRAM substitute, a kfs(4) file system, and, if room remains, a swap partition.
Format prepares for use the floppy diskette in the disk file named drive, for example /dev/fd0disk. The options are:
-f Do not physically format the disc. Used to install an MS-DOS filesystem on a previously formatted disc. With this option, drive can
be a plain file.
-t specify a density and type of disk to be prepared. The possible types are:
31/2DD 31/2" double density, 737280 bytes
31/2HD 31/2" high density, 1474560 bytes
51/4DD 51/4" double density, 368640 bytes
51/4HD 51/4" high density, 1146880 bytes
The default is the highest possible on the device, unless -f is used, in which case the default is 31/2HD.
-d add MS-DOS parameter block, file access table (FAT), and root directory to the start of the floppy.
The remaining options have effect only when -d is specified:
-b use the contents of bfile as the bootstrap block installed in sector 0.
-c use a DOS cluster size of csize sectors when creating the DOS FAT.
-l add a label when creating the DOS parameter block.
Again under -d, any files listed are added, in order, to the root directory of the MS-DOS filesytem. The files are contiguously allocated
and created with the READONLY attribute set.
The file /sys/src/boot/pc/bb is an example of a suitable bfile to make the disk a boot disk. It gets loaded by the BIOS at 0x7C00, reads
the root directory into address 0x7E00, and looks at the first root directory entry. If that file is called B.COM, it uses single sector
reads to load the file into address 0x10000 and then jumps to the loaded file image.
EXAMPLE
Create a Plan 9 boot floppy on a previously formatted diskette:
disk/format -f -b bb -d /dev/fd0disk /386/b.com
SOURCE
/sys/src/cmd/disk/prep.c
/sys/src/cmd/disk/format.c
/sys/src/boot/pc/bb.s
SEE ALSO floppy(3), wren(3), b.com(8)PREP(8)