DebianThis forum is for the discussion of Debian 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.
Hmm... that's odd. Since you're remounting / and not /etc, it must mean that /etc is just a folder under /, or you've misunderstood soomething. You only have one post, so I can't check on your "background", so I choose to not give you the benefit of the doubt (that is, I assume you're a newbie--no offense meant) (on the other hand, you use vi... hmm... you might have been spoon-fed enough instructions, so that doesn't disprove my guess).
That implies that my guess that /etc is just a folder may be wrong. One possibility (which I think is somewhat likely) is that you haven't mounted your /etc partition. So mount /etc `manually', read-write of course, and go ahead and do your deed. You may want to mount some other partitions as well (say, if you have a seperate /usr, you'll probably want to mount it).
Hmm... that's odd. Since you're remounting / and not /etc, it must mean that /etc is just a folder under /, or you've misunderstood soomething. You only have one post, so I can't check on your "background", so I choose to not give you the benefit of the doubt (that is, I assume you're a newbie--no offense meant) (on the other hand, you use vi... hmm... you might have been spoon-fed enough instructions, so that doesn't disprove my guess).
That implies that my guess that /etc is just a folder may be wrong. One possibility (which I think is somewhat likely) is that you haven't mounted your /etc partition. So mount /etc `manually', read-write of course, and go ahead and do your deed. You may want to mount some other partitions as well (say, if you have a seperate /usr, you'll probably want to mount it).
You may not have the root partition mounted, and are running in the ramdisk.
Type the "mount" command by itself to see what is mounted.
Also check the output of the "fdisk -l" command which lists which drives/partitions it finds. Then determine whether the root parition is mounted. If not, you could mount it under /mnt and then use the chroot command to make it your new root partition for that shell. Then "mount -a" will attempt to mount everything in your /etc/fstab file that has the "auto" option. Next for good measure, I would run "/bin/bash -l". This will start a new login shell, which will setup your normal aliases and paths.
This is a side comment, but you can also boot into single-user mode and change the root password or do other stuff as root from there (see here for more information).
Hi,
the procedure is easy if you have your Cd 1 ( installer disk).
boot with it as you want to install, when the hard disk is detected, change screen ctrl+alt+F2, for example, and now you have the root but for the installer kernel ( from CD),
detect the number of your / partition with fdisk if you don't know it!!
the name of the disc is not /dev/hda, hdb,( not yet at this step of installation) but it is /dev/ide/......., ( for ide disk ) use TAB to complete the name
mkdir mt ........> create a mount point
mount /dev/ide/......( partition) mt
chroot mt -------> to switch to your disk
mount -t proc /proc /proc --------> in general not required
passwd ----------------------> to change the password, that is OK
I have done this procedure many and many time it is working fine, you can use it also to reinstall the grub, if for example, you have detroyed it by install wind$,
grub-install /dev/hda ( if you have an ide disk)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.