View unanswered posts | View active topics It is currently Sun May 19, 2013 7:09 pm



Reply to topic  [ 38 posts ]  Go to page 1, 2, 3, 4  Next
 [HOW TO] use different filesystem for main storage 
Author Message

Joined: Sat Dec 05, 2009 2:46 am
Posts: 2
Post [HOW TO] use different filesystem for main storage
Code:
Estimated Time:          10 min (if your box is empty)
Level:                   Expert
Operating System(s):     NA
Category:                Networking / Storage
Firmware:                NA

WARNING: this can and probably will destroy your data, please backup your storage and root partition

I've changed the main storage filesystem to reduce the strain on the device while torrenting. NTFS isn't exactly cpu friendly ;). I tried changing the first partition to the ext3 filesystem, this however made the box want to format the drive everytime I turned it on. So here's what I did to circumvent that problem.

Attachment:
file2aff.png
file2aff.png [ 43.55 KiB | Viewed 291 times ]


I've used gparted for this, being on a linux system. I reduced the size of the first partition to 8mb using NTFS, this tricks the system in thinking all is fine. After which I created a new primary partition to fill the gap. This is recognized by the device as the 4th partition. (I increased the size of the swappartition and the root partition while I was already screwing up my partitions :)).

When done with this (using software available to you) just add the new partition to /etc/fstab.

Code:
[root@PlayonHD ~]# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system>   <mount pt>   <type>   <options>      <dump>   <pass>
#/dev/root   /      ext3   rw,noauto      0   1
none      /proc      proc   defaults      0   0
devpts      /dev/pts   devpts   defaults,gid=5,mode=620   0   0
none      /sys      sysfs   defaults      0   0
/dev/mtdblock/2   /usr/local/etc   yaffs2   rw,noauto      0   0
none      /tmp      ramfs   defaults      0   0
/dev/scsi/host0/bus0/target0/lun0/part4 /tmp/hdd/volumes/HDD1 ext3 defaults 0 0


Available filesystems are (at least) ext2, ext3, ext4 and minix. I have no idea if HFS is supported (I don't use it).

If you don't understand how this works, you probably don't want to do this and wait until the AC Ryan team allows for different filesystems as the main storage partition.


Tue Dec 08, 2009 2:19 am
Profile

Joined: Thu Dec 24, 2009 8:09 am
Posts: 190
Post Re: [HOW TO] use different filesystem for main storage
Thanks, it works great, but it's even easier.

Image
I removed all partitions , and added the new ones in this order:
sd*1=ntfs
sd*2=swap
sd*3=ext3
sd*4 and up: free to use.


Startup script (optware)
/opt/etc/init.d/S01mount
Code:
umount /tmp/hdd/volumes/HDD1
mount /dev/scsi/host0/bus0/target0/lun0/part4 /tmp/hdd/volumes/HDD1 -o noatime


Tips:
* Do not use Ext4 it's not really supported and mounts in ext3 compatibility mode.
* install optware and use nano as the text editor, it's not as insane as vi...
* Do not use the usb-cable to format put the disk in a real pc.

_________________
- Metafeeds.com RSS portal - |Extra space on root fs | optware | ext3 data partition
Metafeeds Installer


Sat Dec 26, 2009 12:11 am
Profile

Joined: Tue Aug 25, 2009 7:27 pm
Posts: 24
Post Re: [HOW TO] use different filesystem for main storage
With YAMJ Trial firmware for Playon!HD (Released 290110)
viewtopic.php?f=44&t=4183
this doesn't work.

I guess they have changed the mount point of the main disk.


Sun Jan 31, 2010 10:41 pm
Profile

Joined: Thu Dec 17, 2009 8:42 am
Posts: 273
Post Re: [HOW TO] use different filesystem for main storage
On my system, with firmware 2901, the mount point for the internal drive is not part4 (4th partition) but 1st partition (part1). Maybe that'll help?

_________________
PlayOn!HD [ Firmware r3643 YAMJ 6th Trial European version ]
Philips TV 29pt9005/12 [old skool]
Sony STR-DB780QS AV Receiver

ImageImage


Sun Jan 31, 2010 11:00 pm
Profile

Joined: Tue Aug 25, 2009 7:27 pm
Posts: 24
Post Re: [HOW TO] use different filesystem for main storage
azalin wrote:
On my system, with firmware 2901, the mount point for the internal drive is not part4 (4th partition) but 1st partition (part1). Maybe that'll help?



Thanks but this is the device... part1 is the partition.

I'm sure about the partition, and I have the disc mounted on that partition ,although since I do not have optware instaled, i use the file /usr/local/etc/rcS.

What you mean by firware 2901, it's the revision or the date (same as posted in my link)?

Best regards!


Sun Jan 31, 2010 11:13 pm
Profile

Joined: Thu Dec 17, 2009 8:42 am
Posts: 273
Post Re: [HOW TO] use different filesystem for main storage
What I meant was: /dev/scsi/host0/bus0/target0/lun0/part1
Anyway, might be different depending on in what firmware version you formatted the drive... if you ever had the POHD format it :)
The 2901 is the revision number ... could be mistaken for the release date of the YAMJ trial, but no :) It is the last official released firmware.

_________________
PlayOn!HD [ Firmware r3643 YAMJ 6th Trial European version ]
Philips TV 29pt9005/12 [old skool]
Sony STR-DB780QS AV Receiver

ImageImage


Sun Jan 31, 2010 11:18 pm
Profile

Joined: Tue Aug 25, 2009 7:27 pm
Posts: 24
Post Re: [HOW TO] use different filesystem for main storage
I will try with that firmware...


Sun Jan 31, 2010 11:27 pm
Profile

Joined: Tue Aug 25, 2009 7:27 pm
Posts: 24
Post Re: [HOW TO] use different filesystem for main storage
Still no luck.

Code:
/ # fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1               2      121541   976270050    7  HPFS/NTFS
/dev/sda2          121542      121561      160650   82  Linux swap
/dev/sda3          121562      121581      160650   83  Linux
/dev/sda4               1           1        8001    7  HPFS/NTFS

Partition table entries are not in disk order


Code:
/ # mount
/dev/root on / type yaffs2 (ro,noatime)
none on /dev type devfs (rw)
none on /proc type proc (rw,nodiratime)
devpts on /dev/pts type devpts (rw)
none on /sys type sysfs (rw)
none on /tmp type ramfs (rw)
/dev/mtdblock/2 on /usr/local/etc type yaffs2 (rw,noatime)
/dev/rd/0 on /mnt/rd type vfat (rw,nodiratime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1)
/dev/scsi/host0/bus0/target0/lun0/part4 on /tmp/usbmounts/sda4 type ufsd (ro,nodiratime)
/dev/scsi/host0/bus0/target0/lun0/part1 on /tmp/hdd/volumes/HDD1 type ext3 (rw,noatime)



and I can't see the files in HDD menu.


Sun Jan 31, 2010 11:43 pm
Profile

Joined: Thu Dec 17, 2009 8:42 am
Posts: 273
Post Re: [HOW TO] use different filesystem for main storage
Quote:
/dev/sda1 2 121541 976270050 7 HPFS/NTFS


Looks like your first partition is NTFS and not EXT3 even though you try to mount it EXT3 in your mount script:

Quote:
/dev/scsi/host0/bus0/target0/lun0/part1 on /tmp/hdd/volumes/HDD1 type ext3 (rw,noatime)


Your goal is to format and mount your main media partition as EXT3 instead of NTFS .. right? Because from your fdisk it appears that the main media partition is still NTFS. That might be what is wrong. Unless I am missing something.

_________________
PlayOn!HD [ Firmware r3643 YAMJ 6th Trial European version ]
Philips TV 29pt9005/12 [old skool]
Sony STR-DB780QS AV Receiver

ImageImage


Mon Feb 01, 2010 1:58 pm
Profile

Joined: Tue Aug 25, 2009 7:27 pm
Posts: 24
Post Re: [HOW TO] use different filesystem for main storage
I think the problem is that my first partition is not ntfs, because of this message:
Code:
Partition table entries are not in disk order


I will format the disk again, after making a backup.

Thanks for your attention!


Mon Feb 01, 2010 3:34 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 38 posts ]  Go to page 1, 2, 3, 4  Next

Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.