Hi Michael,

You could use either /mnt/kd/rc.elocal or /mnt/kd/rc.local .

/etc/fstab is symlinked to /tmp/etc/fstab and dynamically built on startup via 
the /etc/rc script.

The following *untested* snippet is how I would do it...

==============================
##
## Mount a drive via /mnt/kd/rc.elocal or /mnt/kd/rc.local
##

disk_dev="/dev/sdb1"
disk_mnt="/tmp/mnt/disk"

mkdir -p "$disk_mnt"
echo "$disk_dev $disk_mnt ext2 noauto,noatime 0 0" >> /tmp/etc/fstab

e2fsck -y "$disk_dev" >/dev/null

echo "Mounting device '$disk_dev' at '$disk_mnt'"
mount "$disk_mnt" >/dev/null
##
==============================

Question, is using a second drive quite specialized for your situation ?

Lonnie


On Apr 22, 2014, at 3:39 AM, Michael Knill wrote:

> To the group
> 
> I know this is a noob question but what is the correct way to add a drive in 
> Astlinux?
> I mounted it in rc.elocal and it works fine but is this the right thing to do?
> I assume I cant touch fstab.
> 
> Regards
> Michael Knill


------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
[email protected].

Reply via email to