/bckupdrv how big?

Chris Aitken caitken-Bm8TULXj0r/3fQ9qLvQP4Q at public.gmane.org
Tue Mar 14 18:05:05 UTC 2006


Chris Aitken wrote:

<snip>

>
> Do I just mkdir /bckdrv then run [root at a800 pauline]# mount /dev/hdb1 
> /bckupdrv again?


Looks like I'm OK now. Here's the latest I did:

[root at a800 pauline]# /sbin/fdisk /dev/hdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF 
disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 13410.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by 
w(rite)

Command (m for help): p

Disk /dev/hdb: 6488 MB, 6488294400 bytes
15 heads, 63 sectors/track, 13410 cylinders
Units = cylinders of 945 * 512 = 483840 bytes

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-13410, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-13410, default 13410):
Using default value 13410

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root at a800 pauline]# /sbin/mkfs.ext3 -j /dev/hdb1
mke2fs 1.37 (21-Mar-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
793408 inodes, 1584048 blocks
79202 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1623195648
49 block groups
32768 blocks per group, 32768 fragments per group
16192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root at a800 pauline]# mount /dev/hdb1 /bckupdrv
mount: mount point /bckupdrv does not exist
[root at a800 pauline]# vi /etc/fstab
[root at a800 pauline]# mount /dev/hdb1 /bckupdrv
mount: mount point /bckupdrv does not exist
[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(pid1976) on /misc type autofs 
(rw,fd=4,pgrp=1976,minproto=2,maxproto=4)
automount(pid2029) on /net type autofs 
(rw,fd=4,pgrp=2029,minproto=2,maxproto=4)[root at a800 pauline]# mkdir 
/bckupdrv
[root at a800 pauline]# mount /dev/hdb1 /bckupdrv
[root at a800 pauline]# chmod -r 777 /bckupdrv
chmod: cannot access `777': No such file or directory
[root at a800 pauline]# chmod 777 /bckupdrv
[root at a800 pauline]# chmod -R 777 /bckupdrv
[root at a800 pauline]# df /dev/hdb1
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdb1              6236560   1059388   4860364  18% /bckupdrv
[root at a800 pauline]#

I just did a successful backup from my other computer to this drive:

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdb1              6236560   1059388   4860364  18% /bckupdrv

That looks healthier, eh?

Tim and Tom (and one or two others), thanks a lot for hanging in there 
with me. I'm going to cut and paste the information you gave me into an 
email to myself. That will be my step-by-step partitioning guide.

:)

Chris

<snip>
--
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