FaunOS Forums

Support and Discussion Forums for FaunOS

You are not logged in.

#1 08-12-2008 04:20:25

Zeroangelmk1
Member
Registered: 05-23-2008
Posts: 19

How to auto mount other partitions from the FaunOS boot device

This tutorial will be useful to you if the device which runs FaunOS has additional partitions on it that you want to be automatically mounted and accessible when FaunOS boots.

STEP 1: Find out if your device has a volume label.

First, make sure your other partition has a boot label. You can find out whether it does by clicking on the Storage Devices icon on your desktop. It will show all available partitions. If the device your wanting to auto-mount has a name instead of simply saying 10G media (or whatever size it is) then you can move on to Step 3.

If you get the generic (size) Media, then open it and take note of the device name that shows up in the address bar (it will typically say something like sda3, sdb2, or something similar to that -- I will refer to this device name as sdXY in the next step)

From this point on, you might find it useful to start doing things from the terminal as root
To do this, open up a terminal. Run the command "su". And type in the root password. You now have root access to the system from the terminal. Let the games begin!

STEP 2: Create a volume label for your device.
In the terminal and as root, first umount the device (if its already mounted)

Code:

umount /dev/sdXY

then we have to use tune2fs to create a volume label (we can give it any volume label we want, but lets assume we want to call the device 'MySharedDisk':

Code:

tunefs -L MySharedDisk /dev/sdXY

Normally we need to eject the device and plug it back in, but since its most likely a partition on your FaunOS drive, you dont want to do that. The next time we boot the machine, it should show up with the new device label if it doesnt already.

STEP 3: fstab and /etc/rc.local
Now, lets associate your device's volume label with fstab. This will make it much easier to mount it later on. As now the partition will auto-mount even if its dev name changes.

First add the following line to fstab:

Code:

LABEL=MySharedDisk /media/MySharedDisk auto defaults 0 0

Now lets edit /etc/rc.local (it is basically a startup script that will run console commands when the machine boots) -- Open the file /etc/rc.local in your root terminal. This can be done by running the following command as root (in Su mode).

Code:

nano /etc/rc.local

add the following lines somewhere inside the file:

Code:

mkdir /media/MySharedDisk
mount /media/MySharedDisk

Thats it! The media inside of your shared disk will now be immediately accessible when the machine boots. Restart the computer.

Do what you would normally do with a permanent partition if you like, including sym-linking and using the media files from that partition.

Last edited by Zeroangelmk1 (08-28-2008 14:58:52)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB