LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 11-22-2004, 06:56 PM   #1
jimbojones1
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Rep: Reputation: 0
unable to initialise swap partition - rh9 upgrade


I'm attempting to upgrade a RH9 box that has an adaptec scsi controller card which currently uses the i2o drivers (referencing /dev/scdx) and I know that after reading the release notes that this has been changed with FC3 ( /dev/i2o/hdx). What I attempt to upgrade the system (after selecting the upgrade option) it brings up an error message saying that it couldn't initialise the swap partition I suspect because it's looking for /dev/scd and can't find it because of the new drivers? I've tried changing /etc/fstab to refer to the swap partition as /dev/i2o/hdx (and various combinations of this) but to no avail.

Can anyone suggest how I get around this problem?
 
Old 11-22-2004, 07:03 PM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
From the command line, as root, try: swapon -a

What error do you get?
 
Old 11-22-2004, 07:36 PM   #3
jimbojones1
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the quick reply. Error message is

Swapon: Cannot stat /dev/sda2: No such file or directory

(This was generated by booting into FC3 rescue mode.) As I said above, the references are now to /dev/i2o/hdx etc, rather than /dev/scdx; doing a #mount command reveals this. I find this a bit strange given it finds the original RH9 installation OK yet it can't find the swap partition. I'm assuming this is because /etc/fstab contains an absolute reference to a device rather than a LABEL= line?
 
Old 11-22-2004, 08:07 PM   #4
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
Yes, change that in your /etc/fstab.

Could you post the contents of that file?
 
Old 11-22-2004, 09:42 PM   #5
jimbojones1
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
/etc/fstab:

LABEL=/ / ext3 defaults 1 1
LABEL=/backup /backup ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/spare /spare ext3 defaults 1 2
/dev/sda2 swap swap defaults 0 0
#/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
#/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0

output of mount command when using FC3 resuce mode:

/dev/i2o/hda3 on / type ext3 (rw,defaults)
/dev/i2o/hda6 on /backup type ext3 (rw,defaults)
/dev/i2o/hda1 on /boot type ext3 (rw,defaults)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw,defaults)
/dev/i2o/hda5 on /home type ext3 (rw,defaults)
none on /proc type proc (rw,defaults)
/dev/i2o/hda7 on /spare type ext3 (rw,defaults)
none on /sys type sysfs (rw,defaults)
 
Old 11-23-2004, 10:55 AM   #6
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
Try changing:

/dev/sda2 swap swap defaults 0 0

to

/dev/i2o/hda2 swap swap defaults 0 0
 
Old 11-23-2004, 09:16 PM   #7
jimbojones1
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Hmm OK I thought I had already done that (as per my original post); obviously I stuffed it up because I've now gone past that point. However, I've come up to another point where the install is complaining that there is not enough space on the root partition when there is plenty (according to the output of df -h). The system says it needs 967MB of space; that partition has over 6GB on it with FREE space of 1.1GB ... how does it come to the conclusion there isn't enought space?? More importantly, is there a way around this?
 
Old 11-24-2004, 02:18 PM   #8
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
The disk could be bad partitioned or something....what's the output of fdisk -l, as root.
 
  


Reply



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
upgrade RH8 to RH9 - upgrade or clean install PAB Linux - General 0 03-13-2004 03:55 PM
2.6.2 kernel upgrade and lost swap space??? pld Linux - Hardware 2 02-10-2004 10:00 PM
SWAP partition /dev/hdb2 fails to detect/mount after memory upgrade. Sgaileach1 Linux - Hardware 2 02-06-2004 03:29 PM
is /boot,/swap, / partition unable to be created under the second active partion? yunxiang Linux - General 8 06-04-2003 01:04 AM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 07:08 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