LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   [SystemRescueCD] Couple of issues (https://www.linuxquestions.org/questions/linux-software-2/%5Bsystemrescuecd%5D-couple-of-issues-4175602201/)

littlebigman 03-20-2017 11:44 AM

[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.

rknichols 03-20-2017 12:34 PM

Quote:

Originally Posted by littlebigman (Post 5686000)
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.

michaelk 03-20-2017 04:40 PM

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

littlebigman 03-21-2017 07:44 PM

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.


All times are GMT -5. The time now is 04:31 PM.