mounting confusion

mounting confusion

Post by keith murp » Fri, 02 Nov 2001 02:41:50



i have 2 2-gb drives.  i had thought i mounted the main one at "/" and
the other at "/usr2/"   my problem is that my disk is supposedly full,
but i don't think it's possible.

parker% df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/proc                      0       0       0     0%    /proc
/dev/dsk/c0t3d0s0     481302  412224   20948    96%    /
/dev/dsk/c0t3d0s2     779813  740718       0   100%    /usr
fd                         0       0       0     0%    /dev/fd
swap                  492876      12  492864     1%    /tmp

it looks like it mounted / on one and /usr on the other... maybe...
please help!

thanks,
keith
(chaos421 at hotmail dot com)

 
 
 

mounting confusion

Post by keith murph » Fri, 02 Nov 2001 04:12:51


parker# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c0t1d0 <Seagate ST41650N cyl 2523 alt 2 hd 15 sec 98>  disk 2

       1. c0t3d0 <Seagate ST41650N cyl 2523 alt 2 hd 15 sec 98>

parker# more /etc/vfstab
#device         device          mount           FS      fsck    mount  
mount
#to mount       to fsck         point           type    pass    at boot
options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t3d0s1       -       -       swap    -       no      -
/dev/dsk/c0t3d0s0       /dev/rdsk/c0t3d0s0      /       ufs     1      
no      
-
/dev/dsk/c0t3d0s2       /dev/rdsk/c0t3d0s2      /usr    ufs     1      
no      
-
swap    -       /tmp    tmpfs   -       yes     -

thanks for the help!

Keith

Quote:>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<


regarding Re: mounting confusion:


> #   i have 2 2-gb drives.  i had thought i mounted the main one at "/"
and
> #   the other at "/usr2/"   my problem is that my disk is supposedly
full,
> #   but i don't think it's possible.
> #
> #   parker% df -k
> #   Filesystem            kbytes    used   avail capacity  Mounted on
> #   /proc                      0       0       0     0%    /proc
> #   /dev/dsk/c0t3d0s0     481302  412224   20948    96%    /
> #   /dev/dsk/c0t3d0s2     779813  740718       0   100%    /usr
> #   fd                         0       0       0     0%    /dev/fd
> #   swap                  492876      12  492864     1%    /tmp
> #
> #   it looks like it mounted / on one and /usr on the other... maybe...
> #   please help!
> Your second disk is not mounted.
> The output shows two slices (s0,s2) from the same disk mounted.
> Furthermore, by convention, s2 *is* the entire disk.
> You are mounting the wrong partition as /usr.
> Show us the "p,p" output from 'format' for both your disks.
> Let's see /etc/vfstab too.


 
 
 

mounting confusion

Post by keith murph » Fri, 02 Nov 2001 04:32:19


parker# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c0t1d0 <Seagate ST41650N cyl 2523 alt 2 hd 15 sec 98>  disk 2

       1. c0t3d0 <Seagate ST41650N cyl 2523 alt 2 hd 15 sec 98>

parker# more /etc/vfstab
#device         device          mount           FS      fsck    mount  
mount
#to mount       to fsck         point           type    pass    at boot
options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t3d0s1       -       -       swap    -       no      -
/dev/dsk/c0t3d0s0       /dev/rdsk/c0t3d0s0      /       ufs     1      
no      
-
/dev/dsk/c0t3d0s2       /dev/rdsk/c0t3d0s2      /usr    ufs     1      
no      
-
swap    -       /tmp    tmpfs   -       yes     -

thanks for the help!

keith

Quote:>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<


regarding Re: mounting confusion:


> #   i have 2 2-gb drives.  i had thought i mounted the main one at "/"
and
> #   the other at "/usr2/"   my problem is that my disk is supposedly
full,
> #   but i don't think it's possible.
> #
> #   parker% df -k
> #   Filesystem            kbytes    used   avail capacity  Mounted on
> #   /proc                      0       0       0     0%    /proc
> #   /dev/dsk/c0t3d0s0     481302  412224   20948    96%    /
> #   /dev/dsk/c0t3d0s2     779813  740718       0   100%    /usr
> #   fd                         0       0       0     0%    /dev/fd
> #   swap                  492876      12  492864     1%    /tmp
> #
> #   it looks like it mounted / on one and /usr on the other... maybe...
> #   please help!
> Your second disk is not mounted.
> The output shows two slices (s0,s2) from the same disk mounted.
> Furthermore, by convention, s2 *is* the entire disk.
> You are mounting the wrong partition as /usr.
> Show us the "p,p" output from 'format' for both your disks.
> Let's see /etc/vfstab too.

 
 
 

mounting confusion

Post by keith murph » Fri, 02 Nov 2001 05:15:55


:::i selected 0
Volume:  disk 2
Current partition table (original):
Total disk cylinders available: 2523 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0 - 2522        1.77GB    (2523/0/0) 3708810
  1 unassigned    wu       0               0         (0/0/0)          0
  2 unassigned    wm       0               0         (0/0/0)          0
  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

:::i selected 1
Current partition table (original):
Total disk cylinders available: 2523 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0 -  696      500.29MB    (697/0/0)  1024590
  1       swap    wu     697 - 1393      500.29MB    (697/0/0)  1024590
  2        usr    wm    1394 - 2522      810.37MB    (1129/0/0) 1659630
  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

Quote:> I'm tempted to say, "Back away from the system now...".

Gee... thanks.

What i really want is / on the first disk, and /usr2 on the second disk.  
Help!

Thanks again,
keith

Quote:>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<


regarding Re: mounting confusion:


> #   parker# format
> #   Searching for disks...done
> #
> #
> #   AVAILABLE DISK SELECTIONS:
> #          0. c0t1d0 <Seagate ST41650N cyl 2523 alt 2 hd 15 sec 98>  disk 2

> #          1. c0t3d0 <Seagate ST41650N cyl 2523 alt 2 hd 15 sec 98>

> Then select both disks, one at a time, then type 'p', then type 'p', post

it.
Quote:> #
> #   parker# more /etc/vfstab
> #   #
> #   /dev/dsk/c0t3d0s0       /dev/rdsk/c0t3d0s0      /       ufs     1
> #   /dev/dsk/c0t3d0s2       /dev/rdsk/c0t3d0s2      /usr    ufs     1
> Yeah, there's no reference to 'c0t1d0'.
> You're not mounting it.
> I'm tempted to say, "Back away from the system now...".

 
 
 

mounting confusion

Post by Robert Sherma » Fri, 02 Nov 2001 05:33:44



> parker# format
> Searching for disks...done

> AVAILABLE DISK SELECTIONS:
>        0. c0t1d0 <Seagate ST41650N cyl 2523 alt 2 hd 15 sec 98>  disk 2

>        1. c0t3d0 <Seagate ST41650N cyl 2523 alt 2 hd 15 sec 98>

>> #
>> #   parker% df -k
>> #   Filesystem            kbytes    used   avail capacity  Mounted on
>> #   /proc                      0       0       0     0%    /proc
>> #   /dev/dsk/c0t3d0s0     481302  412224   20948    96%    /
>> #   /dev/dsk/c0t3d0s2     779813  740718       0   100%    /usr
>> #   fd                         0       0       0     0%    /dev/fd
>> #   swap                  492876      12  492864     1%    /tmp
>> #
>> #   it looks like it mounted / on one and /usr on the other... maybe...
>> #   please help!

so you know what is going on, here are the basics on disk naming conventions:

/dev/dsk/c0t3d0s0 refers to:
(c)ontroller 0
(t)arget 3
(d)isk 0
(s)lice 0

when you lay out a single disk, typically slice 0 is root, slice 1 is swap,
slice 2 is the entire disk, slice 3 is /export, slice 4 is /export/swap,
slice 5 is /opt, slice 6 is /usr, and
slice 7 is /export/home. you do not mount things on slice 2...it is
really only used for backups and such.

these are just conventions...you do not have to partition your disk this way,
and in most cases dont need to (especially if you have more than one
disk)...but partitioning is done for ease of upgrades,
backups, speed, and to isolate filesystems.

how you partition really depends on your needs and the system...
if this is going to be
a workstation, all you may need is /, /var, and swap on thefirst drive,
and /export/home on the second drive, like this:

/dev/dsk/c0t3d0s0       /
/dev/dsk/c0t3d0s1       swap
/dev/dsk/c0t3d0s5       /var
/dev/dsk/c0t1d0s0       /export/home

for more info:
man mount
man filesytem
man sd
man format
man newfs

that should get you going.

--
robert sherman
css, cee
georgia institute of technology
atlanta, ga, usa

 
 
 

mounting confusion

Post by keith murph » Fri, 02 Nov 2001 05:43:48


Thank you very much for the info.

So am i totally screwed now?  What i mean is, will i have to start over?  
Or is there a way to proceed without losing data on the disks?

keith

Quote:>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<


regarding Re: mounting confusion:


> > parker# format
> > Searching for disks...done

> > AVAILABLE DISK SELECTIONS:
> >        0. c0t1d0 <Seagate ST41650N cyl 2523 alt 2 hd 15 sec 98>  disk 2

> >        1. c0t3d0 <Seagate ST41650N cyl 2523 alt 2 hd 15 sec 98>

> >> #
> >> #   parker% df -k
> >> #   Filesystem            kbytes    used   avail capacity  Mounted on
> >> #   /proc                      0       0       0     0%    /proc
> >> #   /dev/dsk/c0t3d0s0     481302  412224   20948    96%    /
> >> #   /dev/dsk/c0t3d0s2     779813  740718       0   100%    /usr
> >> #   fd                         0       0       0     0%    /dev/fd
> >> #   swap                  492876      12  492864     1%    /tmp
> >> #
> >> #   it looks like it mounted / on one and /usr on the other... maybe...
> >> #   please help!
> so you know what is going on, here are the basics on disk naming

conventions:

- Show quoted text -

Quote:> /dev/dsk/c0t3d0s0 refers to:
> (c)ontroller 0
> (t)arget 3
> (d)isk 0
> (s)lice 0
> when you lay out a single disk, typically slice 0 is root, slice 1 is
swap,
> slice 2 is the entire disk, slice 3 is /export, slice 4 is /export/swap,
> slice 5 is /opt, slice 6 is /usr, and
> slice 7 is /export/home. you do not mount things on slice 2...it is
> really only used for backups and such.
> these are just conventions...you do not have to partition your disk this
way,
> and in most cases dont need to (especially if you have more than one
> disk)...but partitioning is done for ease of upgrades,
> backups, speed, and to isolate filesystems.
> how you partition really depends on your needs and the system...
> if this is going to be
> a workstation, all you may need is /, /var, and swap on thefirst drive,
> and /export/home on the second drive, like this:
> /dev/dsk/c0t3d0s0     /
> /dev/dsk/c0t3d0s1     swap
> /dev/dsk/c0t3d0s5     /var
> /dev/dsk/c0t1d0s0     /export/home
> for more info:
> man mount
> man filesytem
> man sd
> man format
> man newfs
> that should get you going.
> --
> robert sherman
> css, cee
> georgia institute of technology
> atlanta, ga, usa

 
 
 

mounting confusion

Post by Jesse Hard » Fri, 02 Nov 2001 06:19:34


This is only one disk and the three slices that are setup, looks like
you have 1.75 gigs configured. If you type format do you see two drives.
Look at the vfstab file and make sure it's setup in there. Are you doing
any kind of logging.

>i have 2 2-gb drives.  i had thought i mounted the main one at "/" and
>the other at "/usr2/"   my problem is that my disk is supposedly full,
>but i don't think it's possible.

>parker% df -k
>Filesystem            kbytes    used   avail capacity  Mounted on
>/proc                      0       0       0     0%    /proc
>/dev/dsk/c0t3d0s0     481302  412224   20948    96%    /
>/dev/dsk/c0t3d0s2     779813  740718       0   100%    /usr
>fd                         0       0       0     0%    /dev/fd
>swap                  492876      12  492864     1%    /tmp

>it looks like it mounted / on one and /usr on the other... maybe...
>please help!

>thanks,
>keith
>(chaos421 at hotmail dot com)

 
 
 

mounting confusion

Post by keith murph » Fri, 02 Nov 2001 23:14:25


Thank you so much for the insight.  Anyone else out there with
slander/advice?

keith

Quote:>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<


regarding Re: mounting confusion:


> #   Thank you very much for the info.
> #
> #   So am i totally screwed now?  What i mean is, will i have to start
over?
> #   Or is there a way to proceed without losing data on the disks?
> Back away from the system now...
> Get competent local help.

 
 
 

mounting confusion

Post by Stev » Sat, 03 Nov 2001 05:53:24


I am not an expert by any means, but here's the basic process I used for
adding a new drive to my system (It works with Solaris 7, anyway):

1)  Basic assumption is that you see the drive when you do a format
command ( I saw from your posts that the 2nd drive is sd0)

2)  use format utility to format and partition the drive. If you want a
single partitition, life is easier--just make s0 the size of the drive,
and set all the rest to 0 size.

3)  Use newfs command to build the file system

4)  Use the fsck command to check the file system's integrity

5)  Edit /etc/vfstab to put the partition in the system's tables

6)  use the mkdir command to create the mount point.  The mount point name
matches the one you specified in the /etc/vfstab file

7)  boot the system.


> i have 2 2-gb drives.  i had thought i mounted the main one at "/" and
> the other at "/usr2/"   my problem is that my disk is supposedly full,
> but i don't think it's possible.

> parker% df -k
> Filesystem            kbytes    used   avail capacity  Mounted on
> /proc                      0       0       0     0%    /proc
> /dev/dsk/c0t3d0s0     481302  412224   20948    96%    /
> /dev/dsk/c0t3d0s2     779813  740718       0   100%    /usr
> fd                         0       0       0     0%    /dev/fd
> swap                  492876      12  492864     1%    /tmp

> it looks like it mounted / on one and /usr on the other... maybe...
> please help!

> thanks,
> keith
> (chaos421 at hotmail dot com)

 
 
 

1. Mount confusion

I have Redhat 7.1 installed on /dev/hda5 and would like to copy the
entire partition to hda8 and use that in stead. I copied the partition
and used loadlin with the root=/dev/hda8 parameter to boot.

Now mount says:

/dev/hda5 on / type ext2 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda2 on /cdrev type vfat (ro,noexec,umask=000,quiet)
/dev/hda3 on /fdrev type vfat (rw,noexec,umask=000,quiet)
automount(pid598) on /misc type autofs
(rw,fd=5,pgrp=598,minproto=2,maxproto=3)
/dev/hda5 on /mnt type ext2 (rw)

And df says:

Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda5              1873740   1740244     38316  98% /
/dev/hda2              2052292   1996256     56036  98% /cdrev
/dev/hda3              2056032   2036864     19168 100% /fdrev
/dev/hda5              1873740   1740148     38412  98% /mnt

The root file system is actually hda8, but the partition can be
mounted once more on /mnt (as can hda5 as shown).

What is missing?
--
Svend Olaf

2. Help

3. user/users mount/umount confusion with fstab

4. U34F,Toshiba 3401B & Linux

5. mount error: mount only root can mount /dev/cdrom on cdrom

6. IDE and hot-swap disk caddies

7. NFS mount won't mount at boot, but mount -a works fine.

8. Netscape Problem

9. mount error: mount only root can mount /dev/cdrom on cdrom

10. kernel compile confusion

11. fetchmail confusion

12. name confusion in fdisk, etc...

13. Nested ctrl statements syntax confusion