LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 02-14-2003, 11:56 PM   #1
jclark00001
Member
 
Registered: Jan 2003
Distribution: RH 8.0 with KDE
Posts: 59

Rep: Reputation: 15
swap partition not being mounted


when i boot up into linux and its running through all the processes, it says ok to everything except when it tries to mount my swap partition it says failed, i just reinstalled windows on my windows partition and fixed the mbr so grub works again, but i think windows took over my swap partition when it reinstalled, because now i have an E: drive on my windows partition with an unrecognized format, is there a way i can get my linux partition to take back the swap partition that the evil windows stole from it?
 
Old 02-15-2003, 12:27 AM   #2
Palin
Member
 
Registered: Feb 2003
Location: A Meatlocker, well feels like one
Distribution: Gentoo
Posts: 292

Rep: Reputation: 30
can you post your fstab so we can look it over?
 
Old 02-15-2003, 01:13 AM   #3
jclark00001
Member
 
Registered: Jan 2003
Distribution: RH 8.0 with KDE
Posts: 59

Original Poster
Rep: Reputation: 15
Heres my fstab:

LABEL=/ / ext2 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda4 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda4 /mnt/windows ntfs ro,umask=0222 0 0

thanks in advance
 
Old 02-15-2003, 01:18 AM   #4
Palin
Member
 
Registered: Feb 2003
Location: A Meatlocker, well feels like one
Distribution: Gentoo
Posts: 292

Rep: Reputation: 30
perhaps this

/dev/hda4 swap swap sw 0 0

note: after reading this i decided to fix mine it was doing the same thing thats what mine looks like now and its working for me.
 
Old 02-15-2003, 01:25 AM   #5
jclark00001
Member
 
Registered: Jan 2003
Distribution: RH 8.0 with KDE
Posts: 59

Original Poster
Rep: Reputation: 15
hmm well i think my swap is hda1 but when i checked it by doing fdisk -l it says its fat16, is that right?
 
Old 02-15-2003, 01:26 AM   #6
jclark00001
Member
 
Registered: Jan 2003
Distribution: RH 8.0 with KDE
Posts: 59

Original Poster
Rep: Reputation: 15
hda4 is my windows partition, i mounted it so i could access some of my files on it, im having xp problems heh
 
Old 02-15-2003, 01:29 AM   #7
Palin
Member
 
Registered: Feb 2003
Location: A Meatlocker, well feels like one
Distribution: Gentoo
Posts: 292

Rep: Reputation: 30
did you try switch hda4 with 1 in your fstab
so it read /dev/hda1 swap swap sw 0 0
 
Old 02-15-2003, 01:39 AM   #8
jclark00001
Member
 
Registered: Jan 2003
Distribution: RH 8.0 with KDE
Posts: 59

Original Poster
Rep: Reputation: 15
alright i tried that, and now while its booting it says "warning: bad format on line 9 of fstab"
 
Old 02-15-2003, 01:43 AM   #9
Palin
Member
 
Registered: Feb 2003
Location: A Meatlocker, well feels like one
Distribution: Gentoo
Posts: 292

Rep: Reputation: 30
ok if you are shure that is/was your swap partition then you probably want to run
mkswap /dev/hda1

I would mount the partion first to see whats on it to make sure
incase you needed it

mount -t vfat /dev/hda1 /mnt/<mount point> assuming its a FAT partition.
 
Old 02-15-2003, 01:55 AM   #10
jclark00001
Member
 
Registered: Jan 2003
Distribution: RH 8.0 with KDE
Posts: 59

Original Poster
Rep: Reputation: 15
hmm i just tried to mount it and it said wrong fs type, i remmeber i got the same error message when i tried mounting my windows partition, but i fixed that by running /sbin/modprobe ntfs. i tried to run /sbin/modprobe vfat, but that didnt work is there some other command i should run?
 
Old 02-15-2003, 02:07 AM   #11
Palin
Member
 
Registered: Feb 2003
Location: A Meatlocker, well feels like one
Distribution: Gentoo
Posts: 292

Rep: Reputation: 30
After looking through the modules on my redhat partition I think its fat
not really sure on this one I'm on Gentoo at the moment.
 
Old 02-15-2003, 02:13 AM   #12
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Can you post up fdisk -l (FDISK -L) as root? This might help us to see where that swap partition actually is. Then we won't have to worry about you wiping out your valuable information

Cool
 
Old 02-15-2003, 02:20 AM   #13
jclark00001
Member
 
Registered: Jan 2003
Distribution: RH 8.0 with KDE
Posts: 59

Original Poster
Rep: Reputation: 15
ok heres my fdisk -l:
[root@localhost root]# fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 9732 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 64 514048+ 6 FAT16
/dev/hda2 * 65 893 6658911 83 Linux
/dev/hda3 894 897 32098+ ce Unknown
/dev/hda4 898 9732 70967137+ 7 HPFS/NTFS
[root@localhost root]#
 
Old 02-15-2003, 02:25 AM   #14
Palin
Member
 
Registered: Feb 2003
Location: A Meatlocker, well feels like one
Distribution: Gentoo
Posts: 292

Rep: Reputation: 30
welp if your swap partition is ~512meg then hda1 looks like its the one
not really sure what the 32meg one is
 
Old 02-15-2003, 02:25 AM   #15
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Do you remember how big your swap partition was?
 
  


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
swap device not getting mounted jacobselvin Linux - Newbie 9 07-20-2005 09:48 AM
SWAP partion not being mounted Boffy Linux - General 6 02-14-2005 03:37 PM
swap partition not mounted after Debian installation codeape Linux - Hardware 4 02-12-2004 03:11 PM
3 issues: Making swap, fixing partitions, changing ownership of mounted filesystem. Dunedain Linux - Newbie 2 01-27-2004 03:52 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM


All times are GMT -5. The time now is 04:31 AM.

Main Menu
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