Re: newfs command failed.



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?

.



Relevant Pages

  • Re: Panasonic HD Recorders - What disk format?
    ... The earlier part of this is more about what may be Linux partitioning, ... might be possible to present the recorder with a larger disk already ... Most DOS/Windows utilities such as FDisk, Ghost, and Partition Magic Pro ... prompts to format it. ...
    (alt.os.linux)
  • Re: Cant find Hard disk
    ... Computer> Manage> Computer Management> Disk Management. ... Now you must partition and format your new drive. ...
    (microsoft.public.windowsxp.hardware)
  • SUMMARY: Restoring a normal VTOC after zfs has been on the disk
    ... Format> label ... previously used with full disk zfs partitions. ... Does anyone know how I can restore the disk to a normal partition table? ...
    (SunManagers)
  • Re: setting up a new hard drive as drive D
    ... I want to add a second hard disk as IDE drive D but I cannot see any ... You will partition & format your second HD using XP's Disk Management ... move the problem HD to another IDE connector. ...
    (microsoft.public.windowsxp.hardware)
  • Re: How do I label a disk?
    ... now I am going to definitely install solaris but I have this ... > to a dead disk. ... I tried to label it with the format command: ... format> partition ...
    (comp.unix.solaris)