LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-31-2006, 12:53 PM   #1
Duron
Member
 
Registered: Aug 2006
Location: Michigan, USA
Distribution: Ubuntu MATE
Posts: 56

Rep: Reputation: 19
Swap partition won't mount


The other day I added a second hard drive to my PC, which dual-boots Windows XP and PCLinuxOS. It was jumpered as a slave. Setting things up went just breezy in Windows, but upon booting PCLOS from LILO I found some problems.

The swap partition on my first drive cannot be enabled. The lines that go something like this:

Activating swap partitions /dev/hda6: Invalid Argument

Enabling swap space: swapon: dev/hda6: Invalid argument

That's not exactly what they look like, but you get the picture. While my swap partition still shows up when I go to Storage Media, I cannot mount it. PCLOS still runs fine though, but I'd sure like to know why this happened.

Another minor issue:

The hard drive I installed as a slave already had two partitions, one NTFS and one in FAT32 (I had it as a slave in another PC before). Obviously I can't mount these in Linux as they are not included in the etc/fstab or mtab. My question is: How would I go about adding these in? It seems I could just add some lines in the text file for them, but...
 
Old 08-31-2006, 01:23 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Run 'fdisk -l /dev/hda' and notice if /dev/hda6 says type 82 (swap).

You may need to format the swap partition with command 'mkswap /dev/hda6' then try the 'swapon /dev/hda6' command again.

You can mount the FAT32 and NTFS (read-only) onto empty directories. I would suggest to make yourself some empty directories such as /mnt/mydir1 /mnt/mydir2 then simply mount the partitions to those directories. You can add them to /etc/fstab if you want them to mount on startup.
 
Old 08-31-2006, 09:03 PM   #3
Duron
Member
 
Registered: Aug 2006
Location: Michigan, USA
Distribution: Ubuntu MATE
Posts: 56

Original Poster
Rep: Reputation: 19
EDIT: I went ahead with mkswap /dev/hda6, and it worked, more or less. The swap partition no longer shows up in Storage Media but I don't get errors when booting in verbose mode anymore. That's fixed, along with the second problem (found a tutorial).

Last edited by Duron; 08-31-2006 at 10:27 PM.
 
  


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
Old PC forgets about it's own swap partition & mount it. Need help to write a script Old_Fogie Slackware 10 07-08-2006 06:19 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM
SWAP partition /dev/hdb2 fails to detect/mount after memory upgrade. Sgaileach1 Linux - Hardware 2 02-06-2004 04:29 PM
how to mount swap partition Xiangbuilder Linux - Newbie 5 10-30-2003 07:59 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:35 PM.

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
Open Source Consulting | Domain Registration