DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-01-08 11:07:36

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Standard mode in 1.04 firmware creates 2 partition?

Hi all,

I recently upgraded to the 1.04 firmware and used the web admin utility to reformat my 2x 500gb hdds to standard mode (previously was on raid0). When format was completed, I noticed when I telnet in that I can see 4 mount pts HD_a2, HD_a4, HD_b2 and HD_b4. DF yields the following results.

Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/ram0                 9911      7033      2366  75% /
/dev/sda2            479691308      4200 479687108   0% /mnt/HD_a2
/dev/sdb2            479691308        24 479691284   0% /mnt/HD_b2
/dev/sda4               497861        22    497839   0% /mnt/HD_a4
/dev/sdb4               497861         3    497858   0% /mnt/HD_b4

Question, how did the HD_a4 and HD_b4 come about and how do I get rid of it? BTW, when I did a LS in HD_a4, I see a .lpd dir (but not in HD_b4). I'm guessing this is for the print spool? But 500MB is alot for the print spool isn't it?

Offline

 

#2 2008-01-08 15:13:54

Zen Seeker
Member
Registered: 2007-11-28
Posts: 74

Re: Standard mode in 1.04 firmware creates 2 partition?

I have two 500GB in standard mode using 1.04/63, fun_plug v0.4. I upgraded to 1.04 then bought a second drive, formated, and everything has been fine since. (No additional partitions created.)

Offline

 

#3 2008-01-08 15:26:28

KRH
Member
From: Denmark
Registered: 2006-10-27
Posts: 219
Website

Re: Standard mode in 1.04 firmware creates 2 partition?

my guess is that its for bittorrent and other stuff that will be added later on.


First user to fun_plug the dns-323.

Offline

 

#4 2008-01-09 03:13:55

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: Standard mode in 1.04 firmware creates 2 partition?

Thanks for the replies. I think I've found the problem. I believe it was due to the RAID0 config I was using on the drives previously as I remembered using the web GUI, when creating the RAID0 config, it doesn't allow you to select the full disk space avail. So when I reconfigured it as standard, I'm guessing that the system doesn't recreate the partitions but simply just reformat the drives leaving the four partitions. I've tried to select standard mode a few times there after and the system simply reformats the drives. I then subsequently used fdisk to remove all the partitions manually before rebooting. This time round, the system is forced to create the partitions and it does so using the full capacity of the drives. Just in case anyone else is interested.

Somehow, while moving files between the NAS and my temp storage (a win2003 x64 svr), some files appeared to be missing so I tried to delete the whole folder in the NAS to try again. However, the delete operation fails halfway through saying folder is not empty. When I checked using both windows explorer and telnet, the folder "appears" to be empty! How can I forcibly remove the folder in this case?

Last edited by bfg100k (2008-01-09 07:24:01)

Offline

 

#5 2008-01-09 05:07:52

bfaber
Member
From: Beaverton, OR
Registered: 2007-11-24
Posts: 17
Website

Re: Standard mode in 1.04 firmware creates 2 partition?

I tried nuking partitions, restarting and then setting the type as RAID1 and I got an extra partition as well.

I think its a 1.04 bug/feature..

btf

Offline

 

#6 2008-01-09 07:36:06

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: Standard mode in 1.04 firmware creates 2 partition?

ok.. it looks like its not just because of the RAID0 config setup. I just tried re-selecting standard mode (old config was already on standard mode with my manually configured partitions) and the 500mb sda4 and sdb4 appear again sad

Offline

 

#7 2008-01-09 17:12:23

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: Standard mode in 1.04 firmware creates 2 partition?

bfg100K - Which build version of FWv1.04b?? are you using when these formatting
problems are happening?


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#8 2008-01-10 06:05:53

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: Standard mode in 1.04 firmware creates 2 partition?

I'm using 1.04b63.

Offline

 

#9 2008-01-26 03:08:53

jayas
Member
Registered: 2008-01-24
Posts: 151

Re: Standard mode in 1.04 firmware creates 2 partition?

Hello,

I had DNS-323 formatted RAID1 using 1.03 and upgraded to 1.04b82.  It appears 1.04 was happy with the partitions created by 1.03:

# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/ram0                 9911      8172      1227  87% /
/dev/md0             478908352   8877404 470030948   2% /mnt/HD_a2

However, I cannot seem to be able to dump the partition table using fdisk:

# mount
%root% on / type unknown (rw)
proc on /proc type proc (rw)
/image.cfs on /sys/crfs type cramfs (rw,loop=/dev/loop0)
/dev/md0 on /mnt/HD_a2 type ext2 (rw,usrquota,grpquota)
none on /proc/bus/usb type usbfs (rw)
# fdisk /dev/md0 -l
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF diskl
el
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 121636128.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
bad command.
exit status 0
success

Any ideas whats going on here?

Thanks

Jaya


H/W=B1 F/W=1.04; RAID1: SAMSUNG HD501LJ T166 (500GB, SATA 3.0Gb/s 16MB)

Offline

 

#10 2008-01-26 09:08:19

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: Standard mode in 1.04 firmware creates 2 partition?

I think part of the problem is the options flag '-l' appears after the device name in the fdisk command

try the fdisk command like this

Code:

# fdisk -l /dev/md0

Disk /dev/md0: 248.0 GB, 248041439232 bytes
2 heads, 4 sectors/track, 60556992 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table

The other part is that RAID devices cannot be partitioned, like ordinary disks can,
so fdisk on /dev/md0 does not make any sense.  To look each disk use:

Code:

# fdisk -l /dev/sda

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1          66      530113+ 82 Linux swap
/dev/sda2              67       30222   242228070  83 Linux
# fdisk -l /dev/sdb

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1               1          66      530113+ 82 Linux swap
/dev/sdb2              67       30222   242228070  83 Linux

Last edited by mig (2008-01-26 09:25:45)


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#11 2008-01-26 10:33:19

jayas
Member
Registered: 2008-01-24
Posts: 151

Re: Standard mode in 1.04 firmware creates 2 partition?

Thanks Sig for your hints.  The problem is 1.03 fdisk requires device first followed by actions, and is  just not able to handle my disks.

I was able to dump partition table using Fonz's 0.3 release of busybox:

It appears that 1.04 creates an extra partition 4:

Code:

~ # fdisk -l /dev/sda

Unable to open -l
exit status 1
~ # ./busybox fdisk -l /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1          66      530113+ 82 Linux swap
/dev/sda2             131       60801   487339807+ 83 Linux
/dev/sda4              67         130      514080  83 Linux

Partition table entries are not in disk order

but is happy to work with 1.03 formatted disks containing:

Code:

~ # ./busybox fdisk -l /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1          66      530113+ 82 Linux swap
/dev/sda2              67       60638   486544590  83 Linux

Jaya

Last edited by jayas (2008-01-26 10:33:47)


H/W=B1 F/W=1.04; RAID1: SAMSUNG HD501LJ T166 (500GB, SATA 3.0Gb/s 16MB)

Offline

 

#12 2008-01-27 00:11:21

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Standard mode in 1.04 firmware creates 2 partition?

I own the CH3SNAS from Conceptronic, and I had 2 partitions from the very beginning. The main one is called hd_a2, and the second one is about 500MB called hd_a4. Not a clue what it is for though sad

Offline

 

#13 2008-01-27 11:08:07

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: Standard mode in 1.04 firmware creates 2 partition?

if you look inside them, you will see that the print queue spool file in there. but 500mb for spooling??!

Offline

 

#14 2008-01-27 18:06:25

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: Standard mode in 1.04 firmware creates 2 partition?

I don't seem to have any mystery partitions.

I'm using the 1.04b84 firmware.

With 1.03 I'd had the disks as a RAID 0 array, then I upgraded to 1.04b82, and reformatted to two standard disks. The reformat operation needed to be run 3 times before is seemed to be completed properly (it got stuck at 94% complete the first 2 times).

Then I upgraded to 1.04b84 firmware. I have the with fonz funplug 1.4_test. I can see this information about the two disks in my machine:

# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw)
proc on /proc type proc (rw,nodiratime)
/dev/loop0 on /sys/crfs type cramfs (ro)
/dev/sda2 on /mnt/HD_a2 type ext2 (rw)
/dev/sdb2 on /mnt/HD_b2 type ext2 (rw)
none on /proc/bus/usb type usbfs (rw)
devpts on /dev/pts type devpts (rw)

# fdisk -l /dev/sda
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1          66      530113+ 82 Linux swap
/dev/sda2              67       60801   487853887+ 83 Linux

# fdisk -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1               1          66      530113+ 82 Linux swap
/dev/sdb2              67       60801   487853887+ 83 Linux

Offline

 

#15 2008-01-28 01:32:18

jayas
Member
Registered: 2008-01-24
Posts: 151

Re: Standard mode in 1.04 firmware creates 2 partition?

Hello,

I think the mystery partitions must be something specific in 1.04b82 firmware.  I observed the same thing when I upgraded to .04b2 and formatted the raid.

I resolved it by reverting it to 1.03, formatting the disk, then upgrading to 1.04b82.  I have not tried 1.04b84 yet.  It is quite likely the have decided to do away with the need for extra partition.

Jaya

Last edited by jayas (2008-01-28 01:32:36)


H/W=B1 F/W=1.04; RAID1: SAMSUNG HD501LJ T166 (500GB, SATA 3.0Gb/s 16MB)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB