no command works after i created new partition!!!

This was my intial setup of the partition table.

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm     259 - 2666        4.70GB    (2408/0/0)  9863168
  1       swap    wu       3 -  258      512.00MB    (256/0/0)   1048576
  2     backup    wm       0 - 4091        7.99GB    (4092/0/0) 16760832
  3 unassigned    wm    2667 - 2916      500.00MB    (250/0/0)   1024000
  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    wu       1 -    2        4.00MB    (2/0/0)        8192

I created on partition of 500mb space long back and left it for future use.

3 unassigned    wm    2667 - 2916      500.00MB    (250/0/0)   1024000

Today i wanted to set a tag to it and then mounted it.

Enter partition id tag[unassigned]: usr
Enter partition permission flags[wm]:
Enter new starting cyl[2667]:
Enter partition size[1024000b, 250c, 2916e, 500.00mb, 0.49gb]:
partition> l
Ready to label disk, continue? y

partition> p
Current partition table (unnamed):
Total disk cylinders available: 4092 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm     259 - 2666        4.70GB    (2408/0/0)  9863168
  1       swap    wu       3 -  258      512.00MB    (256/0/0)   1048576
  2     backup    wm       0 - 4091        7.99GB    (4092/0/0) 16760832
  3        usr    wm    2667 - 2916      500.00MB    (250/0/0)   1024000
  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    wu       1 -    2        4.00MB    (2/0/0)        8192

# mount /dev/dsk/c0d0s3 /usr

Once i mounted it no command works.. only cd command works.. i am a newbie. can some one please tell me what mistake i did here . and is there any way to correct it.

all the main commands reside in /usr/bin (not to mention all the other stuff like libs, etc.). If you mount a new blank partition to /usr of course you will lose all the command. Try mounting the partition to some other empty directory.

oh..now i got it.. okay now when i create some new partition.. i can set my own partition tag.. is there any specific set of names that can only be kept to partition tag.?

and can correct the mess which i did by mounting /usr ?

Tag can be any one of the following values:

unassigned, boot, root, swap, usr, backup, stand, var, hone, alternates, reserved

You may also come across "public" and "private". These were used by the StorageEdge volume manager.

Thanks fpmurphy .. and as i mentioned earlier.. i created a new partition and mounted /usr into it.. after that.. i could not use any command.. can i fix this? is there anyway?

Once you mounted your new partition into /usr/, you can no longer see all the files you used to have in there. They're not deleted, they're still on disk, but all you see is the empty partition you put overtop. And without /usr/, many important libraries and programs are missing.

If you didn't put it in the mount table, you should be able to fix this just by rebooting the machine because you didn't actually destroy anything.

I'm presuming you wanted to add space to /usr? It doesn't work quite like that, you can't mount one partition on top of another partition to get one larger partition.

1 Like

Thanks i powered off by solaris box and restarted it worked again. Thanks corona688.. no i am nt trying do anything :slight_smile: first time tried to create partition :slight_smile: so it ended up like this. now fixed. Thanks all who helped me .

You can mount partitions on whatever directory you like, doesn't have to be an existing mount point or really anywhere in particular. Pick someplace safer like a directory in your homedir. :slight_smile:

1 Like

:slight_smile: i am doing lot of R & D with my vmware solaris box. will keep this forum updated with my doubts whenever i get it :slight_smile: