LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   mount mp3 player as root (http://www.linuxquestions.org/questions/linux-hardware-18/mount-mp3-player-as-root-721206/)

d_wing 04-23-2009 12:47 PM

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?

repo 04-23-2009 12:50 PM

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?

d_wing 04-23-2009 01:00 PM

Quote:

Originally Posted by repo (Post 3518660)
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. "

the trooper 04-23-2009 01:18 PM

I assume you are trying to use the automated installation on an Ipod or Sansa Player?.
Have you considered installing Rockbox manually?

d_wing 04-23-2009 01:29 PM

Quote:

Originally Posted by the trooper (Post 3518689)
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?

mrclisdue 04-23-2009 01:39 PM

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,

d_wing 04-23-2009 02:00 PM

Quote:

Originally Posted by mrclisdue (Post 3518710)
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.

mrclisdue 04-23-2009 02:12 PM

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,

the trooper 04-23-2009 02:20 PM

Quote:

Originally Posted by d_wing (Post 3518703)
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.

d_wing 04-23-2009 03:53 PM

Quote:

Originally Posted by the trooper (Post 3518769)
Well,i installed Rockbox on my Iaudio X5 the manual way.

Quote:

Originally Posted by d_wing (Post 3518673)
"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.

d_wing 04-23-2009 03:59 PM

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.

the trooper 04-24-2009 07:34 AM

Quote:

Originally Posted by d_wing (Post 3518881)
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.

d_wing 04-24-2009 08:59 AM

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.


All times are GMT -5. The time now is 11:09 AM.