LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-20-2017, 11:44 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Posts: 528

Rep: Reputation: 32
Question [SystemRescueCD] Couple of issues


Hello

I'm trying SRCD to recover files from a broken Windows host, but have a couple of issues:

1. Right after starting the computer off a USB keydrive, I hit TAB and added the following optionů which are ignored:

Code:
 setkmap=fr rootpass=test
A little later during the bootup procedure, I was prompted for the keyboard layout. And when I tried connecting to the SSH server over the network, using "test" as the password didn't work.

2. I'd like to read files from the drive from a remote Windows host, so configured Samba:

/etc/samba/smb.conf
Code:
[share]
comment = Old drive
path = /mnt/sda1
browsable = yes
guest ok = yes
read only = yes
Next, I launched Samba with "/etc/init.d/samba start", and checked that the daemons were running using "netstat -tunlp".

But for some reason, the host isn't listed in Windows Explorer on the remote host.

Any idea what I'm doing wrong?

Thank you.
 
Old 03-20-2017, 12:34 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,437

Rep: Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507Reputation: 1507
Quote:
Originally Posted by littlebigman View Post
I'm trying SRCD to recover files from a broken Windows host, but have a couple of issues:

1. Right after starting the computer off a USB keydrive, I hit TAB and added the following optionů which are ignored:

Code:
 setkmap=fr rootpass=test
Look at that line more carefully. You'll see there are two alternatives separated by "--". The first boots "rescue64", and if that fails the "rescue32" in the second alternative is used as a fallback. If you add "setkmap=fr ..." at the end of the line, it doesn't affect that first alternative.
 
Old 03-20-2017, 04:40 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,825

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Try changing the workgroup name to match your network in your smb.conf

You also need to add a root samba password and since there isn't smbpasswd command you need to use pdbedit.
pdbedit -a -u root
 
Old 03-21-2017, 07:44 PM   #4
littlebigman
Member
 
Registered: Aug 2008
Posts: 528

Original Poster
Rep: Reputation: 32
Thanks for the tips.

The workgroup name was OK. With "guest ok", I can share a directory read-only without adding a Samba user because it will use the default "nobody"; You just need to make sure the shared directory is chowned to "nobody".

Here's the smb.conf:
Code:
[global]
workgroup = WORKGROUP
netbios name = LINUX

security = user
map to guest = Bad User

hosts allow = 127.0.0.1 192.168.0.0/24
hosts deny = 0.0.0.0/0

log level = 2

;Important for network browsing
wins support = yes
local master = yes
preferred master = yes
domain master = yes
os level = 255

;to solve the "WINS server 127.0.0.1 timed out registering IP" message
interfaces = 192.168.0.1/255.255.255.0 127.0.0.1/255.255.255.255
bind interfaces only = yes

;this avoids needless errors in the logs if you have no printer
printcap name = /dev/null
load printers = no
printing = bsd

[myshare]
path = /usr/share/myshare
guest ok = yes
writeable=yes
browseable=yes
I still have to find if SRCD can save changes between reboots (keyboard layout, smb.conf, etc.), or if I need to build a custom ISO just for this.

Last edited by littlebigman; 03-22-2017 at 08:21 AM. Reason: Added couple of sections to smb.conf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a couple of issues with debian mjh5598 Linux - Newbie 3 02-26-2008 08:58 AM
A couple of issues. Unr3a164 Slackware 5 10-17-2007 03:42 PM
couple of issues DarkNecromancer Slackware 3 02-16-2006 10:22 PM
Couple of software issues Xyre Linux - Software 2 07-11-2004 08:41 AM
A couple of issues with libmadin RH 9.0 hedburner Linux - Newbie 0 12-13-2003 06:28 PM


All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration