LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-21-2006, 10:36 PM   #1
aerojazz
Member
 
Registered: Apr 2006
Posts: 33

Rep: Reputation: 15
Question fsck.ext2Posibbly non-existent or swap device?


URGENT!!!

After editing my fstab(its corrupted by the way). I got this error when booting up.

....
Checking filesystems
fsck.ext2Possibly non-existent or swap device?
: No such device or address while trying to open /dev/hdb1 [FAILED]

**by the way i got this when i typed "fdisk -l"

Device Boot Start End Blocks Id System

/dev/hda1 * 1 1275 10241406 83 Linux
/dev/hda2 1276 3825 20482875 83 Linux
/dev/hda3 3826 3863 305235 82 Linux swap
/dev/hda4 3864 4998 9116887+ c Win95 FAT32 (LBA)

**here's the content when i typed "cat /etc/fstab"
/dev/hda2 / ext2 defaults 1 1
/dev/hdb1 /home ext2 defaults 1 2
/dev/cdrom /mnt/cdrom auto ro,noauto,user,exec 0 0
proc /proc proc defaults 0 0
/dev/hda1 swap swap pri=42 0 0

I think I have a misconfigured fstab...somebody help!!!

aerojazz
 
Old 06-22-2006, 12:06 AM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,593

Rep: Reputation: 162Reputation: 162
/ means root. That is the little asterisk under the heading boot in the fdisk output. Root is hda1 on your machine. You do that in fstab like you did for hda2, but put hda1. You left out the swap partition, which is hda3. Fstab for that looks like this for a swap partition:

/dev/hda3 swap swap defaults 0 0

Hdb1 truly does not exist so take it out. Hda2 is probably /home. Make an entry like you did for hda2, but instead of / put /home. For the MS Windows FAT32 partition:

/dev/hda4 /Windows FAT32 rw,users,gid=users,umask=0002 0 0
 
Old 06-22-2006, 12:18 AM   #3
aerojazz
Member
 
Registered: Apr 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks for the info awesomemachine..i'll follow your instruction.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error enabling swap device hda3 Eileen Linux - Software 3 03-06-2006 07:26 PM
Tricking lilo to boot a non-existent device somedude Linux - Software 1 10-13-2005 09:24 PM
swap device not getting mounted jacobselvin Linux - Newbie 9 07-20-2005 10:48 AM
label swap device equinox Linux - General 2 02-17-2005 01:41 AM
how do i umount / filesytem to fsck that device ? inode100 Linux - Newbie 4 01-24-2004 04:17 AM


All times are GMT -5. The time now is 07:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration