Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Newb] cannot stat /dev/SWAP || can't login
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
demon-dante
n00b
n00b


Joined: 06 Apr 2006
Posts: 1

PostPosted: Thu Apr 06, 2006 9:28 am    Post subject: [Newb] cannot stat /dev/SWAP || can't login Reply with quote

Hi

I'm trying to install Gentoo on my Laptop. First Linux install ever. :D


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 :oops:

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
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Thu Apr 06, 2006 9:40 am    Post subject: Reply with quote

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
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Thu Apr 06, 2006 9:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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