Transmission/Optware issue

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
LEDunk2007
DD-WRT Novice


Joined: 13 Feb 2010
Posts: 31

PostPosted: Thu Jun 24, 2010 15:32    Post subject: Transmission/Optware issue Reply with quote
Have:

WRT610N V2 running DD-WRT v24-sp2 (04/23/10) mega - build 14311

Working install of Optware using Frater's script on an EXT3 partition on a 2.5" external WD 1TB hard disk.

Need:

Way to get the Transmission daemon to save torrent to to /opt versus /mnt. Permission denied error comes up when trying to save data to the /opt partition; e.g. opt/Downloads/Torrents. My partitions look like this:

root@Magny-Cours:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 5.7M 5.7M 0 100% /
/dev/root 5.7M 5.7M 0 100% /
/dev/discs/disc0/part2
479G 339M 473G 1% /opt
/dev/sda1 125M 86M 39M 69% /mnt

Also, Transmission is now returning this error:

root@Magny-Cours:~# service transmission start
Start service "transmission" (/opt/etc/init.d/S90transmission)
service: Start service: "transmission" (/opt/etc/init.d/S90transmission)
Starting Torrent client: transmission-daemon
sudo: /opt/etc/sudoers is owned by uid 34, should be 0
sudo: no valid sudoers sources found, quitting
renice: 34: getpriority: No such process

To me this looks like some sort of permission error but I am not sharp enough to know the proper commands to deal with the issue.

Any help is appreciated.
Sponsor
PaulP
DD-WRT User


Joined: 09 May 2010
Posts: 317

PostPosted: Thu Jun 24, 2010 16:23    Post subject: Re: Transmission/Optware issue Reply with quote
LEDunk2007

You need update optware:
Code:

ipkg-opt update
ipkg-opt upgrade


After this all will ok.
LEDunk2007
DD-WRT Novice


Joined: 13 Feb 2010
Posts: 31

PostPosted: Thu Jun 24, 2010 23:40    Post subject: Reply with quote
No dice. Problem remains the same.
snake98
DD-WRT User


Joined: 18 Jun 2008
Posts: 90

PostPosted: Fri Jun 25, 2010 15:27    Post subject: Reply with quote
run e2fscheck

e2fsck -p /dev/scsi/host0/bus0/target0/lun0/part1
on the partition, do on every boot, on my optware and main storage drive.

give permission to everyone on the directory.
chmod 776 $directory_to_change
LEDunk2007
DD-WRT Novice


Joined: 13 Feb 2010
Posts: 31

PostPosted: Fri Jun 25, 2010 16:04    Post subject: Reply with quote
Output from the e2fsck check. I altered the command so that it looked at the target directory.

Output:

root@Magny-Cours:~# e2fsck -p /dev/discs/disc0/part2
/dev/discs/disc0/part2 is mounted.

WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes


EXT3Black: recovering journal
e2fsck: Bad magic number in super-block while trying to re-open EXT3Black
e2fsck: io manager magic bad!
root@Magny-Cours:~#

Something tells me that this command might be for an EXT2 filesystem. Is this the case?

The chmod command as typed there with the directory that I am trying to create to download to with Transmission as given in the example has failed. Is the 776 some sort of parameter? I know there is the 0.0, root.root, or root:root syntax but I am unsure if this will work.
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Fri Jun 25, 2010 16:46    Post subject: Reply with quote
Code:
ls -l /opt/etc/sudoers
chown root:root /opt/etc/sudoers
chmod a-w /opt/etc/sudoers
chmod o-r /opt/etc/sudoers
ls -l /opt/etc/sudoers

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
LEDunk2007
DD-WRT Novice


Joined: 13 Feb 2010
Posts: 31

PostPosted: Thu Jul 01, 2010 11:22    Post subject: Reply with quote
My apologies for the long hiatus. Life called in the most terrible way; I will spare the details.

Sudoers error solved. Ago tibi gratias, Frater.

Anyone have any input on why I cannot get sufficient privileges to write to the /opt directory to save my torrents in Transmission?

The following error is returned from the web-GUI:

Permission denied: /opt/torrents/...
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Thu Jul 01, 2010 18:49    Post subject: Reply with quote
Post either a screen shot of your USB GUI mounted info, or a CLI output of the command mount

I believe something is wrong with disk mount order from your output:

Code:
root@Magny-Cours:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 5.7M 5.7M 0 100% /
/dev/root 5.7M 5.7M 0 100% /
/dev/discs/disc0/part2
479G 339M 473G 1% /opt
/dev/sda1 125M 86M 39M 69% /mnt



it should look like this:

Code:
root@Asus:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
rootfs                5.7M  5.7M     0 100% /
/dev/root             5.7M  5.7M     0 100% /
/dev/discs/disc0/part1
                     1012M  229M  732M  24% /opt
/dev/sda3             686G  125G  527G  20% /mnt

_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
LEDunk2007
DD-WRT Novice


Joined: 13 Feb 2010
Posts: 31

PostPosted: Sat Jul 03, 2010 16:14    Post subject: Reply with quote
Perhaps it is time to reformat the drive, this time with the partitions recommended in the formatting tutorial, although it was not my original intention.

From my understanding that information was dated but I must be mistaken.

If there is any other particular way to format the drives outside what is said in the tutorial now would be the time to voice your suggestions.

EDIT: The attachment below is from today's reformat attempt. The file permissions error still exists even with the new resized /opt partition.



USB Services Info.png
 Description:
 Filesize:  61.34 KB
 Viewed:  16813 Time(s)

USB Services Info.png


frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sat Jul 03, 2010 16:39    Post subject: Reply with quote
If you have a big disk you could format it this way:

256 MB SWAP
1 GB ext3 mount to /opt
the rest ext3 and mount to /mnt

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
PaulP
DD-WRT User


Joined: 09 May 2010
Posts: 317

PostPosted: Sat Jul 03, 2010 17:03    Post subject: Reply with quote
frater wrote:
If you have a big disk you could format it this way:

256 MB SWAP
1 GB ext3 mount to /opt
the rest ext3 and mount to /mnt


Dear frater, how I can correctly mount swap partition?
Which syntax of "mount" command I must to use?
LEDunk2007
DD-WRT Novice


Joined: 13 Feb 2010
Posts: 31

PostPosted: Sat Jul 03, 2010 17:25    Post subject: Reply with quote
Why exactly is it impossible for any other program to write data to the /opt directory then? This makes no sense unless the directory is write protected by the operating system in a way similar to Windows.
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sat Jul 03, 2010 17:26    Post subject: Reply with quote
Aren't you using optware?
It's in /opt/etc/init.d/S10swap

/opt/sbin/swapon <device>

Not all firmwares have it enabled...

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sat Jul 03, 2010 17:28    Post subject: Reply with quote
LEDunk2007 wrote:
Why exactly is it impossible for any other program to write data to the /opt directory then? This makes no sense unless the directory is write protected by the operating system in a way similar to Windows.

Who says it is?

I gues you are asking it because you haven't mounted anything on /opt and you think you can still write there.

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
LEDunk2007
DD-WRT Novice


Joined: 13 Feb 2010
Posts: 31

PostPosted: Sun Jul 04, 2010 19:09    Post subject: Reply with quote
Okay I just got done with the format of the drive. Currently there are four partitions on the drive.

The first partition is for Optware, the next one is for swap, and the last two are for data. They are spaced (in order) for 100GB, 50GB, 390GB, and 390GB respectively. The 50GB partition is formatted in Linux swap.

Optware installation went smoothly on partition one and it seems that it is mounted correctly.

Now, what are the commands needed to mount the other three partitions?

Lastly, is there some sort of automount script that needs altered so that all four of the partitions are mounted correctly on each reboot?

I know these common queries are not welcome sometimes but the tutorials are not concise.

Output from the Web GUI/Services/USB Section:

--- /dev/discs/disc0/disc
Block device, size 930.9 GiB (999501594624 bytes)
DOS/MBR partition map
Partition 1: 97.66 GiB (104864062464 bytes, 204812622 sectors from 63)
Type 0x83 (Linux)
Ext3 file system
Volume name "BlackOpt"
UUID 6368746F-2074-616B-6F65-207575696400 (NCS)
Volume size 97.66 GiB (104864062464 bytes, 102406311 blocks of 1 KiB)
Partition 2: 48.83 GiB (52436160000 bytes, 102414375 sectors from 204812685)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 48.83 GiB (52436148224 bytes, 12801794 pages of 4 KiB)
Partition 3: 390.6 GiB (419431703040 bytes, 819202545 sectors from 307227060)
Type 0x83 (Linux)
Ext3 file system
Volume name "EXT3BD1D"
UUID 6368746F-2074-616B-6F65-207575696400 (NCS)
Volume size 390.6 GiB (419430401024 bytes, 409600001 blocks of 1 KiB)
Partition 4: 393.7 GiB (422762941440 bytes, 825708870 sectors from 1126429605)
Type 0x83 (Linux)
Ext3 file system
Volume name "EXT3BD2D"
UUID 6368746F-2074-616B-6F65-207575696400 (NCS)
Volume size 393.7 GiB (422762941440 bytes, 412854435 blocks of 1 KiB)
Status: Mounted on /opt

Output from the df -h and ls -l /dev/scsi/host0/bus0/target0/lun0 commands in the command shell:

root@Magny-Cours:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 5.7M 5.7M 0 100% /
/dev/root 5.7M 5.7M 0 100% /
/dev/discs/disc0/part1
90G 210M 85G 1% /opt

root@Magny-Cours:~# ls -l /dev/scsi/host0/bus0/target0/lun0
total 0
brw------- 1 root root 8, 0 Jan 1 1970 disc
brw------- 1 root root 8, 1 Jan 1 1970 part1
brw------- 1 root root 8, 2 Jan 1 1970 part2
brw------- 1 root root 8, 3 Jan 1 1970 part3
brw------- 1 root root 8, 4 Jan 1 1970 part4
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum