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 2007-06-24 13:54:03

Emacs
Member
Registered: 2007-06-24
Posts: 110

Q: concerned about my filesystem, printer and login security

Dear all,

I have my DNS 323 for about 24 hours now - consider these as newbe questions :-)

I have installed two 160GB Samsung Spinpoint drives in RAID 1 mode (I hope). Firmware is US 1.3. Fonz funplug 0.2 is installed.


1.) When I telnet into the box I'm immediately logged in. There is no request for a login or password. Since there is occasionally a WLAN accesspoint in my network I'm a bit concerned here.
Is there a way to enable an actual login procedure? I read that ssh is possible as well. Any pointers in to how to set ssh up on the DNS 323?

2.) I was a bit uncertain about the state of my discs. The status page in the 323 webinterface shows:

Volume Name:     Volume_1
Volume Type:     RAID 1
Sync Time Remaining:     Completed
Total Hard Drive Capacity:     -1124834 MB
Used Space:     32 KB
Unused Space:     1022 MB

Note the Capacity!

When I enter the webinterface in the normal way, I'm asked to re-format and resync one of my drives. (this doesn't change, even if I do as I'm asked).

When issuing the dmesg command via telnet I get:

/ # dmesg
vice sda, logical block 7
SCSI error : <0 0 0 0> return code = 0x8000002
sda: Current: sense key=0x3
    ASC=0x0 ASCQ=0x0
Info fld=0x0
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
SCSI error : <0 0 0 0> return code = 0x8000002
sda: Current: sense key=0x3
    ASC=0x0 ASCQ=0x0
Info fld=0x1
end_request: I/O error, dev sda, sector 1
Buffer I/O error on device sda, logical block 1
SCSI error : <0 0 0 0> return code = 0x8000002
sda: Current: sense key=0x3
    ASC=0x0 ASCQ=0x0
Info fld=0x2

[some more bad sectors/blocks]

end_request: I/O error, dev sda, sector 63
printk: 4 messages suppressed.
Buffer I/O error on device sda, logical block 63
ext3: No journal on filesystem on sdb2
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
md: bind<sdb2>
raid1: raid set md0 active with 1 out of 1 mirrors
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
Link Layer Topology Discovery Protocol, version 1.05.1223.2005
dev is  <NULL>



So, are my drives mirrored or not?
Should I re-format?
Should I run e2fsck?


My Linux knowledge is a bit rusty, but some is still there ;-)


3.) My printer is a Brother 2030 laser printer attached to the DNS 323 via USB.
The DNS 323 recognizes the printer and I can create a network printer for \\dns-323\lp
But whenever I try to print something (Win XP Prof and Win 2000 clients) I get an windows error saying that no document could be added to the queue.

Any idea where to look for a resolution here?


Cheers and any help is welcome,

Emacs

Offline

 

#2 2007-06-24 14:32:34

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Q: concerned about my filesystem, printer and login security

Hmmm, I ran 2fsck with the following result:

/ # e2fsck /dev/md0
e2fsck 1.32 (09-Nov-2002)
/dev/md0 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found.  Pass 3A: Optimizing directories
Optimizing directories:  13631961 13632865 13681166 13730701 13731423 13733233 13746534 13763388 13764832 13799326 13828866 13896099 13959722 14012461 14074829 14139579 14142042 14142965 14173640 14175008 14206194 14240543 14500000 16809986 18153473
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/md0: ***** FILE SYSTEM WAS MODIFIED *****
ERROR/ #


I'm a bit concerned about the last line...

On the other hand, if I run e2fsck again I get

/ # e2fsck -p /dev/md0
/dev/md0: clean, 118965/19480576 files, 18366950/38939520 blocks
/ #

Which seems to be looking good...

Cheers,

Emacs

Offline

 

#3 2007-06-24 14:40:14

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Q: concerned about my filesystem, printer and login security

The webinterface still asks me to reformat and resync... :-(

Cheers,

Emacs

Offline

 

#4 2007-06-24 14:48:33

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Q: concerned about my filesystem, printer and login security

Emacs wrote:

1.) When I telnet into the box I'm immediately logged in. There is no request for a login or password. Since there is occasionally a WLAN accesspoint in my network I'm a bit concerned here.
Is there a way to enable an actual login procedure? I read that ssh is possible as well. Any pointers in to how to set ssh up on the DNS 323?

ssh is part of the funplug package (it's "dropbear"). It's also possible to make telnet ask for a password. There are  couple of threads dealing with those questions:

http://dns323.kood.org/forum/t411-TELNE … ROMPT.html
http://dns323.kood.org/forum/t529-without-password.html
http://dns323.kood.org/forum/t638-SFTP- … ccess.html
and probably a few more...

One of the problems is that root has no password. You have to set one and make sure it survives reboots. Alternatively, you can try to use public-key authentication. Not sure what the best approach is.

Emacs wrote:

/ # dmesg
vice sda, logical block 7
SCSI error : <0 0 0 0> return code = 0x8000002
sda: Current: sense key=0x3
    ASC=0x0 ASCQ=0x0
Info fld=0x0
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0

Looks like a faulty disk to me.

Offline

 

#5 2007-06-24 15:36:10

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Q: concerned about my filesystem, printer and login security

Is there a way to say for sure which of the two drives has the error?
Left hand bay or right hand?

Cheers,

Emacs

Offline

 

#6 2007-06-24 15:41:09

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Q: concerned about my filesystem, printer and login security

Right is drive 0 (sda), left is drive 1 (sdb). Your errors are on sda, so I'd say it's the right hand drive.

Offline

 

#7 2007-06-24 15:43:24

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Q: concerned about my filesystem, printer and login security

Cool - thanks for the hint!

I remember that I had errors with one of the drives earlier. But before putting them into the DNS323 I did a low level format on both (with the Samsung utility) and it came up with no more errors.
I'll see if I can get a new one for the right hand drive!

Cheers,

Emacs

Offline

 

#8 2007-06-24 15:48:53

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Q: concerned about my filesystem, printer and login security

Even cooler:

When I removed the presumably faulty disc and rebooted the DNS323 I actually got an alert e-mail!

At least this is working :-)

Cheers,

Emacs

Offline

 

#9 2007-06-24 16:06:38

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Q: concerned about my filesystem, printer and login security

With one drive remaining in the DNS - is there a way to tell the system that this one drive should be now used as a single volume (opposed to the RAID it has been before) without reformatting it?

Cheers,

Emacs

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB