Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi !
I'm running my DNS-313 with D-Link firmware 1.03 ... and have installed FunPlug 0.5 on it.
My DNS-313 hard drive is organized like this:
root@terabox:/# df -h Filesystem Size Used Available Use% Mounted on rootfs 3.9M 1.9M 1.7M 53% / /dev/root 3.9M 1.9M 1.7M 53% / /dev/sda3 478.5M 43.5M 410.3M 10% /mnt/sda3 tmpfs 14.7M 584.0k 14.1M 4% /tmp /dev/sda2 930.4G 135.6G 794.8G 15% /mnt/HD_a2 /dev/sda4 189.9M 143.2M 36.9M 80% /mnt/HD_a4
Because the main Data partition (/mnt/HD_a2) is NTFS ... all FunPlug apps are installed in /mnt/HD_a4/, which is only 190 MB ... (installing Linux programs on an NTFS file system seems to be a problem: for example, it's like NTFS does not support symbolic links ...)
As you can see, with only a dozen of packages (toolchain, etc...), I'm almost running out of space on /mnt/HD_a4 !
So my question is:
If I try to resize this ext2 partition with "Gparted", through USB from a Linux computer ... will the DNS-313 still work after that ?
Another solution would be to format the main big partition (/mnt/HD_a2) in ext2 or ext3, instead of NTFS, as described in the topic Howto change main partition to ext2, but it doesn't seem to be simple ... as D-Link firmware tries to mount /mnt/HD_a2 in NTFS by default ...
Any advice ?
Thanks ;-)
Last edited by Electrocut (2009-04-19 15:28:55)
Offline
After reading the "Howto change main partition to ext2" topic more carefully, I understood that the described procedure was nothing more than a resize, followed by a modification of the "mounting table" like this:
Before:
/dev/sda2 (big NTFS) -> /mnt/HD_a2 /dev/sda4 (small ext2) -> /mnt/HD_a4
After:
/dev/sda2 (small NTFS) -> /mnt/HD_a4 /dev/sda4 (big ext2) -> /mnt/HD_a2
So, there is no reason why the idea of resizing the partitions (without modifing the mounting table at all, as the previous person did) wouldn't work.
Thats why I decided to start resizing my partitions :
- first step : to reduce /dev/sda2 size by around 1.8 GB
- second step : to increase /dev/sda4 size by 1.8 GB (so it will be 2 GB, instead of ~ 200 MB before)
Of course, I have done a backup of my data on the NTFS file system before.
I'm doing it from an Ubuntu 1.8 Live CD, with Gparted.
Looks like the first step is going to be veeeery long (9 hours remaining ...)
I'll keep you updated.
Last edited by Electrocut (2009-04-19 19:27:38)
Offline
Because resizing the NTFS partition was taking too much time (indeed, 9 hours was just for reading the entire partition ... moving data was supposed to be 20 hours more ...), I had to give up "step 1".
So I canceled the operation ... of course /dev/sda2 (/mnt/HD_a2) was broken after that.
So, I used fdisk, from the Ubuntu Live CD, with the DNS-313 connected with USB, to delete and create a new NTFS partition, 2 GB smaller :
Commands were something like that :
Delete old NTFS partition on /dev/sda2 :
Command (m for help): d Partition number (1-4): 2
Create new NTFS partition /dev/sda2,
but don't use the default "first cylinder" value, so you will leave free space available, between /dev/sda4 and /dev/sda2 :
Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (152-121601, default 152): 185 Using value 185 Last cylinder or +size or +sizeM or +sizeK (185-121601, default 121601): 121601
Then Set the new partition to type NTFS, and Save
Command (m for help): t Partition number (1-4): 2 Hex code (type L to list codes): 7 Changed system type of partition 2 to 7 (HPFS/NTFS) w
Then, because we have made some free space available just above /dev/sda4, you can launch Gparted, from Ubuntu Live CD, and Resize /dev/sda4, from 200 MB to ... the new size (2 GB for me)
Finally, you can format the new NTFS partition, from Windows, still through USB connection.
The DNS-313 should start without any problem, after theses operations.
So the answer : resizing /dev/sda4 (ext2) and /dev/sda2 (NTFS) partitions on the DNS-313, to get more space for your FunPlug apps ? Yes you can !!
Thanks to "naffarin", his topic helped me.
Last edited by Electrocut (2009-04-21 20:51:13)
Offline
Hello,
I tried to do as you say: increase the size of the partition HD_a2. I followed the following steps
- in USB mode, under Window, I used Partition Magic to reduce the size of the ntfs partition (I didn't have to backup any data this way)
- in USB mode, under Ubuntu, I used Gparted to increase the size of the ext2 partition
so far, so good: in USB mode, I can see my partitions, with their new sizes, and the data in them are still good
Then, I try to start in Ethernet mode... and it stops with a green light! I don't want to format everything; do anyone know of a way around this ?
Offline
Hi!
There are 2 ext2 partition, /dev/sdb3 and /dev/sdb4
You haven't touch /dev/sdb3, right ?
I don't really know why your device is not booting anymore. Maybe using fdisk command line + format from Windows does a better job on NTFS than Partition Magic ?
Offline
Hi,
thanls for answering so fast!
So: after verification , in Gparted, it shows 4 partitions:
on dev/sdb1 linux-swap
on dev/sdb2 ext2 : SYSTEM I didn't touched this one
on dev/sdb3 ext2 : I've increased this one to 2Go
on dev/sd4 ntfs : I've reduced this one using Partition magic
I don't think there is a mistake: I can see with ubuntu the ffp folders under sdb3
Last edited by L1 (2012-01-17 02:13:20)
Offline
I don't know either, everything looks right :-/
You can try to reset the device to default settings, and if it's not enough, backup your entire data, and reformat disc, using Dlink Quick Connect.
Just in case, to reset the device:
- Unplug the power supply
- Press the Reset button
- Connect the power supply, and turn the DNS-313 ON, while keeping the Reset button pressed ... and keep the Reset button pressed, for about 1 minute, just to be sure
Offline
Ok, thanks: tried it, but it didn't work :-(
I'm lauching a full backup af everything on the NAS (pfff)... and then I'll reinstall everything (this is sooo annoying: it all started when trying to install mySQL in conjonction with php.... and trying to understand why it wouldn't work, I foudn out there was not enough space to install mysql it in the first place!)
I'll get back if I can manage my partitions next time
Last edited by L1 (2012-01-20 03:54:00)
Offline
Ok, I'm very happy to say I've finnaly managed to get my NAS on its feet... after backing up everything and several tries, here how it worked
1/ deleted absolutely every partition on my NAS (in USB mode, with Gparted)
2/ click'n connect for a fresh new installation
I did a lot of checks to be sure my NAS was OK... I found out that ftp was working but not the samba anymore (no idea why)
Anyway: then I followed your procedure to the letter:
3/ in USB mode, under ubuntu: fdisk to delete and resize the NTFS partition
4/ in USB mode, under ubuntu: GParted to resize the ext2 partition
5/ restart the NAS and re-install ffp (again, if I don't put ffp back, the shared drive wouldn't work, I don't know why, because the ftp does work!)
Offline
Great news and thank you for your feedback! Enjoy your big space on ext2 partition for ffp and other stuffs ;-)
Offline