• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 443
  • Last Modified:

Urgent: How to setup a samba share from DS Linux

Hello all,

I've got a Windows server with something corrupt, it can't finish the boot-up process.
I need to get some data on it if at all possible, and the only thing our office had handy was a copy of Damn Small Linux .6.

I'm a bit spoiled by the KDE and Gnome, don't know all the commands that would be needed to setup a Samba share from bash.

I booted to the DSL disk, and mounted the windows file system to the /mnt section, but don't know how to get samba running from bash here.

Anything you've got would be helpful!
  • 2
  • 2
2 Solutions
edit /etc/samba/smb.conf

cruise down to the end of the file, and you'll see some examples of samba shares. simply modify those examples to fit your needs and you are good to go.
Inward_SpiralAuthor Commented:
And how do I start the samba service?
I was previously using Red Hat, where I bounced xinet.d and related services through a gui.

Like I said, spoiled by graphics.
there should be startup scripts in /etc/rc.d/init.d

so simply do

/etc/rc.d/init.d/smb start


check whether your DSL has samba server support. check for program named smbd available (which smbd), if so then you can go ahead and configure samba otherwise you have to first install SAMBA server

if you have samba, then edit /etc/samba/smb.conf and add following configurations at the end of the file
        comment = Windows file System share
        browseable = yes
        read only = no
        create mode = 0755
        directory = /mnt/windows

if you dont want to give write access to the share then set read only = yes, give the directory name where you have mounted your windows partition in directory keyword.

then start the samba service by
/etc/init.d/smb start
/etc/init.d/nmb start

/etc/rc.d/init.d/smb start
/etc/rc.d/init.d/nmb start

nmb service may not be there in that case, by default it will automatically get started by smb service. so dont worry about that.

then go to any other windows machine and access this machine by \\machine name and you should be able to see the Win-Share.

Inward_SpiralAuthor Commented:
Thanks a lot, I backed up everything in time.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now