Try the non-interactive mode of fdisk:
fdisk -W /tmp/partitions.txt /dev/rdsk/c4t0d0p0 # Dump the disk layout
< Edit /tmp/partitions.txt, changing the 4th partition from the linux
native (131) value to the Solaris2 value (191). >
fdisk -F /tmp/partitions.txt /dev/rdsk/c4t0d0p0 # Apply the new layout
to the disk
Naturally, all data will be lost (I mention this more to protect anyone
who finds this answer later; I figure you're well aware of the fact that
the given partition will lose its data).
- Keith
On 05/ 3/10 08:59 AM, E. Mike Durbin wrote:
Hi.
I'm trying to rebuild a failed disk on my laptop.
But FDISK won't let me change the partition ID !!
# fdisk /dev/rdsk/c4t0d0p0
Total disk size is 60801 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 IFS: NTFS 0 25 26 0
2 IFS: NTFS 25 9713 9689 16
3 EXT-DOS 9714 16762 7049 12
4 Linux native 16763 60800 44038 72
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuration)
I want to change partition 4 to Solaris2, but have no option to do
so. And GParted
only knows about ext2/ext3, and wants to format the partition, not
just change the ID.
Do I have to boot Linux to do this?
emike
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org