[CentOS 6.2] fstab or what is assigning drive mount points?
April 02nd, 2012 - 07:59 pm ET by Ohmster | Report spam
Sorry if I did not get the subject quite right, this is a vexing problem
that I do not know how to nail down.
I have a P4 system that does not have native SATA. I do have two IDE hard
drives that are not system drives. A 400Gb IDE and a 200Gb IDE. I
installed a SATA driver PCI card and have a 500Gb SATA drive that the
CentOS system resides on. The system is good.
Issue could be PC Bios, SATA card assignment, or Linux fstab.
Problem: I use #fdisk -l
To list my mounted drives. I see that the sytem 500Gb drive is an LVM,
and is assigned as /dev/sda. 200Gb drive is /dev/sdc, 400Gb drive is
/dev/sdb.
Great, so I setup my fstab to mount /dev/sbb1 as 400-disk,
/dev/sdc1 as 200-disk, and I leave alone the config for the 500, which is
lvm and seems to be mounting on /dev/sda. If I reboot, all of a sudden my
400Gb disk is gone, fdisk shows 500Gb drive is now running on /dev/sbb.
Huh? Reboot, might be changed back to sda or even sdc. What in the world
is giving out these drive assignments and how come I cannot write a
simple fstab to handle this situation? Could this issue be caused by BIOS
IDE assignemtns or SATA PCI card SATA assignment? Or do I just have a bad
/etc/fstab file?
Okay, you need data I will provide a current fdisk report (could change
on boot) and my /etc/fstab files. Thank you.
/etc/fstab
cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Thu Jan 5 03:04:31 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more
info
#
/dev/mapper/vg_paulspcworks-lv_root / ext4
defaults 1 1
UUID=fd5c8860-9966-4743-9e95-33accbdff2a5 /boot ext4
defaults 1 2
/dev/mapper/vg_paulspcworks-lv_home /home ext4
defaults 1 2
/dev/mapper/vg_paulspcworks-lv_swap swap swap
defaults 0 0
tmpfs /dev/shm tmpfs defaults 0
0
devpts /dev/pts devpts gid=5,modeb0 0
0
sysfs /sys sysfs defaults 0
0
proc /proc proc defaults 0
0
/dev/sdb1 /mnt/400_Disk ext4 defaults 0 0
/dev/sdc1 /mnt/200_Disk ext4 defaults 0 0
#fdisk -l
sudo fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x757ed7e3
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 60802 487873536 8e Linux LVM
Partition 2 does not end on cylinder boundary.
Disk /dev/sdb: 400.1 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00014c83
Device Boot Start End Blocks Id System
/dev/sdb1 1 48641 390708801 83 Linux
Disk /dev/sdc: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000c1b0
Device Boot Start End Blocks Id System
/dev/sdc1 1 24321 195358401 83 Linux
Disk /dev/mapper/vg_paulspcworks-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_paulspcworks-lv_root doesn't contain a valid
partition table
Disk /dev/mapper/vg_paulspcworks-lv_swap: 5335 MB, 5335154688 bytes
255 heads, 63 sectors/track, 648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_paulspcworks-lv_swap doesn't contain a valid
partition table
Disk /dev/mapper/vg_paulspcworks-lv_home: 440.6 GB, 440557109248 bytes
255 heads, 63 sectors/track, 53561 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_paulspcworks-lv_home doesn't contain a valid
partition table
~Ohmster | ohmster59 /a/t/ gmail dot com
that I do not know how to nail down.
I have a P4 system that does not have native SATA. I do have two IDE hard
drives that are not system drives. A 400Gb IDE and a 200Gb IDE. I
installed a SATA driver PCI card and have a 500Gb SATA drive that the
CentOS system resides on. The system is good.
Issue could be PC Bios, SATA card assignment, or Linux fstab.
Problem: I use #fdisk -l
To list my mounted drives. I see that the sytem 500Gb drive is an LVM,
and is assigned as /dev/sda. 200Gb drive is /dev/sdc, 400Gb drive is
/dev/sdb.
Great, so I setup my fstab to mount /dev/sbb1 as 400-disk,
/dev/sdc1 as 200-disk, and I leave alone the config for the 500, which is
lvm and seems to be mounting on /dev/sda. If I reboot, all of a sudden my
400Gb disk is gone, fdisk shows 500Gb drive is now running on /dev/sbb.
Huh? Reboot, might be changed back to sda or even sdc. What in the world
is giving out these drive assignments and how come I cannot write a
simple fstab to handle this situation? Could this issue be caused by BIOS
IDE assignemtns or SATA PCI card SATA assignment? Or do I just have a bad
/etc/fstab file?
Okay, you need data I will provide a current fdisk report (could change
on boot) and my /etc/fstab files. Thank you.
/etc/fstab
cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Thu Jan 5 03:04:31 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more
info
#
/dev/mapper/vg_paulspcworks-lv_root / ext4
defaults 1 1
UUID=fd5c8860-9966-4743-9e95-33accbdff2a5 /boot ext4
defaults 1 2
/dev/mapper/vg_paulspcworks-lv_home /home ext4
defaults 1 2
/dev/mapper/vg_paulspcworks-lv_swap swap swap
defaults 0 0
tmpfs /dev/shm tmpfs defaults 0
0
devpts /dev/pts devpts gid=5,modeb0 0
0
sysfs /sys sysfs defaults 0
0
proc /proc proc defaults 0
0
/dev/sdb1 /mnt/400_Disk ext4 defaults 0 0
/dev/sdc1 /mnt/200_Disk ext4 defaults 0 0
#fdisk -l
sudo fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x757ed7e3
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 60802 487873536 8e Linux LVM
Partition 2 does not end on cylinder boundary.
Disk /dev/sdb: 400.1 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00014c83
Device Boot Start End Blocks Id System
/dev/sdb1 1 48641 390708801 83 Linux
Disk /dev/sdc: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000c1b0
Device Boot Start End Blocks Id System
/dev/sdc1 1 24321 195358401 83 Linux
Disk /dev/mapper/vg_paulspcworks-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_paulspcworks-lv_root doesn't contain a valid
partition table
Disk /dev/mapper/vg_paulspcworks-lv_swap: 5335 MB, 5335154688 bytes
255 heads, 63 sectors/track, 648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_paulspcworks-lv_swap doesn't contain a valid
partition table
Disk /dev/mapper/vg_paulspcworks-lv_home: 440.6 GB, 440557109248 bytes
255 heads, 63 sectors/track, 53561 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_paulspcworks-lv_home doesn't contain a valid
partition table
~Ohmster | ohmster59 /a/t/ gmail dot com
Similar topics
- [Samba] Setting up Samba and CentOS 6.2 IPA
- Bug#691665: linux-image-2.6.32-5-amd64: Under CentOS 6.3 as a host OS Debian kernel hangs as a guest OS (KVM-QEMU)
Make your own search :
Tags
Create a new topic
Follow the discussion
14 replies
Make a reply
May 25th, 2013 - 5:59 PM ET
Join now


Replies