LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora - Installation (https://www.linuxquestions.org/questions/fedora-installation-39/)
-   -   unable to initialise swap partition - rh9 upgrade (https://www.linuxquestions.org/questions/fedora-installation-39/unable-to-initialise-swap-partition-rh9-upgrade-258120/)

jimbojones1 11-22-2004 06:56 PM

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?

serz 11-22-2004 07:03 PM

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

What error do you get?

jimbojones1 11-22-2004 07:36 PM

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?

serz 11-22-2004 08:07 PM

Yes, change that in your /etc/fstab.

Could you post the contents of that file?

jimbojones1 11-22-2004 09:42 PM

/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)

serz 11-23-2004 10:55 AM

Try changing:

/dev/sda2 swap swap defaults 0 0

to

/dev/i2o/hda2 swap swap defaults 0 0

jimbojones1 11-23-2004 09:16 PM

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?

serz 11-24-2004 02:18 PM

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


All times are GMT -5. The time now is 03:40 PM.