Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 159612

Summary: fstab remapping misses swap partition
Product: Red Hat Enterprise Linux 4 Reporter: Need Real Name <aewell>
Component: grubAssignee: Peter Jones <pjones>
Status: CLOSED WONTFIX QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-27 18:02:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Need Real Name 2005-06-06 01:21:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

Description of problem:
Hi All,

   I am using White Box Enterprise Linux 4 (WBEL 4).

   My system runs off an LSI SATA-4 RAID controller.
I also have an Adaptec 2047600, SATAConnect 1205SA 
controller that is used with my backup SATA hot swap drives
(cheaper and faster than digital tape).

   Under WBEL 3, the SATA drive was treated as an IDE drive.  
Under WBEL 4, it is now a SCSI drive.  (I will post this bug under
another number.)

   When the removable backup SATA drive is not installed, WBEL 
maps the RAID drive as /dev/sda.  When the removable SATA
drive is installed, it gets mapped as /dev/sda and the RAID drive
gets bumped to /dev/sdb.  Then whoever is responsible for /etc/fstab
at boot goes through and fixes the drive mapping.

   Works okay, except the remapping utility misses the swap partition.
There is no clue that the mount point is incorrect, until you put
install CD disk one back in the machine and attempt to do
an upgrade.  (It quits when it can not find the swap partition.)

Many thanks,

My fstab (I have manully corrected the swap device.  "/" is /dev/sdb5)

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/    /                  ext3    defaults            1 1
none       /dev/pts           devpts  gid=5,mode=620      0 0
none       /dev/shm           tmpfs   defaults            0 0
none       /proc              proc    defaults            0 0
none       /sys               sysfs   defaults            0 0
/dev/sdb6  swap               swap    defaults            0 0

/dev/sda2  /images            ext3     noauto,defaults    0 0
/dev/sdb1  /dos               msdos    noauto,defaults    0 0
/dev/sdb2  /w2k               vfat     auto,defaults      0 0
/dev/sdb3  /xp                ntfs     ro,noauto,defaults 0 0

/dev/hdc   /media/cdrecorder1 auto    pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
/dev/fd0   /media/floppy1     auto    pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. see description

Additional info: