LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-30-2006, 04:59 AM   #1
rohanahmed
Member
 
Registered: Jul 2006
Posts: 37

Rep: Reputation: 15
how to mount more than one drive at startup


I can mount one of my hdd drive at linux startup(I am using Fedora core5). Now I was just wondering that could it be possible to mount all 3 drives of my hdd at startup automatically. Please help me....
Thanks in advance
 
Old 07-30-2006, 05:06 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Yes of course that's possible. Do you have entries in your fstab for the partitions you wanted mounted automatically?
 
Old 07-30-2006, 06:06 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 07-30-2006, 06:48 AM   #4
inverted.gravity
Member
 
Registered: Feb 2006
Location: Sweden
Distribution: Archlinux
Posts: 112

Rep: Reputation: 15
Quote:
Originally Posted by rohanahmed
I can mount one of my hdd drive at linux startup(I am using Fedora core5). Now I was just wondering that could it be possible to mount all 3 drives of my hdd at startup automatically. Please help me....
Thanks in advance
There is a file called fstab

/etc/fstab

You'll have to edit it, read the man pages for fstab
Code:
$ man fstab
The syntax is
/dev/hdXy /path/to/mount/point <filesystem> defaults 0 2
 
Old 07-31-2006, 11:35 AM   #5
rohanahmed
Member
 
Registered: Jul 2006
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by inverted.gravity
There is a file called fstab

/etc/fstab

You'll have to edit it, read the man pages for fstab
Code:
$ man fstab
The syntax is
/dev/hdXy /path/to/mount/point <filesystem> defaults 0 2
I am really sorry I couldn't get it. I have found the fstab but what is "man pages "
What I have found in fstab is
Code:
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/dev/hda7 /mnt/windows vfat umask=0000 0 0
Please help me I am totally a new one here ...

Last edited by rohanahmed; 07-31-2006 at 11:39 AM.
 
Old 07-31-2006, 11:49 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The "man" in "man pages" is short for "manual". Thus man pages give you some info about programs/some config files.

We need to know which partitions you want automatically mounted on boot, and what filesystems are on them. If you don't give us that info, it's a bit difficult to help you. Posting the output of "fdisk -l" (that's a lowercase L, not number one), or "/sbin/fdisk -l" would help.
 
Old 08-01-2006, 02:00 PM   #7
rohanahmed
Member
 
Registered: Jul 2006
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Nylex
The "man" in "man pages" is short for "manual". Thus man pages give you some info about programs/some config files.

We need to know which partitions you want automatically mounted on boot, and what filesystems are on them. If you don't give us that info, it's a bit difficult to help you. Posting the output of "fdisk -l" (that's a lowercase L, not number one), or "/sbin/fdisk -l" would help.
First thnx Nylex....
Here is the thing

[rohan@localhost ~]$ su -
Password:
[root@localhost ~]# fdisk -l

Disk /dev/hda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 914 7341673+ b W95 FAT32
/dev/hda2 915 9732 70830585 f W95 Ext'd (LBA)
/dev/hda5 915 1958 8385898+ b W95 FAT32
/dev/hda6 1959 3263 10482381 b W95 FAT32
/dev/hda7 3264 5613 18876343+ b W95 FAT32
/dev/hda8 5614 5874 2096451 b W95 FAT32
/dev/hda9 5875 5887 104391 83 Linux
/dev/hda10 5888 9732 30884931 8e Linux LVM
[root@localhost ~]#

Now I have already mounted the hda7 and it starts at every booting. So, I want to automatically mount hda5 and hda6 along with the existent hda7 at startup...
Please dont hesitate to ask me about any info and again thnx for your very much helpful attitude.
 
Old 08-01-2006, 02:09 PM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Add entries for /dev/hda5 and /dev/hda6 to your fstab that look like the one for /dev/hda7. The only thing you'll need to change is where they're mounted (the second column), as obviously you'll need to use different directories for all 3. You will need to create the directories though, if they don't already exist.
 
Old 08-01-2006, 02:43 PM   #9
rohanahmed
Member
 
Registered: Jul 2006
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Nylex
Add entries for /dev/hda5 and /dev/hda6 to your fstab that look like the one for /dev/hda7. The only thing you'll need to change is where they're mounted (the second column), as obviously you'll need to use different directories for all 3. You will need to create the directories though, if they don't already exist.
thnx nylex for your quick reply
Now what i had done to mount hda7 was

1.First, make a directory where the partition can be mounted:
sudo mkdir /mnt/windows
so, do you tell me to change this directory???
Next...
2.Next, backup your configuration file for mounting drives and open the file in a text editor with
administrative privileges:
sudo cp /etc/fstab /etc/fstab_backup
kdesu kate /etc/fstab

And edit the fstab like that...
If your Windows partition uses the FAT32 filesystem, it is safe to allow read*write access to the
partition. Append the following line at the end of the file
/dev/hda7 /mnt/windows vfat umask=0000 0 0
Now just do I have to change hda7 to hda5 here??

so it gives the fstab a new look...

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hda7 /mnt/windows vfat umask=0000 0 0


thats it plzzz help...
thnx in advance
 
Old 08-01-2006, 02:46 PM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to use different directories for each of the 3 partitions. If you're using /mnt/windows for /dev/hda7, you'll need to use another directory for /dev/hda5 and yet another directory for /dev/hda6. Your entries in fstab will look the same, apart from the first and second columns.

Edit: you may also like to read this and "man fstab".

Last edited by Nylex; 08-01-2006 at 02:52 PM.
 
Old 08-01-2006, 03:20 PM   #11
rohanahmed
Member
 
Registered: Jul 2006
Posts: 37

Original Poster
Rep: Reputation: 15
Nylex thank you very very much I have done it....
thnx
Something else I would like to know that is it possible to share the same softwares installed in one user with the other. My younger brother has different user access now for an example if I install something like adobe reader is it possible for him to use it on his user environment??

If you dont mind my asking is it possible to find every linux compatible software in rpm package. Now I have downloaded skype and installed it by just double clicking on the rpm package of skype. Actually what i am intending to say is that wheather there is a chance to install a software in linux by double clicking not by using yum or something like that...
thnx
 
Old 08-01-2006, 03:28 PM   #12
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
With regards to all users being able to use software, yes of course it's possible. Just install said software in a place that all the users have access to. Pre-built packages usually do that, as far as I'm aware. When you install from source, usually (I think) the default location is one that's available to all users as well.

As for finding all software in RPM format, well, I guess that's going to be a bit difficult as the developers can choose which format(s) they distribute their software in. They might decide to only provide binaries for certain distributions (possibly deciding by popularity of said distros). You may also be able to obtain RPMs for software packaged by other people (i.e. unofficial packages), but I don't know to be honest.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
Mount usb drive, umount and mount another drive arubin Linux - Hardware 9 01-17-2007 03:46 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 07:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 04:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 02:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:23 AM.

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
Open Source Consulting | Domain Registration