Re: newfs command failed.
- From: Amber <guxiaobo1982@xxxxxxxxx>
- Date: Wed, 13 Jun 2007 03:54:50 -0000
Then I use the following procedure to partition the new disk
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <DEFAULT cyl 1302 alt 2 hd 255 sec 63>
/pci@0,0/pci1000,30@10/sd@0,0
1. c2d0 <DEFAULT cyl 2557 alt 2 hd 128 sec 32>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
Specify disk (enter its number): 1
selecting c2d0
Controller working list found
[disk formatted, defect list found]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
Quit
format> fdisk
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to edit
the
partition table.
y
format> partition
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> print
Current partition table (original):
Total disk cylinders available: 2556 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0)
0
1 unassigned wm 0 0 (0/0/0)
0
2 backup wu 0 - 2556 4.99GB (2557/0/0)
10473472
3 unassigned wm 0 0 (0/0/0)
0
4 unassigned wm 0 0 (0/0/0)
0
5 unassigned wm 0 0 (0/0/0)
0
6 unassigned wm 0 0 (0/0/0)
0
7 unassigned wm 0 0 (0/0/0)
0
8 boot wu 0 - 0 2.00MB (1/0/0)
4096
9 alternates wm 1 - 2 4.00MB (2/0/0)
8192
partition> label
Ready to label disk, continue? y
partition> quit
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> label
Ready to label disk, continue? y
format>quit
format> quit
# newfs /dev/rdsk/c2d0p2
/dev/rdsk/c2d0p2: No such device or address
# newfs /dev/rdsk/c2d0s2
newfs: construct a new file system /dev/rdsk/c2d0s2: (y/n)? y
/dev/rdsk/c2d0s2: 10469376 sectors in 2556 cylinders of 128
tracks, 32 sectors
5112.0MB in 99 cyl groups (26 c/g, 52.00MB/g, 6400 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 106560, 213088, 319616, 426144, 532672, 639200, 745728, 852256,
958784,
9481024, 9587552, 9694080, 9800608, 9907136, 10013664, 10120192,
10226720,
10333248, 10439776
It seems I have successfully partitioned the disk, but why "newfs /dev/
rdsk/c2d0p2" failed?
.
- Follow-Ups:
- Re: newfs command failed.
- From: "Thommy M. Malmström"
- Re: newfs command failed.
- From: Tim Bradshaw
- Re: newfs command failed.
- References:
- newfs command failed.
- From: Amber
- Re: newfs command failed.
- From: Andrew Gabriel
- Re: newfs command failed.
- From: Amber
- newfs command failed.
- Prev by Date: Re: newfs command failed.
- Next by Date: Re: prodreg preferred to pkg*?
- Previous by thread: Re: newfs command failed.
- Next by thread: Re: newfs command failed.
- Index(es):
Relevant Pages
|
|