How to mount a non array drive automatically during reboot ?


Recommended Posts

Hi All!

 

Running 5,0-rc5, free version.

 

I'm having troubles getting a drive mounted when rebooting.

The purpose of which is to put plugins like subsonic, sickbeard, transmission etc on.

 

I've added the following to  the end of my go file:

 

#mount app_drive

mkdir /mnt/app_drive

chmod 777 /mnt/app_drive

chown nobody:users /mnt/app_drive

mount -t ntfs-3g -o rw umask=111,dmask=000 /dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0VVJ13P703659-part1 /mnt/app_drive

 

But when I look at /mnt/app_drive after booting via telnet, it's empty.

If I don't do the mount command in the go script and then do the mount command manually via telnet after booting it will then work as expected.

 

I also need the plugins not to start until its mounted too obviously!

 

I was using snap before but that was unpredictable, sometimes it would start the apps before the mount and then proceed to install the apps afresh..

I've tried two different physical disks.

Had the apps running on the flash drive originally but that died as  a result...

 

Help!

 

 

 

Link to comment

Thanks Jon.

 

I've sorted it 99% - I reformmated the non-array drive from ntfs to reiserfs.

I reasoned that maybe the ntfs-3g wasn't available at the time the mount statement was being issued.

 

Now just got to get subsonic streaming videos instead of the video not found or access denied message its now giving me!

 

Moving to the relevant forum...

 

Thanks :)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.