View previous topic :: View next topic |
Author |
Message |
demon-dante n00b
Joined: 06 Apr 2006 Posts: 1
|
Posted: Thu Apr 06, 2006 9:28 am Post subject: [Newb] cannot stat /dev/SWAP || can't login |
|
|
Hi
I'm trying to install Gentoo on my Laptop. First Linux install ever.
I think I have 2 problems:
At booting I get the [!!] error msg "Swapon: cannot stat /dev/SWAP: No such file or directory"
After making ~250 MB traffic on this forum I think I have to exchange /SWAP with /hda2 (my swap partition) in the fstab, but I can only mount the fstab from the cd and I dont know how I can reach the fstab from my system
The second thing is that I cant login in the system itself! I tried to edit the shadow file like in some threads suggested but it didn't work. I read here that I have to chroot into my mounted file system and change the pwd with passwd, but I don't know how to chroot (or why).
I surfed some wikis and faqs but they are obviously not for my brain.
After his I just have to install a gui... _________________ <insert signature here> |
|
Back to top |
|
|
Keruskerfuerst Advocate
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Thu Apr 06, 2006 9:40 am Post subject: |
|
|
on console:
su
(password for root)
nano -w /etc/fstab
edit the line
/dev/hda2 swap
save and exit
swapon /dev/hda2
that should do it. |
|
Back to top |
|
|
mdeininger Veteran
Joined: 15 Jun 2005 Posts: 1740 Location: Emerald Isles, observing Dublin's docklands
|
Posted: Thu Apr 06, 2006 9:42 am Post subject: |
|
|
well, sounds like a b0rked /etc/fstab, really...
boot from the livecd (using the nox option) or the minimal cd, and follow the handbook in chapters 4 and 6 to get into your system from the livecd (i.e. mount and chroot):
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=4#doc_chap5
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6
once you're inside your system, you can use nano to edit files, like so:
Code: |
# nano -w /etc/fstab
|
this will start nano and edit the file /etc/fstab
to save and quit nano, hit ctrl-x, then answer y and hit enter.
and, yes, your /etc/fstab should not have any entries like /dev/SWAP or /dev/ROOT and similar, it should be /dev/hdaX (whatever X may be, depending on your configuration) _________________ "Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland
( Twitter | Blog | GitHub ) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|