Re: Adding a harddrive (Solved thanks)
Hi guys. Its solved, thanks guys. You all did a great job. From: David Talkington No problem, but _please_ wrap your lines at 72ish, and do NOT post in HTML. Ok, I will behave :) Ragnar W. ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Adding a harddrive
Hi there again. I got RH 7.2 installed on a box and need to add the third HD to it. Running df I can see that the filesystem on the to HD's originally on the machine is ext3. Running fdisk on the third IDE HD 'fdisk /dev/hdc' gives me some trouble. This is fdisk version 2.11f. Listing the known partition type does not show me ext3 nor ext2, so I chose type '83 Linux' and then primaryno1. Is that correct? How do I edit the fstab file? I read the man page for fstab, tried various ideas I got from reading it and clone some lines from it, but then the machine won't boot properly. What about the mounting point. Do I have to create it first with 'mkdir /xxx' ? Looking forward to read your replies. Thanks in advance. Ragnar W.
Re: Adding a harddrive
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ragnar Wiencke wrote: 1.. This is fdisk version 2.11f. Listing the known partition type does not show me ext3 nor ext2, so I chose type '83 Linux' and then primary no1. Is that correct? Yes, that's fine. You get ext3 by creating ext2 with a journal (see the -j switch to mke2fs). 2.. How do I edit the fstab file? I read the man page for fstab, tried various ideas I got from reading it and clone some lines from it, but then the machine won't boot properly. Assuming you created one large primary, it'll be at /dev/hdc1. So you just need an entry like this: /dev/hdc1 /mnt/newdisk ext3 defaults 0 0 See man fstab for the meanings of those fields, and man mount for alternatives to the 'defaults' option if you need them. 3.. What about the mounting point. Do I have to create it first with 'mkdir /xxx' ? Yup, in accordance with whatever you chose in field #2 above. Looking forward to read your replies. Thanks in advance. No problem, but _please_ wrap your lines at 72ish, and do NOT post in HTML. And thanks for the tip about df; I didn't know it could display filesystem type. Cheers -d - -- David Talkington PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 Comment: Made with pgp4pine 1.75-6 iQA/AwUBPJU9zb9BpdPKTBGtEQKDjACfbL9AJlei37b3NgkOKFQnzJUYLs8AniWY FXJBOiJaesvk23diWfsLrZ3x =Csoc -END PGP SIGNATURE- ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Adding a harddrive
There are5 basic steps to getting a new hard drive working: 1. partition the drive with: fdisk /dev/hdc 2. create a file system on the new partition with: mke2fs 3. create a mount point: mkdir /mnt/hdc1 4. mount the drive: mount /dev/hdc1 /mnt/hdc1 5. edit fstab and put the entry there. cat /etc/mtab will show you what it's like now that you've got it mounted. Here are a few articles on the process: http://www.faqts.com/knowledge_base/view.phtml/aid/1263 http://www.dummies.com/Technology/Software/Linux/0-7645-0795-8_0007.html http://linuxrefresher.com/fileadm.htm This should get you started. Holler if you need more info. Ed WiltsMounds View, MN, USAmailto:[EMAIL PROTECTED]
Re: Adding a harddrive
1.. This is fdisk version 2.11f. Listing the known partition type does not show me ext3 nor ext2, so I chose type '83 Linux' and then primary no1. Is that correct? partition types and filesystems are different things. fdisk only understands partitions. 2.. How do I edit the fstab file? I read the man page for fstab, tried various ideas I got from reading it and clone some lines from it, but then the machine won't boot properly. 1) make sure the mount point directory exists on the host fs. 2) just copy an entry from /etc/fstab (other than / or swap, since the settings are different) and make appropriate changes. 3.. What about the mounting point. Do I have to create it first with 'mkdir /xxx' ? Yes. It must be on the host fs (ie. if you're making a /usr/local partition, make sure /usr/local is first created on the fs where /usr's contents are located). Order of fs mounting is a biggie too. If you have a complex tree of filesystems, make sure you mount the filesystems that host the mount points for other filesystems first (ie. if you have /, /usr, and /usr/local partitions, mount them in that order). Since you have 3 harddisks, you prolly have some number of partitions :) Looking forward to read your replies. Thanks in advance. Ragnar W. -- -Statux ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list