Michiel Blotwijk wrote:
>
>
http://mirror.contribs.org/smeserver/contribs/mblotwijk/HowToGuides/AddExtraHardDisk.htm>
> As allways, comments are apreciated.
> Michiel
Step 2: Partition the disk
-==========================
[root@Cs2MainServer root]# fdisk /dev/hdc
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-39813, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-39813, default 39813):
Using default value 39813
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@Cs2MainServer root]#
-==================================================
Step 3: Format the new partition
-==========================================
[root@Cs2MainServer root]# mkfs -t ext2 /dev/hdc1
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2508352 inodes, 5016430 blocks
250821 blocks (5.00%) reserved for the super user
First data block=0
154 block groups
32768 blocks per group, 32768 fragments per group
16288 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.[root@Cs2MainServer root]# tune2fs -j /dev/hdc1
tune2fs 1.27 (8-Mar-2002)
Creating journal inode: done
This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@Cs2MainServer root]#
-===============================================
Step 4: Create a mounting point for the new disk
-====================================
[root@Cs2MainServer root]# mkdir /mnt/bigdisk
[root@Cs2MainServer root]#
=====================================
Step 5: Automount at boot time
-======================================
LABEL=/ / ext3 usrquota,grpquota 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/hdc1 /mnt/bigdisk ext3 usrquota,grpquota 1,1
[root@Cs2MainServer root]# mount -a
[mntent]: line 19 in /etc/fstab is bad
[root@Cs2MainServer root]#
-============================================
-----> i really followed everything in your howto bro, actually im just copy and pasting it but still i have this: [mntent]: line 19 in /etc/fstab is bad
error that keeps on coming out. what will i do?