Posted: Thu Jun 24, 2010 15:32 Post subject: Transmission/Optware issue
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:~# 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.
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.
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
_________________ 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
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.
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
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.
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
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
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: