LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help mounting drives in Fedora Core 1, please. (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-mounting-drives-in-fedora-core-1-please-177941/)

mannymann 05-04-2004 08:34 PM

Need help mounting drives in Fedora Core 1, please.
 
Frustrated. I just did some re-arranging with partition magic but in any case I have the following. They are listed just like they show in my hardware browser except I'm telling you what's on each partition. All partitions have been formatted.

/dev/hda
hda1 (WinXP) ntfs
hda2 (Boot) ext3
hda3 (Fedora Core 1) ext 3
hda4 EXTENDED
hda5 Linux Swap
hda6 (Soon to be Madrake install) ext3

/dev/hdb
hdb1 (Space for WInXP Files) ntfs
hdb2 EXTENDED
hdb5 (Empty) Fat32

Now, what I wanna do first, is be able to mount hda6, and hdb5, I tried searching the forums and looking on google, and nothing seems to help. I did however keep running across the fstab command but I'm not to keen on how to work it. If I try to open it, even in root, it says I do not have the proper permissions (sigh). So I'm not sure how to proceed. I've tried the mount command in terminal and it just says that the directory cannot be found. Is there a way to set up these partitions so they mount when I load up Fedora? Please, keep the kid gloves on, I'm still learning. I'm looking for a step by step "for dummies" version. Keep in mind I'm not very familiar with the terminal commcands. Also can someone tell me how to edit the grub menu?

:scratch:

odious1 05-04-2004 08:54 PM

You are getting dir not found because mount is a command found in root $PATH.

Alright at the console:

su - root

vi /etc/fstab

(add following two lines)

/dev/hda6 /mnt/mandrake ext3 defaults 0 0
/dev/hdb5 /mnt/windows vfat auto,rw,exec,umask=0000 0 0

(shift zz) saves and closes editor

mkdir /mnt/mandrake /mnt/windows

chmod 777 /mnt/mandrake /mnt/windows

mount -a

exit

They will mount at boot time in the future.

Have fun

Tom

odious1 05-04-2004 08:58 PM

Oops didn't see the grub question; someone else will need to feild that one :-)

franzfranz 05-04-2004 09:08 PM

for grub, type

pico /boot/grub/grub.conf

and add this

title=Mandrake
root(hd0,5)
kernel /<name of your kernel here (which is found in the boot folder)>
#and if you have an initrd-2.x.x sort of file add this:
initrd /initrd-2.x.x

that should add your mandrake partition to grub, but i'm not positive this is right.

franzfranz 05-04-2004 09:10 PM

oh, and you'll have to su to root to get write access to grub.conf, so do that before you open pico. and then ctrl-o to save and ctrl-x to exit.

mannymann 05-04-2004 10:48 PM

Um, a little lost. I open the "vi /etc/fstab" thing and I get this:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/sda2 /mnt/ipod auto noauto,owner,kudzu 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/fstab" 9L, 700C 9,1 All

Where would I enter the:
/dev/hda6 /mnt/mandrake ext3 defaults 0 0
/dev/hdb5 /mnt/windows vfat auto,rw,exec,umask=0000 0 0

It appears that my cursor can go no lower than the entry about the cd drive so I'm a little confused. Also in regard to the grub question I was asking if you have multiple kernels (I think the term is) in your boot menu, how would you remove some so that only the most updated kernel shows? Or is this even possible?Thanks.

odious1 05-04-2004 11:12 PM

http://rute.2038bug.com/node9.html.g...00000000000000

This should help

Tom

mannymann 05-04-2004 11:21 PM

I'm about to hit the hay but I read over the tutorial a little. Thanks. I apologize I wasn't clear enough but what I needed to know was exactly where to place those commands in the editor. If this is already in the tutorial, feel free not to answer and I'll take a look again in the morning.

franzfranz 05-05-2004 12:09 AM

all you have to do is enter the 2 lines given at the end of what's already there. vi is just a text editor, it really doesn't matter what you use. i like pico, just because it's easy and it reminds you what commands do what. you can substitute pico for vi in the above directions, or vice versa.

as for grub, you can have multiple kernels listed, just direct the kernel and initrd arguments accordingly. most people keep a backup kernel around when they are messing with their kernel, it gives you something to fall back on. So basically, just add multiple Mandrake entries, making them look like this:

title=Mandrake 2.4.25
root(hd0,5)
kernel kernel-2.4.25 <extra arguments, if your kernel needs them>
initrd initrd-2.4.25

title=Mandrake 2.6.5
root(hd0,5)
kernel kernel-2.6.5 <extra arguments>
initrd initrd-2.6.5

hope that helps, good luck

mannymann 05-06-2004 10:40 PM

Thanks guys, I think I'm on to it now, I can edit the bootloader menu a lot easier in Mandrake, since I'm not too comfortable with terminal right now. I'll be picking up a book tommorow. Hopefully that will help.


All times are GMT -5. The time now is 03:04 PM.