Problems Mounting USB...smbd not found

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions
Author Message
djtech2k
DD-WRT Novice


Joined: 08 Feb 2009
Posts: 30

PostPosted: Fri Aug 21, 2009 1:28    Post subject: Problems Mounting USB...smbd not found Reply with quote
I am using an Asus WL-500W with Firmware: DD-WRT v24-sp2 (01/01/09) mini-usb-ftp.

I am following the guides:

http://www.dd-wrt.com/wiki/index.php/USB_storage#Step_2_-_Connect_the_USB_drive_to_your_DD-WRT_box

http://www.dd-wrt.com/wiki/index.php/Slim_samba2

to use Slim Samba2.

My issue is that when I try to start it up, I get:


Welcome to Slim Samba2 v.5
Checking to see if /mnt is mounted
Checking to see if /mnt is mounted
Checking to see if /opt is mounted
Copy DD-WRT IP settings to smb.conf
Start Samba
Starting smbd:
/opt/etc/init.d/S80samba: line 18: /opt/sbin/smbd: not found
Starting nmbd:
/opt/etc/init.d/S80samba: line 20: /opt/sbin/nmbd: not found
Start ProFTPd
- setting default address to 192.x.x.x


I have attached a 1GB thumb drive to the Asus. I formatted it with FAT16 filesystem on my PC. I followed the instructions and it seems to work fine until I get that error. My goal is to use this so I can mpa drives to it from my Windows boxes.

Any ideas?

Thanks in advance!
Sponsor
djtech2k
DD-WRT Novice


Joined: 08 Feb 2009
Posts: 30

PostPosted: Sat Aug 22, 2009 0:10    Post subject: Reply with quote
Any ideas?
jkutianski
DD-WRT User


Joined: 23 Jun 2009
Posts: 58

PostPosted: Sat Aug 22, 2009 4:19    Post subject: Reply with quote
Check if /opt is mounted (and the switched used to mount it), check if /opt/sbin/smbd exist, and check the permisions of /opt/sbin/smbd (remember that fat doesn't support unix permisions)
djtech2k
DD-WRT Novice


Joined: 08 Feb 2009
Posts: 30

PostPosted: Sat Aug 22, 2009 13:44    Post subject: Reply with quote
jkutianski wrote:
Check if /opt is mounted (and the switched used to mount it), check if /opt/sbin/smbd exist, and check the permisions of /opt/sbin/smbd (remember that fat doesn't support unix permisions)


Thanks.

/opt is mounted.

/opt/sbin/smbd does exist.

permissions are: -rwxr-xr-x

/mnt/samba2.usb is what the router runs to start the thing up.

Any ideas?
jkutianski
DD-WRT User


Joined: 23 Jun 2009
Posts: 58

PostPosted: Sat Aug 22, 2009 20:23    Post subject: Reply with quote
djtech2k wrote:
jkutianski wrote:
Check if /opt is mounted (and the switched used to mount it), check if /opt/sbin/smbd exist, and check the permisions of /opt/sbin/smbd (remember that fat doesn't support unix permisions)


Thanks.

/opt is mounted.

/opt/sbin/smbd does exist.

permissions are: -rwxr-xr-x

/mnt/samba2.usb is what the router runs to start the thing up.

Any ideas?


check the mounting permisions, noexec to be exact
djtech2k
DD-WRT Novice


Joined: 08 Feb 2009
Posts: 30

PostPosted: Sat Aug 22, 2009 21:21    Post subject: Reply with quote
jkutianski wrote:
djtech2k wrote:
jkutianski wrote:
Check if /opt is mounted (and the switched used to mount it), check if /opt/sbin/smbd exist, and check the permisions of /opt/sbin/smbd (remember that fat doesn't support unix permisions)


Thanks.

/opt is mounted.

/opt/sbin/smbd does exist.

permissions are: -rwxr-xr-x

/mnt/samba2.usb is what the router runs to start the thing up.

Any ideas?


check the mounting permisions, noexec to be exact


Sorry, I do not understand your question. I am a bit of a Linux novice, but can get things done. When I do a "ls -l" in /opt/sbin, the permissions for both smbd and nmbd are: -rwxr-xr-x

Is that what you were asking for?
djtech2k
DD-WRT Novice


Joined: 08 Feb 2009
Posts: 30

PostPosted: Sat Aug 22, 2009 22:43    Post subject: Reply with quote
Ok, I started over and am completely confused.

I created 2 partitions on my USB Drive now. The first is a 200mb partition with ext2 filesystem. The second is an 800mb partition with FAT16.

I read that slimSamba2 runs better on ext2 than on FAT.

I am totally screwed up because I do not know what pieces of data should be where.

I figured that I would install slimSamba2 on the 200mb ext2 partition and then all the storage data would go on the FAT partition. Is that the best solution?

So then I am confused about mounting the drives. I am not that familiar with mounting drives in Linux to begin with, but this has confused me more.

Is my partition setup correct? What needs to be mounted where? Like does "/opt" need to be on the 100mb ext2 and "/mnt" be on the 800mb FAT?

Any help is appreciated.
djtech2k
DD-WRT Novice


Joined: 08 Feb 2009
Posts: 30

PostPosted: Sat Aug 22, 2009 23:25    Post subject: Reply with quote
Ok, scratch my last post.

I have now created 1 partition for the whole USB drive. I formatted with ext2fs.

Now, I cannot seem to get it mounted in dd-wrt. I tried manually and it doesnt see it with "df" or "mount". I reboot the router and it sees the drive, but does not mount it.

Here is what I get under disk info in dd-wrt:

--- /dev/discs/disc0/disc
Block device, size 0.984 GiB (1056702464 bytes)
DOS/MBR partition map
Partition 1: 0.980 GiB (1052803584 bytes, 2056257 sectors from 63)
Type 0x83 (Linux)
Ext2 file system
Volume name "SAMBA"
UUID 6368746F-2074-616B-6F65-207575696400 (NCS)
Volume size 0.980 GiB (1052803072 bytes, 1028128 blocks of 1 KiB)
Status: Not mounted

Also, when I run "dmesg", I get this in the output:

scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: USB 2.0 Model: Flash Disk Rev: 5.00
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 2063872 512-byte hdwr sectors (1057 MB)
sda: Write Protect is off
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,1)


What gives?
djtech2k
DD-WRT Novice


Joined: 08 Feb 2009
Posts: 30

PostPosted: Sun Aug 23, 2009 20:27    Post subject: Reply with quote
UPDATE:

I recreated the USB drive partition again, this time with ext3. It worked!

Now it is running and seems to work fine. My problem now is that the thing appears to either become unstable or rebooting itself. It will be working and then suddenly it becomes unresponsive and even pings do not work. After a few minutes, it comes back, which is similar to a reboot. I have no idea why, but it just flakes out.

Any ideas?
jkutianski
DD-WRT User


Joined: 23 Jun 2009
Posts: 58

PostPosted: Tue Aug 25, 2009 2:21    Post subject: Reply with quote
djtech2k wrote:
UPDATE:

I recreated the USB drive partition again, this time with ext3. It worked!

Now it is running and seems to work fine. My problem now is that the thing appears to either become unstable or rebooting itself. It will be working and then suddenly it becomes unresponsive and even pings do not work. After a few minutes, it comes back, which is similar to a reboot. I have no idea why, but it just flakes out.

Any ideas?


try to mount it manually with the switch "-o exec"
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum