Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-07-2010, 05:55 AM
|
#1
|
|
LQ Newbie
Registered: May 2010
Posts: 6
Rep:
|
I deleted login.defs by a mistake :(
Hi guys,
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?
|
|
|
|
05-07-2010, 06:09 AM
|
#2
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,718
|
Hi,
Maybe you can use a linux live CD.
- Boot from the CD,
- mount the partition that houses /etc,
- restore the login.defs file.
Should, theoretically work.
Hope this helps.
|
|
|
|
05-07-2010, 06:21 AM
|
#3
|
|
LQ Newbie
Registered: May 2010
Posts: 6
Original Poster
Rep:
|
Hi Druuna,
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
Does it look like I gotta do a fresh install? 
Last edited by mortinoi; 05-07-2010 at 06:24 AM.
|
|
|
|
05-07-2010, 06:28 AM
|
#4
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,718
|
Hi,
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.
Hope this helps.
|
|
|
|
05-07-2010, 06:35 AM
|
#5
|
|
LQ Newbie
Registered: May 2010
Posts: 6
Original Poster
Rep:
|
Thank you, let you know shortly how I did 
|
|
|
|
05-07-2010, 08:52 AM
|
#6
|
|
LQ Newbie
Registered: May 2010
Posts: 6
Original Poster
Rep:
|
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?
Last edited by mortinoi; 05-07-2010 at 08:59 AM.
|
|
|
|
05-07-2010, 10:48 AM
|
#7
|
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,717
Rep: 
|
Get parted magic cd and do it
http://www.wlug.org.nz/login.defs%285%29
If you cannot understand that then reinstall (keeping /home intact)
|
|
|
|
05-07-2010, 10:49 AM
|
#8
|
|
Member
Registered: Jul 2004
Distribution: Slackware
Posts: 615
Rep:
|
http://www.sysresccd.org/Download
DL and burn that to CD disk, boot from it and
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.
--
Alan.
|
|
|
|
05-07-2010, 01:57 PM
|
#9
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,365
|
Quote:
|
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:
Code:
mount /dev/sda3 /mnt rw
and copy the missing file.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:22 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|