LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-27-2009, 09:39 PM   #1
ETCKerry
Member
 
Registered: Sep 2008
Posts: 37

Rep: Reputation: 15
Problems mounting hard drives


Hello all,

I've been struggling with this one for a while - I have three SATA hard drives installed on my system:
/dev/sda - an 80 GB disk with three partitions, one NTFS for WinXP, one ext4 for Fedora 11 x86_64, and a boot partition
/dev/sdb - a 250 GB disk with one partition, ext4
/dev/sdc - a 250 GB disk with one partition, ntfs

I can mount any partition on /dev/sda without problems - everything works exactly as expected. Attempting to mount a partition from one of the other disks results in something like the following (this is for sdc1):
Code:
[User@machine ~]$ sudo mount -t ntfs /dev/sdc1 /mnt/shared
[sudo] password for User: 
ntfs-3g: Failed to access volume '/dev/sdc1': No such file or directory

ntfs-3g 2009.11.14 integrated FUSE 27 - Third Generation NTFS Driver
		XATTRS are on, POSIX ACLS are off

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2009 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage:    ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options:  ro (read-only mount), remove_hiberfile, uid=, gid=,
          umask=, fmask=, dmask=, streams_interface=.
          Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

Ntfs-3g news, support and information:  http://ntfs-3g.org
The /mnt/shared directory is created; the failed to access error is related to the disk.

Here is the output from fdisk:
Code:
[User@machine ~]$ sudo fdisk -l

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0f970f96

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       30401   244196001   8e  Linux LVM

Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1050104f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       30401   244196001    7  HPFS/NTFS

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8e538e53

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        6375    51200000    7  HPFS/NTFS
/dev/sda2   *        6375        6400      204800   83  Linux
/dev/sda3            6400        9729    26743361   8e  Linux LVM

Disk /dev/dm-0: 21.4 GB, 21428699136 bytes
255 heads, 63 sectors/track, 2605 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 5955 MB, 5955911680 bytes
255 heads, 63 sectors/track, 724 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 250.0 GB, 250059348992 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0f970f96

     Device Boot      Start         End      Blocks   Id  System
/dev/dm-2p1               1       30401   244196001   8e  Linux LVM

Disk /dev/dm-3: 250.0 GB, 250056705024 bytes
255 heads, 63 sectors/track, 30400 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-3 doesn't contain a valid partition table
And also from blkid (this does not match the output from above - but I don't know if this is actually related to the problem or how to fix it):
Code:
[User@machine ~]$ sudo blkid
/dev/sda1: UUID="506412E06412C91C" TYPE="ntfs" 
/dev/sda2: UUID="811bf259-33d5-4db2-9851-e93b47dcbcc8" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda3: UUID="U3AJLH-Lhm1-b0lf-HDX9-ZK1V-ezqU-sb0YGQ" TYPE="lvm2pv" 
/dev/dm-0: UUID="f5733171-0753-4f53-834b-cc693ffb0aed" TYPE="ext4" 
/dev/dm-1: TYPE="swap" 
/dev/mapper/vg_machine-lv_root: UUID="f5733171-0753-4f53-834b-cc693ffb0aed" TYPE="ext4" 
/dev/mapper/vg_machine-lv_swap: TYPE="swap"
Any suggestions?

Thanks!

-Kerry
 
Old 12-28-2009, 12:14 AM   #2
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
What does "ls -al /dev/sd*" show?
 
Old 12-28-2009, 12:19 AM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Whats output of /proc/partitions ?
 
Old 12-28-2009, 06:32 AM   #4
ETCKerry
Member
 
Registered: Sep 2008
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by xode View Post
What does "ls -al /dev/sd*" show?
I get this:
Code:
[User@machine ~]$ ls -al /dev/sd*
brw-rw----. 1 root disk 8,  0 2009-12-25 06:48 /dev/sda
brw-rw----. 1 root disk 8,  1 2009-12-26 14:52 /dev/sda1
brw-rw----. 1 root disk 8,  2 2009-12-25 11:48 /dev/sda2
brw-rw----. 1 root disk 8,  3 2009-12-25 06:48 /dev/sda3
brw-rw----. 1 root disk 8, 16 2009-12-25 06:48 /dev/sdb
brw-rw----. 1 root disk 8, 32 2009-12-25 06:48 /dev/sdc
sdb may or may not be partitioned - I've been having different issues with that - but I'm sure that sdc is partition correctly as I can access it from WinXP.

It doesn't seem that my system recognizes /proc/partitions:
Code:
[User@machine ~]$ /proc/partitions
bash: /proc/partitions: Permission denied
[User@machine~]$ sudo /proc/partitions
[sudo] password for User: 
sudo: /proc/partitions: command not found
[User@machine~]$ cd /proc/partitions
bash: cd: /proc/partitions: Not a directory
I'll do some hunting and try to get this one working...

Thanks,

Kerry

Last edited by ETCKerry; 12-29-2009 at 10:35 AM. Reason: missing spaces
 
Old 12-28-2009, 09:09 AM   #5
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
No, try
sudo cat /proc/partitions
 
Old 12-28-2009, 10:24 AM   #6
ETCKerry
Member
 
Registered: Sep 2008
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by vishesh View Post
No, try
sudo cat /proc/partitions
Ah, OK, here we go:
Code:
[User@machine bin]$ sudo cat /proc/partitions
[sudo] password for User:
major minor  #blocks  name

   8       16  244198584 sdb
   8       32  244198584 sdc
   8        0   78150744 sda
   8        1   51200000 sda1
   8        2     204800 sda2
   8        3   26743361 sda3
 253        0   20926464 dm-0
 253        1    5816320 dm-1
 253        2  244198583 dm-2
 253        3  244196001 dm-3
-Kerry
 
Old 12-28-2009, 10:32 AM   #7
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
Just reading over this I see the following. You have tried mounting /dev/sdc1? but from everything I see sdc1 doesn't exist, but sdc does.
Quote:
[User@machine ~]$ sudo mount -t ntfs /dev/sdc1 /mnt/shared
Try this instead
Code:
sudo mount -t ntfs /dev/sdc /mnt/shared
 
Old 12-28-2009, 01:11 PM   #8
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Quote:
Originally Posted by worm5252 View Post
Just reading over this I see the following. You have tried mounting /dev/sdc1? but from everything I see sdc1 doesn't exist, but sdc does.

Try this instead
Code:
sudo mount -t ntfs /dev/sdc /mnt/shared
I would not recommend this. Mounting /dev/sdc (if his system allows this) would completely bypass any partitioning on that hard drive and would like make it unreadable by WinXP. He needs to get his linux to see and show one or more /dev/sdbX and /dev/sdcX, where X is a single digit number.
 
Old 12-28-2009, 01:18 PM   #9
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Quote:
Originally Posted by ETCKerry View Post
I get this:
Code:
[User@machine~]$ ls -al /dev/sd*
brw-rw----. 1 root disk 8,  0 2009-12-25 06:48 /dev/sda
brw-rw----. 1 root disk 8,  1 2009-12-26 14:52 /dev/sda1
brw-rw----. 1 root disk 8,  2 2009-12-25 11:48 /dev/sda2
brw-rw----. 1 root disk 8,  3 2009-12-25 06:48 /dev/sda3
brw-rw----. 1 root disk 8, 16 2009-12-25 06:48 /dev/sdb
brw-rw----. 1 root disk 8, 32 2009-12-25 06:48 /dev/sdc
sdb may or may not be partitioned - I've been having different issues with that - but I'm sure that sdc is partition correctly as I can access it from WinXP.

Thanks,

Kerry
A couple more questions: (1) what other storage devices are connected to your computer in addition to the 3 SATA hard drives and how are they connected to your computer?; (2) what OS was used to partition the "sdc" hard drive?
 
Old 12-28-2009, 01:45 PM   #10
ETCKerry
Member
 
Registered: Sep 2008
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by worm5252 View Post
Try this instead
Code:
sudo mount -t ntfs /dev/sdc /mnt/shared
I tried this before reading xode's post, so this is what I get (in case it helps), but I don't want to make it unreadable by XP.
Code:
[User@machine ~]$ sudo mount -t ntfs /dev/sdc /mnt/shared
[sudo] password for User:
NTFS signature is missing.
Failed to mount '/dev/sdc': Invalid argument
The device '/dev/sdc' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
This does seem to indicate that I should be using sdc instead of sdc1, though. Strangely enough when I try to mount sdb, I get this:
Code:
[User@machine mnt]$ sudo mount -t ext4 /dev/sdb /mnt/data
mount: /dev/sdb already mounted or /mnt/data busy
I don't think /mnt/data is busy - if sdb is mounted, how can I figure out where it is? It's not in fstab.

In addition to the SATA hard drives, I have one SATA DVD burner, and all four devices are connected directly to the motherboard's SATA ports. sdc was partitioned in XP. There is nothing on sdb, so if it would be helpful to format/partition that to do some experimenting, that's fine with me. Obviously that one is ext4 so I partitioned that one with Linux.

Thanks for the help,

Kerry
 
Old 12-28-2009, 02:09 PM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Are you using encryption or LVM? The "253" major device number is for experimental.

Look at "sudo file -s /dev/sd*" and "sudo file -s /dev/dm*".

Also post /etc/fstab. If it was generated when you installed linux, it may have some clues.

Use "dmesg | less" to read and search boot messages. What did the kernel say about these devices when booting.
 
Old 12-28-2009, 03:59 PM   #12
ETCKerry
Member
 
Registered: Sep 2008
Posts: 37

Original Poster
Rep: Reputation: 15
The contents of fstab (which was indeed generated when Linux was installed):
Code:
#
# /etc/fstab
# Created by anaconda on Thu Nov 12 19:10:04 2009
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=811bf259-33d5-4db2-9851-e93b47dcbcc8 /boot                   ext3    de    faults        1 2
/dev/mapper/vg_machine-lv_root /                       ext4    defaults            1 1
/dev/mapper/vg_machine-lv_swap swap                    swap    defaults            0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620            0 0
#devpts options modified by setup update to fix #515521 ugly way
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
I'm not intentionally using encryption or LVM, although I believe this is something that Fedora 11 might use by default? I have definitely seen LVM mentioned (see output of fdisk -l in first post - sdb1 and sda3 use Linux LVM).

I scanned through "dmesg | less". Not really sure what I'm looking for, but these lines referred to the SATA devices (sorry - this is a little lengthy):
Code:
ata1: SATA max UDMA/133 irq_stat 0x00000040, connection status changed irq 26
ata2: SATA max UDMA/133 irq_stat 0x00000040, connection status changed irq 26
ata3: SATA max UDMA/133 irq_stat 0x00000040, connection status changed irq 26
ata4: SATA max UDMA/133 irq_stat 0x00000040, connection status changed irq 26
ata5: SATA max UDMA/133 abar m8192@0xfae76000 port 0xfae76300 irq 26
ata6: SATA max UDMA/133 abar m8192@0xfae76000 port 0xfae76380 irq 26

...

ata5: SATA link down (SStatus 0 SControl 300)
ata6: SATA link down (SStatus 0 SControl 300)

...

ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-8: WDC WD800AAJS-19M0A0, 01.03E01, max UDMA/133
ata1.00: 156301488 sectors, multi 16: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      WDC WD800AAJS-19 01.0 PQ: 0 ANSI: 5
sd 0:0:0:0: Attached scsi generic sg0 type 0
ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: ATA-8: WDC WD2500AAJS-00L7A0, 01.03E01, max UDMA/133
ata2.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 31/32)
ata3.00: ATA-8: WDC WD2500AAJS-00L7A0, 01.03E01, max UDMA/133
ata3.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 31/32)
ata2.00: configured for UDMA/133
scsi 1:0:0:0: Direct-Access     ATA      WDC WD2500AAJS-0 01.0 PQ: 0 ANSI: 5
sd 1:0:0:0: Attached scsi generic sg1 type 0
sd 1:0:0:0: [sdb] 488397168 512-byte hardware sectors: (250 GB/232 GiB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdb:<6>ata3.00: configured for UDMA/133
scsi 2:0:0:0: Direct-Access     ATA      WDC WD2500AAJS-0 01.0 PQ: 0 ANSI: 5
sd 2:0:0:0: Attached scsi generic sg2 type 0
sd 2:0:0:0: [sdc] 488397168 512-byte hardware sectors: (250 GB/232 GiB)
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdc: sdc1
sd 0:0:0:0: [sda] 156301488 512-byte hardware sectors: (80.0 GB/74.5 GiB)
sd 2:0:0:0: [sdc] Attached SCSI disk
 sdb1
sd 0:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sdb] Attached SCSI disk
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda:<6>ata4.00: ATAPI: ATAPI   iHAS124   Y, BL0W, max UDMA/100
ata4.00: configured for UDMA/100
scsi 3:0:0:0: CD-ROM            ATAPI    iHAS124   Y      BL0W PQ: 0 ANSI: 5
sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 3:0:0:0: Attached scsi CD-ROM sr0
sr 3:0:0:0: Attached scsi generic sg3 type 5
 sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk

...

ata6: SATA link down (SStatus 0 SControl 300)
ata5: SATA link down (SStatus 0 SControl 300)

...

ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata3.00: configured for UDMA/133
ata2.00: configured for UDMA/133
ata1.00: configured for UDMA/133
ata4.00: configured for UDMA/100
sd 0:0:0:0: [sda] Starting disk
sd 1:0:0:0: [sdb] Starting disk
sd 2:0:0:0: [sdc] Starting disk
And here are the file -s /dev... output:
Code:
[User@machine ~]$ sudo file -s /dev/sd*
/dev/sda:  x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, boot drive 0x80, 1st sector stage2 0x61c8441, GRUB version 0.94; partition 1: ID=0x7, starthead 1, startsector 63, 102400000 sectors; partition 2: ID=0x83, active, starthead 254, startsector 102400063, 409600 sectors; partition 3: ID=0x8e, starthead 254, startsector 102809663, 53486722 sectors, code offset 0x48
/dev/sda1: x86 boot sector, code offset 0x52, OEM-ID "NTFS    ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 63, dos < 4.0 BootSector (0x80)
/dev/sda2: Linux rev 1.0 ext3 filesystem data (needs journal recovery)
/dev/sda3: LVM2 (Linux Logical Volume Manager) , UUID: U3AJLHLhm1b0lfHDX9ZK1VezqUsb0YG
/dev/sdb:  x86 boot sector; partition 1: ID=0x8e, starthead 1, startsector 63, 488392002 sectors, extended partition table (last)\011, code offset 0x0
/dev/sdc:  x86 boot sector; partition 1: ID=0x7, starthead 1, startsector 63, 488392002 sectors, extended partition table (last)\011, code offset 0x0
Code:
[User@machine ~]$ sudo file -s /dev/dm*
/dev/dm-0: Linux rev 1.0 ext4 filesystem data (needs journal recovery) (extents) (large files) (huge files)
/dev/dm-1: Linux/i386 swap file (new style) 1 (4K pages) size 1454079 pages
/dev/dm-2: x86 boot sector; partition 1: ID=0x8e, starthead 1, startsector 63, 488392002 sectors, extended partition table (last)\011, code offset 0x0
/dev/dm-3: data
Thanks again,

Kerry

Last edited by ETCKerry; 12-29-2009 at 10:36 AM. Reason: missinig space
 
Old 12-28-2009, 10:47 PM   #13
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You are using lvm2, and probably created logical volumes in a volume group.

You can use pvscan to scan for physical volumes. Lvscan will scan for logical volumes. They should give you a picture of which physical partitions are used to composed the volume group. A volume group is similar disk device and has partitions known as logical volumes. The two levels of abstraction add flexibility, allowing you to for example create a partition larger than a drive, and also growing the lvm volume size.

Pay attention to the vg_machine-lv_root volume group. It probably is made up of your sdb and sdc drives.

Last edited by jschiwal; 12-28-2009 at 10:49 PM.
 
Old 12-29-2009, 09:05 AM   #14
ETCKerry
Member
 
Registered: Sep 2008
Posts: 37

Original Poster
Rep: Reputation: 15
How can I tell for sure if sdb and sdc are already included in a logical volume group? I ran lvscan and pvscan, but it seems to indicate that they are not in a volume group (only sda3 comes up with pvscan):

Code:
[User@machine ~]$ sudo pvscan
[sudo] password for User:
  PV /dev/sda3   VG vg_machine   lvm2 [25.50 GB / 0    free]
  Total: 1 [25.50 GB] / in use: 1 [25.50 GB] / in no VG: 0 [0   ]
[User@machine ~]$ sudo lvscan
  ACTIVE            '/dev/vg_machine/lv_root' [19.96 GB] inherit
  ACTIVE            '/dev/vg_machine/lv_swap' [5.55 GB] inherit
Even after successfully mounting sda1, it does not show up with a pvscan:
Code:
[User@machine ~]$ sudo mount -t ntfs /dev/sda1 /mnt/XPsys
[User@machine ~]$ sudo pvscan
  PV /dev/sda3   VG vg_machine   lvm2 [25.50 GB / 0    free]
  Total: 1 [25.50 GB] / in use: 1 [25.50 GB] / in no VG: 0 [0   ]
I tried to follow step-by-step with the information here to delete and re-create the partition on sdb, but when I try pvcreate, I get this:
Code:
[User@machine ~]$ sudo pvcreate /dev/sdb1
  Can't open /dev/sdb1 exclusively.  Mounted filesystem?
I don't think it's mounted, because this was immediately following a re-write of the partition table. They have you use pvdisplay to show physical volumes, and it seems to match the pvscan output (even this is after mounting sda1):
Code:
[User@machine ~]$ sudo pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda3
  VG Name               vg_machine
  PV Size               25.50 GB / not usable 577.00 KB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              6529
  Free PE               0
  Allocated PE          6529
  PV UUID               U3AJLH-Lhm1-b0lf-HDX9-ZK1V-ezqU-sb0YGQ
So how do I tell if a volume group contains the sdb and sdc disks? And how do I access them if they are included?

I appreciate all of the help so far - I'm learning a lot as I'm relatively new to Linux.

Thanks,

Kerry
 
Old 12-29-2009, 10:35 AM   #15
ETCKerry
Member
 
Registered: Sep 2008
Posts: 37

Original Poster
Rep: Reputation: 15
I found some more information about LVM troubleshooting hereand here, but haven't had much success. I thought I'd post some more information in case it is helpful.

Code:
[User@machine ~]$ sudo vgreduce vg_machine /dev/sdb
  Physical Volume "/dev/sdb" not found in Volume Group "vg_machine"
[User@machine ~]$ sudo vgreduce vg_machine /dev/sdb1
  Physical Volume "/dev/sdb1" not found in Volume Group "vg_machine"
[User@machine ~]$ sudo vgreduce vg_machine /dev/sdc
  Physical Volume "/dev/sdc" not found in Volume Group "vg_machine"
[User@machine ~]$ sudo vgreduce vg_machine /dev/sdc1
  Physical Volume "/dev/sdc1" not found in Volume Group "vg_machine"
I also tried to make a filesystem on sdb1, but that also told me that sdb was already in use. Immediately prior to this, I deleted the partition on sdb, rebooted, then recreated the partition. pvcreate issed the same error shown in my previous post, and mkfs showed this:
Code:
[User@machine ~]$ sudo mkfs -t ext4 /dev/sdb1
mke2fs 1.41.4 (27-Jan-2009)
/dev/sdb1 is apparently in use by the system; will not make a filesystem here!
Thanks,

Kerry
 
  


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
Mounting hard drives.. Skillz Linux - Hardware 7 04-04-2009 09:26 AM
Problems mounting hard drives Nixon Ubuntu 3 10-04-2006 01:59 AM
Mounting two hard drives dcshoecousa07 Linux - Hardware 1 12-30-2005 02:04 PM
mounting hard drives deathl Linux - Hardware 3 01-16-2004 01:17 AM
Mounting Hard Drives Q12321 Linux - Newbie 5 11-26-2003 08:50 PM

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

All times are GMT -5. The time now is 02:36 AM.

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