Kurobox NAS-Central Forums

Welcome to the Kuro Community
It is currently Sun Jun 24, 2018 3:28 am

All times are UTC-06:00




Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
PostPosted: Sat Feb 17, 2007 11:03 pm 
Offline

Joined: Tue Jan 09, 2007 10:26 am
Posts: 46
Location: Silicon Valley, CA, USA
Using the Sylver 2.6.something distro, all this had been working - shares (showing up automatically in Windows XP My Network Places) and DNS resolution of box name (KURO-BOX).

But now, not. I maybe/probably changed something but don't know what it might have been.

Box is on static IP 192.168.11.135.

Can login via telnet as root/kuroadmin (though it takes a LONG time to respond, I am using PuTTY).

Can also get to main web interface using static IP instead of box name.

ps -e shows:

Quote:
[root@KURO-BOX:~]$\ ps -e
PID TTY TIME CMD
1 ? 00:00:00 init
2 ? 00:00:00 ksoftirqd/0
3 ? 00:00:00 events/0
4 ? 00:00:00 khelper
5 ? 00:00:00 kthread
20 ? 00:00:00 kblockd/0
23 ? 00:00:00 khubd
53 ? 00:00:00 pdflush
54 ? 00:00:00 pdflush
56 ? 00:00:00 aio/0
55 ? 00:00:00 kswapd0
640 ? 00:00:00 kseriod
686 ? 00:00:00 mtdblockd
726 ? 00:00:00 kjournald
774 ? 00:00:00 kjournald
904 ? 00:00:00 syslogd
906 ? 00:00:00 klogd
917 ? 00:00:00 scsi_eh_0
918 ? 00:00:00 usb-storage
942 ? 00:00:00 inetd
948 ? 00:00:00 lighttpd
949 ? 00:00:00 php
956 ? 00:00:00 php
959 ? 00:00:00 php
960 ? 00:00:00 xinetd
962 ? 00:00:00 php
964 ? 00:00:00 php
965 ? 00:00:00 php
966 ? 00:00:00 php
967 ? 00:00:00 php
968 ? 00:00:00 lpd
973 ? 00:00:00 cron
990 ? 00:00:00 sshd
1007 ? 00:00:00 mt-daapd
1008 ? 00:00:00 mt-daapd
1010 ? 00:00:00 mt-daapd
1011 ? 00:00:00 mt-daapd
1015 ? 00:00:00 ppc_uartd
1017 ttyS0 00:00:00 getty
1021 ? 00:00:00 in.ftpd
1070 ? 00:00:00 in.telnetd
1072 pts/0 00:00:00 bash
1264 ? 00:00:00 smbd
1272 ? 00:00:00 smbd
1296 ? 00:00:00 atalkd
1435 ? 00:00:00 in.telnetd
1437 pts/0 00:00:00 ps


I now note that the giveaway here is that nmbd is not running. Normally both nmbd and smbd are controlled by the smb script in /etc/init.d.


and my /etc/samba/smb.conf is as follows:
Quote:
[global]
client code page = 932
coding system = sjis
workgroup = WORKGROUP
server string = KURO-BOX
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
dns proxy = No
netbios name = KURO-BOX
os level = 1
wins server =

security = user
encrypt passwords = Yes
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = yes
guest account = nobody
null passwords = yes
guest only = no
username level = 12
password level = 8
map to guest = Bad User

browsable = no
preserve case = yes
short preserve case = yes
veto files = /.AppleDesktop/Network Trash Folder/TheVolumeSettingsFolder/.AppleDouble/.AppleDB/
delete veto files = yes

invalid users = mail, deamon, adt
admin users = root
username map = /etc/samba/smbusers

getwd cache = yes
printcap name = /etc/printcap
load printers = yes
printing = lprng

include = /etc/samba/smb.conf.kuro
[share]
comment = KURO-BOX Share Folder
path = /mnt/share
browsable = yes
printable = no
writable = yes
guest ok = yes
force create mode = 777
force directory mode = 777
###share###
[itunes]
comment = KURO-BOX Share Folder
path = /mnt/itunes
browsable = yes
printable = no
writable = yes
guest ok = yes
force create mode = 777
force directory mode = 777
###itunes###
[video]
comment = Video
path = /mnt/video
browsable = yes
printable = no
writable = yes
valid users = Gary,
force create mode = 777
force directory mode = 777
###video###
#####END#####


Ideas?

Thanks!


Last edited by digital_larry on Sun Aug 26, 2007 11:43 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sat Feb 17, 2007 11:10 pm 
Offline

Joined: Tue Jan 09, 2007 10:26 am
Posts: 46
Location: Silicon Valley, CA, USA
Murphy's law does claim that the minute you post something like this, you'll notice something obvious, like the WORKGROUP was wrong!

- 5 minutes later -

I did update that in the smb.conf, did
/etc/init.d/smb stop

then
/etc/init.d/smb start

but still no luck!


Top
   
 Post subject:
PostPosted: Mon Feb 19, 2007 12:41 pm 
Offline

Joined: Wed May 10, 2006 6:23 am
Posts: 29
id be interested to know how much your box is paging with all those php threads (and things like appletalk, ftp, lpd, inetd + xinetd, telnet running etc).


Top
   
 Post subject:
PostPosted: Tue Feb 20, 2007 1:41 am 
Offline

Joined: Tue Jan 09, 2007 10:26 am
Posts: 46
Location: Silicon Valley, CA, USA
I don't even know what half of that stuff is.

I just wanted to run mt-daapd, secondary consideration Windows share/NAS, connecting to USB HD and USB printer server.

Telnet is the useful UI so don't necessarily want to turn it off.

Appletalk? No use for it. I'm just using this preconfigured image and haven't had the time to get into it enough to optimize the crazy thing.


Top
   
 Post subject:
PostPosted: Mon Aug 13, 2007 12:16 pm 
Offline

Joined: Tue Jan 09, 2007 10:26 am
Posts: 46
Location: Silicon Valley, CA, USA
I know that you were all hanging on the edges of your seats, waiting for the answer. Miraculously enough I seem to have found the answer, and it should serve as a warning to everyone who doesn't REALLY know what they are doing in Linux (such as me).

Somewhere around February 11, 2007, I was experimenting with the tar command, in an attempt to back up my image, because I'd FINALLY got it all working OK and wanted to make sure I had a backup before moving on to the next attempted "improvement". This is apparently where I went wrong, below is the unfolding of the mystery:

First thing I noticed was that Samba was not launching. Even if I started it by hand from /etc/init.d thusly:

Quote:
./smb start


it would not show up in the "ps -e" output list.

I went to /etc/samba and noticed that smb.conf was 0 bytes. I tried to restore it from a backup I was lucky enough to have kept, and got the error "Not enough space" or something similar. I also checked /var/log/samba to see what info was in the log.smbd, but it too was 0 bytes (though with today's date).

This was surprising, but a quick check of available disk space showed that in fact my root file system was 100% allocated.

Quote:
[root@KURO-BOX:/proc]$\ df -h
Filesystem Size Used Avail Use% Mounted on

/dev/hda1 2.0G 2.0G 0 100% /
/dev/hda3 225G 7.1G 216G 4% /mnt


So, quite obviously, (in retrospect) it should not be surprising that things weren't working too well.

By chance I happened to look at the /root folder, which had these unusual contents:

Quote:
[root@KURO-BOX:~]$\ ls -l
total 856M
-rw-r--r-- 1 root root 0 Feb 11 2007 --exclude
-rw-r--r-- 1 root root 855M Feb 11 2007 --exclude=*.mp3
-rw-r--r-- 1 root root 500K Feb 11 2007 -v


So, it would appear that some rather large 855MB file was created from my attempt to use the tar command to make a tar from everything on the hard drive except for the MP3 files.

I deleted these files with my ftp client and checked the disk space again:

Quote:
[root@KURO-BOX:~]$\ pwd
/root
[root@KURO-BOX:~]$\ ls -l
total 0
[root@KURO-BOX:~]$\ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 2.0G 1.2G 755M 61% /
/dev/hda3 225G 7.1G 216G 4% /mnt [root@KURO-BOX:~]$\ ls -l
total 0
[root@KURO-BOX:~]$\ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 2.0G 1.2G 755M 61% /
/dev/hda3 225G 7.1G 216G 4% /mnt


Hooray, now I had 855MB free to cause more trouble with!

Going back to /etc/init.d and doing

Quote:
./smb start


appears to have brought everything back to life.

Now, if I can just figure out the correct tar command line to use to back this stupid thing up!


Top
   
Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC-06:00


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:  
cron
Powered by phpBB® Forum Software © phpBB Limited