Thx, but howto find the device of the whole disk?
Is it a correct way using fdisk?
Code:
scounix# fdisk
1. Display Partition Table
2. Use Entire Disk for UNIX
3. Use Rest of Disk for UNIX
4. Create UNIX Partition
5. Activate Partition
6. Delete Partition
7. Create Partition
Enter your choice or 'q' to quit: 1
Current Hard Disk Drive: /dev/rhd00
+-------------+----------+-----------+---------+---------+---------+
| Partition | Status | Type | Start | End | Size |
+-------------+----------+-----------+---------+---------+---------+
| 1 | Active | UNIX | 1 | 4444904 | 4444904 |
+-------------+----------+-----------+---------+---------+---------+
Total disk size: 4445160 tracks (256 reserved for masterboot and diagnostics)
The whole disk seems to be /dev/rhd00.
I'd like to copy MBR to a file.
BTW using:
Code:
dd if=/dev/rhd00 of=/tmp/mbr.bin bs=64k
does it copy partition table as well?
or perhaps this?
Code:
scounix# dd if=/dev/rhd00 of=/tmp/mbr.bin bs=512 count=1
1+0 records in
1+0 records out
I have two disks on a sun blade 100. I just installed a solaris8 on the first disk. The installation was successful. But the problem is now I lost all data / partition on my second hard disk.
The possible reason could be:
1. I used default web start install. During the installation I didn't... (2 Replies)
I want to modify a predefined partition on Solaris. This predefined partion has 51 GB. I want to partition it as two partition. One is 5G, another one is about
46 GB. I want to use these commands:
#format
specify disk
#partition
# modify
The system told me that ' Cannot modify disk... (1 Reply)
I have X4500 running Solaris 10. I have formatted a disk and created partition table as given below.
Specify disk (enter its number): 0
selecting c0t0d0
/dev/dsk/c0t0d0s0 is part of active ZFS pool zpool1. Please see zpool(1M).
FORMAT MENU:
disk - select a disk
... (3 Replies)
I have 40GB HD with mepis8, swap, MBR and under flags word boot.
I also have a 160 GB external with a few Linux OS, no swaps, no extended etc. I am total Linux no MS
I would feel more secure by resizing that sda1 partition and creating a /boot partition with the MBR housed there. Is that a... (1 Reply)
Hi All,
I am a linux newbie. After working with my loveable FEDORA 10 for months, i found it a bit slower. I wanted to try with slackware this time. I already had Windows XP and fedora in my 80 GB SATA disk. Now i allotted 15 GB ( SWAP + / + /home/usr ). During my installation i encountered no... (5 Replies)
I'm manually editing the partition table purely for experimenting. I did
prtvtoc /dev/dsk/c1t0d0s2 > /tmp/prtvtoc
I'm trying to split up partition 5 to make partition 6. I'm running into a cylinder boundary error on partition 6. Any clues?
# vi /tmp/prtvtoc
"/tmp/prtvtoc" 23 lines, 769... (1 Reply)
I tried to install another Linux O.S along with MS and to make two Linux's and one windows.Usually when I try this GRUB losses the ability to boot the first Linux install. It did it again. I would really like to get this first install bootable again.
Here are some facts.
-I have a rescue... (0 Replies)
Dear All,
I am using solaris 9,I want to take the backup all the partition of my system 1 by 1 and put it into tape device.
Below is the df -kh output
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d1 11G 3.4G 7.9G 31% /
/dev/md/dsk/d6 ... (4 Replies)
Hello,
I have a database called "audit_database" and I want to create two tables.
Table 1 = Table 1
Table 2 = Audit
I want to partition the Audit table into partitions grouped by month. I'm not familiar with table partitioning but doing some reading online shows that it can be done but... (4 Replies)
Discussion started by: bbbngowc
4 Replies
LEARN ABOUT NETBSD
mbrlabel
MBRLABEL(8) BSD System Manager's Manual MBRLABEL(8)NAME
mbrlabel -- update disk label from MBR label(s)
SYNOPSIS
mbrlabel [-fqrw] [-s sector] device
DESCRIPTION
mbrlabel is used to update a NetBSD disk label from the Master Boot Record (MBR) label(s) found on disks that were previously used on
DOS/Windows systems (or other MBR using systems).
mbrlabel scans the MBR contained in the very first block of the disk (or the block specified through the -s flag), then walks through every
extended partition found and generates additional partition entries for the disk from the MBRs found in those extended partitions.
Each MBR partition which does not have an equivalent partition in the disk label (equivalent in having the same size and offset) is added to
the first free partition slot in the disk label. A free partition slot is defined as one with an fstype of 'unused' and a size of zero
('0'). If there are not enough free slots in the disk label, a warning will be issued.
The raw partition (typically partition c, but d on i386 and some other platforms) is left alone during this process.
By default, the proposed changed disk label will be displayed and no disk label update will occur.
Available options:
-f Force an update, even if there has been no change.
-q Performs operations in a quiet fashion.
-r In conjunction with -w, also update the on-disk label.
-s sector Specifies the logical sector number that has to be read from the disk in order to find the MBR. Useful if the disk has remapping
drivers on it and the MBR is located in a non-standard place. Defaults to 0.
-w Update the in-core label if it has been changed. See also -r.
SEE ALSO disklabel(8), dkctl(8), fdisk(8), mbr(8)HISTORY
The mbrlabel command appeared in NetBSD 1.4.
BSD April 5, 2010 BSD