LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2004, 09:34 PM   #1
mannymann
Member
 
Registered: May 2004
Location: Baltimore
Distribution: Madrake 10.0 Official, Fedora Core 2
Posts: 44

Rep: Reputation: 15
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?

 
Old 05-04-2004, 09:54 PM   #2
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
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
 
Old 05-04-2004, 09:58 PM   #3
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
Oops didn't see the grub question; someone else will need to feild that one :-)
 
Old 05-04-2004, 10:08 PM   #4
franzfranz
Member
 
Registered: Mar 2004
Location: Indiana, US
Distribution: gentoo
Posts: 87

Rep: Reputation: 15
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.
 
Old 05-04-2004, 10:10 PM   #5
franzfranz
Member
 
Registered: Mar 2004
Location: Indiana, US
Distribution: gentoo
Posts: 87

Rep: Reputation: 15
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.
 
Old 05-04-2004, 11:48 PM   #6
mannymann
Member
 
Registered: May 2004
Location: Baltimore
Distribution: Madrake 10.0 Official, Fedora Core 2
Posts: 44

Original Poster
Rep: Reputation: 15
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.
 
Old 05-05-2004, 12:12 AM   #7
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

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

This should help

Tom
 
Old 05-05-2004, 12:21 AM   #8
mannymann
Member
 
Registered: May 2004
Location: Baltimore
Distribution: Madrake 10.0 Official, Fedora Core 2
Posts: 44

Original Poster
Rep: Reputation: 15
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.
 
Old 05-05-2004, 01:09 AM   #9
franzfranz
Member
 
Registered: Mar 2004
Location: Indiana, US
Distribution: gentoo
Posts: 87

Rep: Reputation: 15
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
 
Old 05-06-2004, 11:40 PM   #10
mannymann
Member
 
Registered: May 2004
Location: Baltimore
Distribution: Madrake 10.0 Official, Fedora Core 2
Posts: 44

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting fat32 drives with read/write access in Fedora a1ex_007 Red Hat 3 03-23-2005 01:38 PM
how to mount NTFS drives on fedora core 2? laiju Linux - General 3 11-21-2004 04:51 PM
Mounting NTFS drives on Fedora nowaydown1 Linux - Newbie 3 04-27-2004 06:25 PM
Fedora Core 1 and SATA drives ThatEvoGuy Fedora 2 03-19-2004 11:39 AM
mounting networking drives in fedora 2782d4 Linux - Networking 1 02-23-2004 08:56 PM


All times are GMT -5. The time now is 09:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration