SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I have recently deleted by a stupid mistake file /etc/login.defs thus I am unable to login; not even in single user mode. Basically it won't let me to type my password in, only the first "user login line" is available.
I have found login.defs somewhere online and intended to place it where it belongs using fs-driver in Win7 but the driver sucks and does not allow me to see my ext4 partition.
Anyone has any ideas how to restore my root account, please?
thank you for a quick response; I booted from my CD already using standard command, in my case hugesmp.s boot root=dev/sda3 rdinit= rw Unfortunately the result same, thus negative and I still cannot access the filesystem at all
Which cd are you talking about? I'm talking about a real liveCD, not the slackware install cd/dvd.
After it boots you should have a working linux environment (could be CLI or GUI depending on the cd).
From there you should create a mount point (example: mkdir /mnt/tmp_slack) and mount your slackware partition (mount -t ext4 /dev/XXXY /mnt/tmp_slack [replace XXXY with correct device and number, I'm guessing sda3]).
If all went well you should be able to cd to /mnt/tmp_slack/etc and replace your login.def.
Unfortunately, I am back here again. It seems to me that Slack has no support for ext4 and its unable to mount it. If I try to add "-f" to the suggested command, it mounts, but the focused directory is empty. I have tried to find various drivers that could read my linux partition under windows, only ext2fsd does just listing / directories but down to the tree shows nothing. Any other ideas please?
PS: Just to make sure to avoid more time loss.... I downloaded whole folder slackware_current from official ftp server, because I would guess that iso provided won't be really the current. If I will burn the folder to the dvd would that be operationally equal to burned iso?
You had already DL the .defs file you need onto your Windows partition, right?
Boot from above mentioned CD disk then use ntfs-3g to mount your Windows partition. Next, just copy your .defs from (Win) to its destination the Linux partition.
BTW it's a mystery to me why the Slack install CD disk didn't work for you. systemrescuecd makes it easy to use ntfs-3g for ability to do cross platform reads and writes to hard drive disk.
I booted from my CD already using standard command, in my case hugesmp.s boot root=dev/sda3 rdinit= rw
It should be root=/dev/sda3. I guess sda3 is your / partition
What Slackware CD are you trying to boot? IIRC Slackware 13 supports ext4, so just press <Enter> when at the boot prompt to boot using the default kernel on the cd (huge.s).
Login as root, mount /dev/sda3:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.