LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to mount more than one drive at startup (https://www.linuxquestions.org/questions/linux-general-1/how-to-mount-more-than-one-drive-at-startup-469069/)

rohanahmed 07-30-2006 04:59 AM

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

Nylex 07-30-2006 05:06 AM

Yes of course that's possible. Do you have entries in your fstab for the partitions you wanted mounted automatically?

XavierP 07-30-2006 06:06 AM

Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.

inverted.gravity 07-30-2006 06:48 AM

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

rohanahmed 07-31-2006 11:35 AM

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 ...

Nylex 07-31-2006 11:49 AM

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.

rohanahmed 08-01-2006 02:00 PM

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.

Nylex 08-01-2006 02:09 PM

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.

rohanahmed 08-01-2006 02:43 PM

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

Nylex 08-01-2006 02:46 PM

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".

rohanahmed 08-01-2006 03:20 PM

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

Nylex 08-01-2006 03:28 PM

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.


All times are GMT -5. The time now is 01:44 PM.