How To mount Hard Drive Partitions Everytime when Login to Ubuntu Linux automatically
One of the biggest problem of using Linux is the fact that many times things just get screwed up. Most of the times it isn't your fault at all, it could be an hardware problem or an software glitch. However it doesn't change the fact that your PC is screwed up! One of those things which happens with my Ubuntu is that it doesn't mount all my hard drives (except C:// drive, on which it is installed) during startup. I have to manually open up Places and click on each and every hard drive to open them up. This might seem to be a trivial problem, but it isn't. The major headaches due to this are:
1. I cannot keep any image from other hard drive as Wallpaper. 2. Amarok cannot start playing songs. It gives me an error saying 'File not located'. This is the most important problem.
So if you have been hounded by this problem too, then rejoice cause I have finally found a solution to this problem. There is an amazing software called Pysdm which allows you to decide which drives to mount or unmount during startup. Pysdm is an GUI application and is extremely easy to use.
here are some methods.
Its assumed you have formated you raid set usingdmraidcommand with instructions found atFakeRaidHowto
You need to know the name of your raid set
sudo dmraid -ay
RAID set "sil_aiaedhaeafaa" already active RAID set "sil_aiaedhaeafaa1" already active
To verify that the partitions were mounted properly, open Gnome's file browser and direct it to the locations at which the partitions were mounted. Click the 'File System' button to access '/', and navigate from there.If the partition being examined contains files, the modifications were successful, and the partitions will be automatically mounted every time the system is restarted.
If no files are found, please seeXChatHowtoand join #ubuntu on irc.freenode.net.
Pysdm is a program to automatically setup partitions every time Ubuntu starts.This is verified to work in 9.04.
sudo apt-get install pysdm
Select each partition you want to change in the list.Note the type. Often it is ext3 (Linus) or NTFS (Windows).Use assistant and press OK. By default the partition is mounted at boottime.You can also mount the partition now.Press Apply.Done.
Gnome-mount is a program which mounts disks using the same facilities as when mounting a disk as a normal user through Nautilus. There is no need to setup mountpoints or filesystems. This is particularly interesting if you want to use the automatically created mountpoints instead of manually specifying them for each disk.
sudo apt-get install gnome-mount
You can mount a disk as a normal user via
gnome-mount -p myDiskLabel
where myDiskLabel is your disk name (e.g Data). To have the disk mounted each time you startup (thus removing the password prompt on first usage of the disk), simply add above line to your list of startup applications (System->Preferences->Startup Applications). Note that while mounting through gnome-mount will not need a password, unmounting or remounting via Nautilus will still invoke the password prompt. Please refer https://help.ubuntu.com/community/AutomaticallyMountPartitions for details