/bckupdrv how big?

Tim Writer tim-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org
Tue Mar 14 15:01:47 UTC 2006


Chris Aitken <caitken-Bm8TULXj0r/3fQ9qLvQP4Q at public.gmane.org> writes:

> Tim Writer wrote:
> 
> <snip>
> 
> >This change will not take affect until you reboot. But don't do that because
> >the above sounds like there may be some confusion between what is your backup
> >drive and what is /. Please e-mail your complete /etc/fstab (from before you
> >modified it),
> >
> # This file is edited by fstab-sync - see 'man fstab-sync' for details
> LABEL=/1                /                       ext3    defaults        1 1
> LABEL=/                 /bckupdrv               ext3    defaults        1 2
> LABEL=/boot             /boot                   ext3    defaults        1 2
> none                    /dev/pts                devpts  gid=5,mode=620  0 0
> none                    /dev/shm                tmpfs   defaults        0 0
> none                    /proc                   proc    defaults        0 0
> none                    /sys                    sysfs   defaults        0 0
> LABEL=/var              /var                    ext3    defaults        1 2
> /dev/hda3               swap                    swap    defaults        0 0
> /dev/fd0                /media/floppy           auto
> pamconsole,exec,noauto,managed 0 0 /dev/hdc                /media/cdrom            auto    
> pamconsole,exec,noauto,managed 0 0

The LABEL= lines are pretty confusing but at least the labels are distinct.
I was worried you had somehow mounted your root file system twice.

> > the output of "mount",
> >
> [root at a800 pauline]# mount
> /dev/hda2 on / type ext3 (rw)
> none on /proc type proc (rw)
> none on /sys type sysfs (rw)
> none on /dev/pts type devpts (rw,gid=5,mode=620)
> /dev/hda1 on /boot type ext3 (rw)
> none on /dev/shm type tmpfs (rw)
> /dev/hda5 on /var type ext3 (rw)
> none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
> sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
> automount(pid1973) on /misc type autofs 
> (rw,fd=4,pgrp=1973,minproto=2,maxproto=4)
> automount(pid2026) on /net type autofs 
> (rw,fd=4,pgrp=2026,minproto=2,maxproto=4)[root at a800 pauline]#

Okay, with the above, we can see that:

    /     is /dev/hda2
    /boot is /dev/hda1
    /var  is /dev/hda5

and /bckupdrv is no longer mounted (presumably because you were following my
earlier instructions). Armed with the above, I would fix your /etc/fstab
as follows:

    Replace LABEL=/1     with /dev/hda2
    Replace LABEL=/      with /dev/hdb1
    Replace LABEL=/boot  with /dev/hda1
    Replace LABEL=/var   with /dev/hda5

Personally, I don't understand why Red Hat uses LABELs. Unless you're
careful, they introduce more problems than they solve.

> > and the output of "fdisk -l".
> >  
> >
> [root at a800 pauline]# /sbin/fdisk -l
> 
> Disk /dev/hda: 20.5 GB, 20547841536 bytes
> 16 heads, 63 sectors/track, 39813 cylinders
> Units = cylinders of 1008 * 512 = 516096 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/hda1   *           1         203      102280+  83  Linux
> /dev/hda2             204       36693    18390960   83  Linux
> /dev/hda3           36694       37733      524160   82  Linux swap / Solaris
> /dev/hda4           37734       39813     1048320    f  W95 Ext'd (LBA)
> /dev/hda5           37734       39813     1048288+  83  Linux
> 
> Disk /dev/hdb: 6488 MB, 6488294400 bytes
> 15 heads, 63 sectors/track, 13410 cylinders
> Units = cylinders of 945 * 512 = 483840 bytes
> 
> Disk /dev/hdb doesn't contain a valid partition table
> [root at a800 pauline]#

Okay, this is consistent with the above. Fix your /etc/fstab and finish going
through my earlier instructions and you should be all set.

-- 
tim writer <tim-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org>                                  starnix inc.
647.722.5301                                      toronto, ontario, canada
http://www.starnix.com              professional linux services & products
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list