LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 04-23-2009, 01:47 PM   #1
d_wing
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Rep: Reputation: 1
mount mp3 player as root


Hi, I have an mp3 player that automounts just fine in Ubuntu 8.10 in MSC mode. I want to install Rockbox and for that I have to mount the usb device as root, but I don't believe I want it to mount as root all the time. Is there a simple command that will allow me to mount the player as root just to install Rockbox? So far I haven't been able to do this. Do I need an entry in fstab or mtab to do this?
 
Old 04-23-2009, 01:50 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
why do you need to mount it as root ?
To install rockbox ?
Can't you copy the file to your HD and install from there?
 
Old 04-23-2009, 02:00 PM   #3
d_wing
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by repo View Post
why do you need to mount it as root ? To install rockbox ?
Exactly. Their Install executable requires root access to install their bootloader and program.
"Also, make sure you have appropriate permissions to access the player. Ipod and Sansa players require you to have administrator permissions. "
 
Old 04-23-2009, 02:18 PM   #4
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
I assume you are trying to use the automated installation on an Ipod or Sansa Player?.
Have you considered installing Rockbox manually?
 
Old 04-23-2009, 02:29 PM   #5
d_wing
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by the trooper View Post
I assume you are trying to use the automated installation on an Ipod or Sansa Player?.
Have you considered installing Rockbox manually?
Not yet. From what I've read, the auto installer has some advantages regarding upgrading, installing themes, and uninstalling without hosing the factory install. Since I've never used it, that seemed prudent.

edit - Just found this in the Rockbox manual -
Administrator/Root rights.
Installing the bootloader portion of Rockbox requires you to have administrative (Windows) or root (Linux) rights. Consequently when doing either the automatic or manual bootloader install, please ensure that you are logged in with an administrator account or have root rights.


So then, what advantage would a manual install have?

Last edited by d_wing; 04-23-2009 at 02:38 PM. Reason: info
 
Old 04-23-2009, 02:39 PM   #6
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,049

Rep: Reputation: 170Reputation: 170
Root access, and *mounting* as root are two different things.

Now, I may be speaking out of my ass here, but can you not mount it normally and su to root to install?

Or, since it probably involves bootloaders, etc., could you not chroot?

otoh, mounting as root, without affecting fstab, shouldn't be an issue. If the unit mounts automatically, with *user* permissions when you plug it in, then unmount it, su to root, and issue the mount command.

cheers,

Last edited by mrclisdue; 04-23-2009 at 02:43 PM.
 
Old 04-23-2009, 03:00 PM   #7
d_wing
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Cool

Quote:
Originally Posted by mrclisdue View Post
Now, I may be speaking out of my ass here, but can you not mount it normally and su to root to install?

Or, since it probably involves bootloaders, etc., could you not chroot?
One probably could, if one knew the proper command(s) to accomplish that. And one of us still doesn't.
 
Old 04-23-2009, 03:12 PM   #8
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,049

Rep: Reputation: 170Reputation: 170
Ah, so sorry.

My experience with Ubuntu can be measured in milliseconds, but I'm aware that its (mis)use of root runs a bit contrary to what some may consider *traditional* Linux behaviour, so it's probably better that a Ubuntuguru assist you here, lest I give you wrong advice.

That being said, I'm pretty sure Ubuntu allows you to use "sudo" to run administrative tasks. So, in a terminal or console, you would issue the command sudo <install rockbox> and carry on from there.


Sorry I can't be of more help along these lines....


cheers,
 
Old 04-23-2009, 03:20 PM   #9
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
Quote:
Originally Posted by d_wing View Post
Not yet. From what I've read, the auto installer has some advantages regarding upgrading, installing themes, and uninstalling without hosing the factory install. Since I've never used it, that seemed prudent.

edit - Just found this in the Rockbox manual -
Administrator/Root rights.
Installing the bootloader portion of Rockbox requires you to have administrative (Windows) or root (Linux) rights. Consequently when doing either the automatic or manual bootloader install, please ensure that you are logged in with an administrator account or have root rights.


So then, what advantage would a manual install have?
Well,i installed Rockbox on my Iaudio X5 the manual way.
Yes the player was mounted but not as root.
All i had to do was unzip the .zip file to the root of my player.
A .rockbox directory is created.
Then copy the binary bootloader to the firmware directory.
Unmount the player and disconnect from machine.
Then plug in the charger to flash the firmware.

As far as i remember the only time i needed root privileges was to unzip the file.
If you post what make and model player you are trying to install on i may be able to help further.
 
Old 04-23-2009, 04:53 PM   #10
d_wing
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by the trooper View Post
Well,i installed Rockbox on my Iaudio X5 the manual way.
Quote:
Originally Posted by d_wing View Post
"Also, make sure you have appropriate permissions to access the player. Ipod and Sansa players require you to have administrator permissions. "

It's a Sansa, and as the Rockbox site specifies, it requires admin permissions.

All the commands I've tried so far have failed to yield successful results. I know Ubuntu is a little different than some distros, but still, there has to be a way.
 
Old 04-23-2009, 04:59 PM   #11
d_wing
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Original Poster
Rep: Reputation: 1
I should add that the same question, posted in the Ubuntu forums, has seen 24 views and no replies (which is about what I'd expected), so I do appreciate that some of you are trying to help.

I have access to an older Mandriva install, if that would help.
 
Old 04-24-2009, 08:34 AM   #12
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
Quote:
Originally Posted by d_wing View Post
It's a Sansa, and as the Rockbox site specifies, it requires admin permissions.

All the commands I've tried so far have failed to yield successful results. I know Ubuntu is a little different than some distros, but still, there has to be a way.
Have you looked at the guide for the Sansa players?
Here's a quote regarding an automated install:

Quote:
First, start RockboxUtility. If you have never used it before you'll get a configuration error. This is normal as you haven't configured RockboxUtility for your player yet. If you haven't connected your player to the PC do this now. Make sure the player appears on the PC, on windows it needs to get a drive letter assigned. On linux and OS X make sure the player is mounted. If the Utility can't find the player is linux, try running it as root.
So from that i would say you mount the player as normal,run the installer as root if it does not detect the player.
The second quote is regarding a manual install:

Quote:
Bootloader installation from Linux

1. Download sansapatcher from http://download.rockbox.org/bootload...6/sansapatcher (32-bit x86 binary) or http://download.rockbox.org/bootload...4/sansapatcher (64-bit amd64 binary). You can save this anywhere you wish, but the next steps will assume you have saved it in your home directory.
2. Attach your player to your computer.
3. Open up a terminal window and type the following commands:

cd $HOME
chmod +x sansapatcher
./sansapatcher

Note: You need to be the root user in order for sansapatcher to have sufficient permission to perform raw disk access to your player.
4. If all has gone well, you should see some information displayed about your e200 and e200R Series and a message asking you if you wish to install the Rockbox bootloader. Press i followed by ENTER, and sansapatcher will now install the bootloader. After a short time you should see the message [INFO] Bootloader installed successfully. Press ENTER again to exit sansapatcher.
So how i read it is that you download the bootloader,change it's permissions to run it,then run the installer also as root.
At no point does it say that the player must be mounted as root.
I'd suggest reading the install manual/s here are the links for Sansa:

http://www.rockbox.org/twiki/bin/vie...aphicalInstall
http://download.rockbox.org/manual/r...box-build.html
http://download.rockbox.org/manual/r...box-build.html

You will need root permissions to install the software,not to mount the player.
 
Old 04-24-2009, 09:59 AM   #13
d_wing
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Thanks for all the replies. The situation has been resolved, but not the way I'd originally intended. I had a time issue, so I used someone's XP box to do the install - not what I wanted, but it's done. No matter what I tried, I could not install in Ubuntu.
 
  


Reply

Tags
mount, root, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount MP3 player shankvio Linux - General 2 06-26-2007 10:47 AM
mount my mp3 player eerstkoffie Linux - Hardware 1 08-09-2005 08:27 AM
mount an mp3 player SystemDownfall Linux - Hardware 4 04-15-2005 06:47 AM
Can't mount mp3 player redneon Linux - Hardware 4 06-03-2004 06:11 AM
mount mp3 player to /mnt/mp3? Muzzy Linux - General 4 05-09-2004 06:31 AM


All times are GMT -5. The time now is 06:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration