Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-21-2006, 09:36 PM   #1
Registered: Apr 2006
Posts: 33

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


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!!!

Old 06-21-2006, 11:06 PM   #2
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,483

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
/ 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-21-2006, 11:18 PM   #3
Registered: Apr 2006
Posts: 33

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


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 06:26 PM
Tricking lilo to boot a non-existent device somedude Linux - Software 1 10-13-2005 08:24 PM
swap device not getting mounted jacobselvin Linux - Newbie 9 07-20-2005 09:48 AM
label swap device equinox Linux - General 2 02-17-2005 12:41 AM
how do i umount / filesytem to fsck that device ? inode100 Linux - Newbie 4 01-24-2004 03:17 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 PM.

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