Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495
Rep:
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
mkdir /mnt/smb1
mount //x.y.z.q/myshare /mnt/smb1
and it gives the error
Quote:
mount: /mnt/smb1: unknown filesystem type 'cifs'.
how can I mount cifs shares from the install media ?
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.)
(cd /directory/from && tar c *) | ssh x.y.z.q 'cd /directory/to && tar x'
2. Or mount using nfs.
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)
ldconfig
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495
Original Poster
Rep:
unfortunately, trying the first method gives
Quote:
tar: This does not look like a tar archive
tar:Exiting with failure status due to previous errors
and trying the second method fails on the mount with
Quote:
mount error:cifs filesytem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log mesages (dmesg)
I checked and /sbin/mount.cifs is present and executable, as is /lib64/libcap-ng.so.0.0.0
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495
Original Poster
Rep:
Petri:
hmm. running
Code:
ssh root@x.y.z.q echo hello
prints hello (after putting in the password)
running
Code:
ssh root@x.y.z.q 'cd /'
prints out nothing. (after putting in the password)
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'
and it seems to work. so that is a workaround for now, thanks.
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.
Last edited by timsoft; 08-09-2023 at 11:08 AM.
Reason: fix typo
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495
Original Poster
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.