mounting cifs from the installer
Hi all,
I want to use the slackware64 15.0 installer media for some data recovery, so, I boot to the dvd, bring the network up with dhcpcd (dhcp client), create a mount point, and attempt to mount the cifs/samba mount from my local server (ip obfuscated) Code:
dhcpcd Quote:
note: I have no problems post installation, but for data recovery, the point is I want the data off the drive, so I can't install anything. (and just in case anyone suggests just plug the drive into another pc, it is an old ide drive, and is not recognised with my sata-ide adapter, but is readable on the old pc.) |
Some ideas:
1. Use ssh Code:
(cd /directory/from && tar c *) | ssh x.y.z.q 'cd /directory/to && tar x' 3.If you want to use cifs, you can install needed stuff to the system. Not to the hard disk: the installer OS runs in ram. Copy what is needed from another 15.0 system. Code:
ssh x.y.z.q 'tar c /sbin/mount.cifs /lib64/libcap-ng.so.0.0.0'|(cd / && tar x) |
unfortunately, trying the first method gives
Quote:
Quote:
thanks for the suggestions. any more ideas? |
2. You need to fire up NFS server for NFS mounting to work.
|
I just tried the first (ssh) one here with an install USB. It worked here. I think your .bashrc prints some rubbish. Try
Code:
$ ssh username@x.y.z.q echo Hello |
Quote:
Code:
ssh username@x.y.z.q 'cd /' |
And I tried the cifs mount: didn't work out here either. The cifs module is on the install image, but it doesn't work.
'modprobe cifs' complains: Code:
modprobe: ERROR: could not insert 'cifs': Unknown symbol in module, or unknown parameter (see dmesg) Code:
cifs: Unknown symbol cifs_md4_final (err -2) |
Petri:
hmm. running Code:
ssh root@x.y.z.q echo hello running Code:
ssh root@x.y.z.q 'cd /' i tried again by cd'ing into the directory to recover, then running Code:
tar c *|ssh root@x.y.z.q 'cd /destination/path && tar x' I get the same errors in dmesg as you do, regarding cifs mounting, although it looks like it boots the huge kernel, and that should have cifs support compiled in. mounting cifs from the installer "should" work, (it has been one of the options in a network install for ages) so it is worth reporting to Pat. |
I managed to load the cifs module like this. Copy a few additional modules in addition to the other files as before.
Code:
ssh x.y.z.q 'tar c /sbin/mount.cifs /lib64/libcap-ng.so.0.0.0 /lib/modules/5.15.19/kernel/fs/netfs/netfs.ko /lib/modules/5.15.19/kernel/fs/smbfs_common/cifs_arc4.ko /lib/modules/5.15.19/kernel/fs/smbfs_common/cifs_md4.ko'|(cd / && tar x) The insmod commands above should not have been necessary if I had managed to run depmod but it didn't seem to work. Got this output of 'depmod': Code:
depmod: can't change directory to /5.15.19': No such file or directory |
Quote:
Quote:
|
yes I just checked, and as there are no modules in the initrd it doesn't work. I guess i'll raise a request for current to get CONFIG_CIFS=Y (and CONFIG_EXFAT=Y while we're at it) in the huge config. That would allow cifs to actually work in the setup, and also allow mounting exfat drives which are becoming more common these days. I have my internal slackware repo on a samba share, so it is really usefull to have access at install time.
|
Quote:
The installer's kernel contains exactly what it needs to install Slackware, and not really much else. While it can be used for system recovery in certain circumstances, as you've found, it has its limits. |
All times are GMT -5. The time now is 10:25 AM. |