View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 35 posts ] 
Go to page Previous  1, 2, 3  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Thu Feb 22, 2007 9:26 am 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
OK so i think that i have found out exactly what it is that is causing it not to automount. Even though i have the correct line in fstab when i drop out into the desktop environment it still requires me to use the command 'mount -a' before the harddrive become mounted. How could i go about adding this command into the boot up routines? Could i just add it to the fstab file or would i have to add it somewhere else?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 22, 2007 7:24 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,
Show us the fstab line for the external usb drive.
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 23, 2007 11:12 am 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
The line i have in the fstab is as follows.

/dev/sda1 /myth/music vfat defaults,user,auto,showexec,umask=022 0 0

Thanks for the help guys, really apprecriate it.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 23, 2007 9:14 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

I am no where near being an expert but it looks as if the ext drive was powered up at boot time, it should come up properly. At least you are close, maybe a few searchs around google will get the final touch or a couple of hints.

Might even need / want a menu button to mount / umount the ext drive when you feel like a tune or two. That way you could spin it up when you felt like listening.

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 24, 2007 1:55 am 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
Mike,

The external drive is usually on 24/7 and it doesnt make any difference, i still have to click on the drive icon in konqueror or run "mount -a". What i need to be able to do is run the "mount -a" command during a boot script - preferably just before the myth frontend starts up. Which script (or even scripts) might i need to put this in?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 24, 2007 8:19 am 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

Try adding it into the bottom of bootmisc.sh
# echo "mount /myth/music" >> /etc/init.d/bootmisc.sh will put it there. Somewhere there is probably a list that tells what to mount at boot tme, I just know where it might be.

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 25, 2007 10:21 am 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
I tried your idea along with 'mount -a' and still no joy. There has got to be some way of getting this sorted. Maybe it has something to do with the owner of the mounted drive. How might i go about checking this?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 25, 2007 10:43 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
1) Is the drive actually getting mounted by the command in bootmisc.sh?
Code:
grep mount /etc/init.d/bootmisc.sh
mount


2) What are the permissions and ownership on the mounted directory tree after this?
Code:
ls -al /myth/music


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 25, 2007 2:22 pm 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
Mike,

With regard to your comment on it being powered up at boot time - yes indeed it is, always on in fact. Tjc, ill try your idea in a bit but at the moment Bill & Ted is on TV :-)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 25, 2007 3:54 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
None of the commands should cause an disruption. They're purely diagnostic.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 25, 2007 4:14 pm 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
Ok so in my fstab file i have

/dev/sda1 /myth/music vfat defaults,user,auto,showexec,unmask=022 0 0

and in the bootmisc.sh file i have tried the following commands

mount
mount -a
sudo mount
sudo mount -a

If i run 'ls -al /myth/music' the folders in on the tree all have the following set of permissions

drwxr--r--

Does this help?

Many thanks

Rob


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 25, 2007 7:36 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Ok, I am starting to see a disconnect occurring. A while back when you first started asking questions I gave some ideas on what you might do. Once you coughed up some of the details, we modified the needs.

If you executed the command
# echo "mount /myth/music" >> /etc/init.d/bootmisc.sh
then the very last line of /etc/init.d/bootmisc.sh should have listed mount /myth/music
If you do an less of that file you should be able to verify it is entered.
Then IF you had run tjc's code
grep mount /etc/init.d/bootmisc.sh
mount
would have offered additional feedback.
Then you only offered part of the return from ls -al /myth/music
$64K question is who owns it?
Earlier I had suggested to run a couple of commands to set things up.
One is no longer needed because of the changes of mounting on /myth/music
# chown mythtv:mythtv /stick -- change the directory name to be /myth/music Mount the partition first then chown mythtv:mythtv /myth/music
while you are at it, add some permissions, Follow tjc's guidence on this if he offers some, but you can try this to get started.
# chmod 755 /myth/music
With the entry as you echoed back as listed in the fstab, it should be auto mounted by default.
Basicly, if we don't get good feedback then no one can offer much for assistance.
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 25, 2007 10:26 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
rmflook wrote:
If i run 'ls -al /myth/music' the folders in on the tree all have the following set of permissions

drwxr--r--

Does this help?

The full details I asked for would have been better, but I see a problem right there... Directories generally need +rx permissions.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 26, 2007 3:14 am 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
Guys,

appologies for not giving you guys the exact details you wanted, this wasnt intentional - im a bit of a newbie so its a bit difficult at the moment for me to get to grips with what information is useful and what isnt. Please bear with my lack of linux knowledge, i do appreciate all the help. When i get home from work tonight ill try your ideas and pass on all of the details to you if i need more help.

Again thanks for all the help

Rob


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 26, 2007 6:39 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
rmflook wrote:
Mike,

The external drive is usually on 24/7 and it doesnt make any difference, i still have to click on the drive icon in konqueror or run "mount -a". What i need to be able to do is run the "mount -a" command during a boot script - preferably just before the myth frontend starts up. Which script (or even scripts) might i need to put this in?


If a manual "mount -a" does what you want, it probably isn't a permission issue.

It is possible bootmisc.sh is running before the USB disk has registered. For cases such as this, I have put some commands into ~mythtv/.fluxbox/apps. You should be able to figure out the exact format of this file by looking at it, it is pretty obvious. You need to add a startup command of "sudo mount -a".

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 35 posts ] 
Go to page Previous  1, 2, 3  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu