Solaris mount disk
Author
Discussion

pentoman

Original Poster:

4,836 posts

294 months

Wednesday 6th December 2006
quotequote all
I have installed Solaris 10 on a virtual machine on my PC.
I created a 10GB disk image file and solaris runs from it. But it only appears to be 3.5GB and now there's not enough free space left for what I wanted to run??

So I thought I'd create a new virtual disk, which I have done. However I never got the hang of this unix mount crap. It's all rubbish if you ask me. How do I mount, add a partition, and format it?

tuffer

9,013 posts

298 months

Wednesday 6th December 2006
quotequote all
man mnt

pentoman

Original Poster:

4,836 posts

294 months

Wednesday 6th December 2006
quotequote all
Thanks but only man "mount" works (not mnt).

What is the FStype?

Someone else told me to do fdisk -l (lower case L) and that was an invalid command.

I actually used old Solaris on SPARC at university but never got to grips with it.

tuffer

9,013 posts

298 months

Wednesday 6th December 2006
quotequote all

pentoman

Original Poster:

4,836 posts

294 months

Wednesday 6th December 2006
quotequote all
D'oh yep just figured that out when I tried 'ufs' and it said it's not of that fstype.

It seems the disk is partitioned, formatted as "solaris2". I just gotta work out what file system that is.

Do I need to mount each 'thingy' d0c1p0 through d0c1p7

pentoman

Original Poster:

4,836 posts

294 months

Wednesday 6th December 2006
quotequote all
Never mind, I just found where all the disk space went from the first disk! Different folders are different disk partitions. This is exciting!

Estimated chances of getting JBOSS succesfully running: 0.1%.

mph999

2,780 posts

251 months

Wednesday 6th December 2006
quotequote all

MooSchmoo

176 posts

269 months

Wednesday 6th December 2006
quotequote all
pentoman said:
Estimated chances of getting JBOSS succesfully running: 0.1%.

Surely thats a good thing

shocker-z

554 posts

249 months

Wednesday 6th December 2006
quotequote all
lol bet its really simular to the rest of unix then you can mount /hom/ to a partition and then system to a diffrent one and so on.. it got me going back when i first started linux.

pentoman

Original Poster:

4,836 posts

294 months

Thursday 7th December 2006
quotequote all
MooSchmoo said:
pentoman said:
Estimated chances of getting JBOSS succesfully running: 0.1%.

Surely thats a good thing


ooh fighting talk.
Well I think it's better than powertier which we're using now.

zumbruk

7,848 posts

291 months

Thursday 7th December 2006
quotequote all
shocker-z said:
lol bet its really simular to the rest of unix then you can mount /hom/ to a partition and then system to a diffrent one and so on..


Not quite. Solaris creates home directories on /export/home/{username}, then when you log on, it automounts your home directory on /home/{username}.

That way, your home directory can be anywhere you like.

zumbruk

7,848 posts

291 months

Thursday 7th December 2006
quotequote all
pentoman said:
Thanks but only man "mount" works (not mnt).

What is the FStype?

Someone else told me to do fdisk -l (lower case L) and that was an invalid command.


fdisk is a DOS (bletch) command.

To find out how the disk is partitioned, type "format", then select the relevant disk from the list, then "partition", then "print". It should look something like this;

Part Tag Flag Cylinders Size Blocks
0 root wm 1041 - 18920 8.59GB (17880/0/0) 18023040
1 var wm 18921 - 19489 280.05MB (569/0/0) 573552
2 backup wm 0 - 29648 14.25GB (29649/0/0) 29886192
3 swap wu 0 - 1040 512.37MB (1041/0/0) 1049328
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 home wm 19490 - 29648 4.88GB (10159/0/0) 10240272

(NOTE: I've never run Solaris in a VM on a PC. We only have Real Hardware (TM) here.)
(And PH screws up the formatting of the print - it looks better than that.)

So far as the "mount" command goes, if the FStype is "UFS", you don't need to specify it (in other words, it's just a pukka Solaris partition). Something like (from the above partition table);

mount /dev/dsk/c0t0d0s7 /home

Will work just fine. BTW, if the partition hasn't been formatted, you'll need to put a filesystem on it, like this;

newfs -m 0 /dev/rdsk/c0t0d0s7

(This will destroy the contents of the specified partition, so be careful. The "-m 0" means don't allow any head-room space before reporting "disk full" errors. Head-room is not required on non-system disks. Also note the "r" in the device name.)



Edited by zumbruk on Thursday 7th December 16:32