LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-07-2006, 05:06 AM   #1
lcornea
LQ Newbie
 
Registered: Dec 2005
Location: Onesti Romania
Distribution: fedor core 4
Posts: 24

Rep: Reputation: 15
Unhappy can't mount an linux partition from an secondary drive


hi
I have installed a new drive in my computer and it has only linux fedora core 4 installed on it.I am desperatly trying to mount the partition but it's not working

I used the /sbin/fdisk -l comand so i would know what the partition name. i got this :

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

Device Boot
/dev/hda1 *
/dev/hda2
..................
/dev/hda11
/dev/hda12

Disk /dev/hdd: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 13 104391 83 Linux
/dev/hdd2 14 3649 29206170 8e Linux LVM

and tryed to mount using: mount /dev/hdd2 /mnt/sec_drv -t auto
It didn't work because i had to specify a filesystem type.
My question is:
What is the filesystem for that partition?? Or what am i doing wrong
Thenx
 
Old 02-07-2006, 05:16 AM   #2
tizzef
Member
 
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119

Rep: Reputation: 20
It seems that you have created a Logical Volume on you HD. (LVM : Logical Volum Manager)
 
Old 02-07-2006, 07:08 AM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,397
Blog Entries: 1

Rep: Reputation: 64
Quote:
Originally Posted by lcornea
Or what am i doing wrong
Thenx
Unless you really want a LVM partition on this HD, change the tpye of /dev/hdd2 to 83 (Linux). After that, create a filesystem on it and you ready to go.
The commands:
# fdisk /dev/hdd (t, 2, 83, w are the keys to change the type of partition 2 to 83 and write the modifications).

#mkfs -t ext3 /dev/hdd2

#mount /dev/hdd2 /mnt/sec_drv

regards,
 
Old 02-07-2006, 08:45 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
What OS is on the machine other than on the new disk?
From what OS are you issuing fdisk command?
 
Old 02-07-2006, 09:46 AM   #5
lcornea
LQ Newbie
 
Registered: Dec 2005
Location: Onesti Romania
Distribution: fedor core 4
Posts: 24

Original Poster
Rep: Reputation: 15
i have an fedora core 4 on bolth hdd's, I belive it would help if you understood that when i instaled linux i let it make the partitions. So now i have a lot of info that i must extract from my second hdd. I can't boot form my second hdd(the one i am trying to mount) because linux was installed on a nother sistem.
 
Old 02-07-2006, 10:30 AM   #6
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,397
Blog Entries: 1

Rep: Reputation: 64
What partitions are mounted right now in your machine ?
(just give me the output of command "mount")
 
Old 02-08-2006, 09:33 AM   #7
lcornea
LQ Newbie
 
Registered: Dec 2005
Location: Onesti Romania
Distribution: fedor core 4
Posts: 24

Original Poster
Rep: Reputation: 15
ok here is the output of mount:
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
/dev/proc on /proc type proc (rw)
/dev/sys on /sys type sysfs (rw)
/dev/devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda11 on /boot type ext3 (rw)
/dev/shm on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
automount(pid2017) on /misc type autofs (rw,fd=4,pgrp=2017,minproto=2,maxproto=4)
automount(pid2064) on /net type autofs (rw,fd=4,pgrp=2064,minproto=2,maxproto=4)
Sorry for the delay...
Hope you cna help me i really need the files on that partition.
 
Old 02-08-2006, 09:57 AM   #8
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,397
Blog Entries: 1

Rep: Reputation: 64
what are the output of (as root)
# pvdisplay /dev/hdd2
and
# lvdisplay -v /dev/mapper/VolGroup00-LogVol00

The output of lvdisplay is quite long and boring. Just give me the initial section until the output:

--- Logical extents ---
LE PV PE reads writes
blah blah blah....
 
Old 02-08-2006, 10:21 AM   #9
lcornea
LQ Newbie
 
Registered: Dec 2005
Location: Onesti Romania
Distribution: fedor core 4
Posts: 24

Original Poster
Rep: Reputation: 15
ok the output for pvdisplay /dev/hdd2 is:
Physical volume ---
PV Name /dev/hdd2
VG Name VolGroup00
PV Size 27.84 GB / not usable 0
Allocatable yes
PE Size (KByte) 32768
Total PE 891
Free PE 1
Allocated PE 890
PV UUID NklpPc-OLOf-5SEs-2YJg-YQQ1-JcST-ujxDsw

and lvdisplay -v /dev/mapper/VolGroup00-LogVol00 :

Using logical volume(s) on command line
Wiping cache of LVM-capable devices
Volume group "mapper" not found

it's all of it.
Thenx for your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I mount my secondary hard drive on boot? Scorlibrian Linux - Hardware 1 02-26-2005 12:36 PM
Mount Secondary EXT2 Drive StarSage Fedora 3 02-17-2005 12:17 AM
Can't Seem to Mount Secondary NTFS Drive Shoal Linux - Hardware 4 08-08-2004 08:55 PM
How to mount (and keep mounted) a NTFS secondary drive? lionofdharma Linux - Hardware 8 04-25-2004 03:05 PM
New Linux Install removed secondary hard drive partition suderfield Linux - Newbie 7 06-26-2003 05:15 PM


All times are GMT -5. The time now is 08:35 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration