LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-07-2009, 04:10 PM   #1
chriselwell
LQ Newbie
 
Registered: Apr 2009
Posts: 21

Rep: Reputation: 15
Laptop 2nd hard drive issue


I have a HP pavilion laptop with 2 hard drives primary is linux and new, 2nd drive is also full install with important files. I just need help in mounting or being able to get info from it so that i can format as storage. All that it mounted at this point is /boot, i need rest of drive contents please help.
 
Old 12-07-2009, 05:50 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Need some more info.
What linux distribution are you running and what distribution is on the 2nd drive?
Do you know how the 2nd drive is partitioned?
Post the output of the command
fdisk -l (must be root or use sudo and that is a small L)
 
Old 12-07-2009, 06:11 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
If the second drive is just one partition you could mount it somewhere. This also assumes your distro uses sd* for the hard disks and that you have root access to the system. I will concur with the above statement that additional information would be helpfull in giving you a better answer.

Code:
 
user@system $ mkdir /mnt/sdb1 
user@system $ mount /dev/sdb1 /mnt/sdb1 
user@system $ cd /mnt/sdb1
Then you can see if any data is there.
 
Old 12-07-2009, 06:50 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I do not think it is that simple. I assumed based on one your previous posts that the data probably resides on a LVM partition. The steps to mount the 2nd drive depends on what distribution is currently running and if it includes LVM support. Here are the basic steps

lvm vgchange -a y
lvm lvs (this just lists the volume name, change the mount command to reflect if different)
mkdir /media/drive2
mount /dev/VolGroup00/LogVol00 /media/drive2 (volume name should match above)

If the currently running distribution like fedora is also using a LVM then you might have problems if the volumes have the same name.
 
Old 12-08-2009, 07:25 PM   #5
chriselwell
LQ Newbie
 
Registered: Apr 2009
Posts: 21

Original Poster
Rep: Reputation: 15
Okay so both drives have fedora 10 distro, 2nd drive was my primary but had bad sectors making it unreadable in boot, i want to be able to just get info off then format the disk. currently i have an icon on my desktop that is labeled "/boot" i believe its reading the drive just not sure
 
Old 12-08-2009, 07:28 PM   #6
chriselwell
LQ Newbie
 
Registered: Apr 2009
Posts: 21

Original Poster
Rep: Reputation: 15
fdisk -l is thus


Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d4feb

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 19457 156087540 8e Linux LVM

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 25 200781 83 Linux
/dev/sdb2 26 19457 156087540 8e Linux LVM

and trying mount command i get thus

[root@localhost sdb1]# mkdir /mnt/sdb2
[root@localhost sdb1]# mount /dev/sdb2 /mnt/sdb2
mount: unknown filesystem type 'lvm2pv'
[root@localhost sdb1]#
 
Old 12-08-2009, 07:47 PM   #7
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Quote:
[root@localhost sdb1]# mkdir /mnt/sdb2
[root@localhost sdb1]# mount /dev/sdb2 /mnt/sdb2
mount: unknown filesystem type 'lvm2pv'
[root@localhost sdb1]#
Indeed it looks like this is a lvm partition and mount will not be able to auto mount it. I do not have experience with LVM but michaelk posted some usefull info above.
 
Old 12-09-2009, 08:16 PM   #8
chriselwell
LQ Newbie
 
Registered: Apr 2009
Posts: 21

Original Poster
Rep: Reputation: 15
okay so how do i go about changing volgroup number on second drive

[root@localhost Chris]# pvs
Incorrect metadata area header checksum
WARNING: Duplicate VG name VolGroup00: Existing K6dpfV-zgLo-QRwU-3cly-djqs-H1CF-PwyKj7 (created here) takes precedence over bStgWi-q4YW-Qnbe-3S6M-GOEh-LEH2-xSF4QP
WARNING: Duplicate VG name VolGroup00: Existing K6dpfV-zgLo-QRwU-3cly-djqs-H1CF-PwyKj7 (created here) takes precedence over bStgWi-q4YW-Qnbe-3S6M-GOEh-LEH2-xSF4QP
Incorrect metadata area header checksum
WARNING: Duplicate VG name VolGroup00: Existing bStgWi-q4YW-Qnbe-3S6M-GOEh-LEH2-xSF4QP (created here) takes precedence over K6dpfV-zgLo-QRwU-3cly-djqs-H1CF-PwyKj7
Incorrect metadata area header checksum
WARNING: Duplicate VG name VolGroup00: Existing K6dpfV-zgLo-QRwU-3cly-djqs-H1CF-PwyKj7 (created here) takes precedence over bStgWi-q4YW-Qnbe-3S6M-GOEh-LEH2-xSF4QP
PV VG Fmt Attr PSize PFree
/dev/sda1 VolGroup00 lvm2 a- 192.00M 192.00M
/dev/sda2 VolGroup00 lvm2 a- 148.84G 32.00M
/dev/sdb2 VolGroup00 lvm2 a- 148.84G 32.00M
it seems to want to auto mount but cant
 
Old 12-09-2009, 08:45 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Here you go..... From the info I found it is easier to rename the old with the new disconnected.

http://www.linuxquestions.org/questi...-to-do-375928/
 
Old 12-09-2009, 09:33 PM   #10
chriselwell
LQ Newbie
 
Registered: Apr 2009
Posts: 21

Original Poster
Rep: Reputation: 15
I got it figured out had to use rescue disk and vgrename the VolGroup number then

mount /dev/VolGroup01/LogVol00 /media/drive2

it worked great
thank you all for your help and time and wonderful effort
 
  


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
2nd hard drive in laptop Corrado Linux - Hardware 1 11-21-2006 09:05 PM
2nd hard drive naflan Debian 4 02-22-2004 02:55 PM
2nd hard drive neo.sarcastic Linux - Hardware 4 09-22-2003 11:22 PM
2nd hard drive issue aotweb Linux - Hardware 3 06-30-2003 10:50 AM
2nd hard drive jarrodatt Linux - Hardware 1 11-12-2002 02:31 AM

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

All times are GMT -5. The time now is 07:21 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