[clue-tech] mount second hard drive

Bob Meetin bobm at dottedi.biz
Tue Jul 15 17:46:40 MDT 2008


1) David got his beer and then some...
2) I got a new computer and now a new computer with an Ubuntu desktop 
and some other sweet goodies.
3) So now back to the drawing board, here is the output of script 
(hadn't used it in many years):

Script started on Tue 15 Jul 2008 05:11:24 PM MDT

root at syncsync:/bin# mount  /dev/sdb2 /mnt
mount: unknown filesystem type 'LVM2_member'
root at syncsync: /binroot at syncsync:/bin# 
mount  /dev/sdb2 /mnt

root at syncsync:/bin# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda5            217416228   5785228 200673872   3% /
varrun                  972280       136    972144   1% /var/run
varlock                 972280         0    972280   0% /var/lock
udev                    972280        60    972220   1% /dev
devshm                  972280        12    972268   1% /dev/shm
lrm                     972280     38684    933596   4% 
/lib/modules/2.6.24-19-generic/volatile
/dev/sdb1               101086     18598     77269  20% /mnt

root at syncsync# ls -l /mnt
total 12737
-rw-r--r--  1 root root   78675 2008-02-10 15:37 
config-2.6.23.15-80.fc7
-rw-r--r--  1 root root   78675 2008-05-14 22:42 
config-2.6.23.17-88.fc7
drwxr-xr-x+ 2 root root    1024 2008-05-18 08:01 grub
-rw-------  1 root root 3561239 2008-02-13 10:06 
initrd-2.6.23.15-80.fc7.img
-rw-------  1 root root 3602584 2008-05-18 07:56 
initrd-2.6.23.17-88.fc7.img
drwx------  2 root root   12288 2007-11-10 04:52 lost+found
-rw-r--r--  1 root root  846499 2008-02-10 15:37 
System.map-2.6.23.15-80.fc7
-rw-r--r--  1 root root  846522 2008-05-14 22:42 
System.map-2.6.23.17-88.fc7
-rw-r--r--  1 root root 1974848 2008-02-10 15:37 
vmlinuz-2.6.23.15-80.fc7
-rw-r--r--  1 root root 1975008 2008-05-14 22:42 
vmlinuz-2.6.23.17-88.fc7

root at syncsync: /binroot at syncsync:/bin# fdisk -l /dev/hdb
root at syncsync: /binroot at syncsync:/bin# fdisk -i /dev/hdb
fdisk: invalid option -- i

Usage: fdisk [-b SSZ] [-u] DISK     Change partition table
       fdisk -l [-b SSZ] [-u] DISK  List partition table(s)
       fdisk -s PARTITION           Give partition size(s) in blocks
       fdisk -v                     Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
root at syncsync: /binroot at syncsync:/bin#  fdisk  /dev/hdb1

Unable to open /dev/hdb1
root at syncsync: /binroot at syncsync:/bin# vgscan --mknodes
  Reading all physical volumes.  This may take a while...
  Found volume group "VolGroup00" using metadata type lvm2
  /proc/misc: No entry for device-mapper found
  Is device-mapper driver missing from kernel?
  Failure to communicate with kernel device-mapper driver.
  /proc/misc: No entry for device-mapper found
  Is device-mapper driver missing from kernel?
  Failure to communicate with kernel device-mapper driver.
  Incompatible libdevmapper 1.02.20 (2007-06-15)(compat) and kernel driver
root at syncsync: /binroot at syncsync:/bin# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "VolGroup00" using metadata type lvm2
root at syncsync: /binroot at syncsync:/bin# vgchange -a y
  /proc/misc: No entry for device-mapper found
  Is device-mapper driver missing from kernel?
  Failure to communicate with kernel device-mapper driver.
  /proc/misc: No entry for device-mapper found
  Is device-mapper driver missing from kernel?
  Failure to communicate with kernel device-mapper driver.
  Incompatible libdevmapper 1.02.20 (2007-06-15)(compat) and kernel driver
  0 logical volume(s) in volume group "VolGroup00" now active
root at syncsync: /binroot at syncsync:/bin# ls -l /dev/mapper
ls: cannot access /dev/mapper: No such file or directory
root at syncsync: /binroot at syncsync:/bin# ls /dev/mapper
ls: cannot access /dev/mapper: No such file or directory
root at syncsync: /binroot at syncsync:/bin# exit

Script done on Tue 15 Jul 2008 05:14:53 PM MDT

Over, Bob
----------

David L. Anselmi wrote:
> Bob Meetin wrote:
>> --> dentistry only involves pulling teeth, this is more like pulling 
>> magic out of a hat, so why do dentists make the big bucks? <--
>
> You can claim not to be a techy type but you're trying to do something 
> technical.  So if you don't want to be patient and learn, buy David 
> Willson (ok, I'll spell it right this time) a beer.  Or come to 
> installfest on the 19th.
>
> David, I wouldn't bother with the RH 9 system.
>
>> # cd /bin/sbin
>> # ./vgscan --mknodes
>> ./vgscan: unrecognized option `--mknodes'
>> Logical Volume Manager 1.0.3
>
> You have the old version of LVM and I'll bet your drive uses the new 
> version.  Getting LVM2 to run on RH9 is probably much more painful 
> than it's worth.  So you have three choices.
>
> Boot off Knoppix or another live CD that has LVM 2.  Then the commands 
> will probably work.
>
> Install something modern over your RH9 disk.
>
> You're down this road because your drive had boot problems.  They 
> might not be that hard to fix if we knew what they were.
>
> There's some chance that you don't have the right module loaded and 
> that's causing the problem, but I doubt it.
>
> Dave
>
>
>


-- 
Bob Meetin
dotted i - Internet Strategies & Solutions
www.dottedi.biz
303-926-0167




More information about the clue-tech mailing list