Solaris mount disk
Discussion
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?
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?
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.
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.
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
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



