Fedora Linux Support Community & Resources Center
  #1  
Old 22nd February 2008, 07:38 AM
crab_com Offline
Registered User
 
Join Date: Oct 2006
Posts: 124
Mounting secondary hardisk

Hey all,

My problem is that my FC5 machine just keeps on doing a reboot on startup and loops.

What I've done is removed the hard disk an put it in my F8 machine.

I'm wondering how do i Mount this correctly so I'm able to backup the contents on the hard disk.

Cheers, Crab
Reply With Quote
  #2  
Old 22nd February 2008, 07:53 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
What is the output of fdisk -ls ?
Reply With Quote
  #3  
Old 22nd February 2008, 08:43 AM
crab_com Offline
Registered User
 
Join Date: Oct 2006
Posts: 124
fdisk -ls

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

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

Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0a400a3f

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 4865 38973690 8e Linux LVM

Disk /dev/dm-0: 247.7 GB, 247732371456 bytes
255 heads, 63 sectors/track, 30118 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: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-1 doesn't contain a valid partition table
Reply With Quote
  #4  
Old 22nd February 2008, 09:17 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
I'm assuming that your second hard drive from FC5 box is the one listed here.

There is a linux partition and a Linux LVM on that drive.

Mounting linux partition is easy mount /dev/sdb1 /mount/point

To mount the linux LVM I'm checking to see if there's an option (like we have in software raids) to assemble a pre-existing lvm.


Code:
Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0a400a3f

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 4865 38973690 8e Linux LVM
Edit: I was away from my pc.
Reply With Quote
  #5  
Old 22nd February 2008, 09:22 AM
crab_com Offline
Registered User
 
Join Date: Oct 2006
Posts: 124
[root@localhost ~]# mount /dev/sdb1 /mount/point
mount: mount point /mount/point does not exist

seems it didn't want to mount it...
Reply With Quote
  #6  
Old 22nd February 2008, 09:23 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Wait I'm confused, Is you second hard drive the 40 GB hdd, or the 250GB?
Reply With Quote
  #7  
Old 22nd February 2008, 09:24 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Quote:
Originally Posted by crab_com
[root@localhost ~]# mount /dev/sdb1 /mount/point
mount: mount point /mount/point does not exist

seems it didn't want to mount it...
Was an example, I was refering to any empty directory where you'd want to mount the partition, usually /mnt is free, try mount /dev/sdb1 /mnt
Reply With Quote
  #8  
Old 22nd February 2008, 09:26 AM
crab_com Offline
Registered User
 
Join Date: Oct 2006
Posts: 124
yeah the 40gb disk is the second drive.....
Reply With Quote
  #9  
Old 22nd February 2008, 09:29 AM
crab_com Offline
Registered User
 
Join Date: Oct 2006
Posts: 124
mount /dev/sdb1 /mnt worked so that mounted that partition how about the other 1?

Quote:
[root@localhost ~]# mount /dev/sdb1 /mnt
[root@localhost ~]# cd /mnt/
[root@localhost mnt]# ls
config-2.6.15-1.2054_FC5 lost+found
config-2.6.20-1.2307.fc5 System.map-2.6.15-1.2054_FC5
grub System.map-2.6.20-1.2307.fc5
initrd-2.6.15-1.2054_FC5.img vmlinuz-2.6.15-1.2054_FC5
initrd-2.6.20-1.2307.fc5.img vmlinuz-2.6.20-1.2307.fc5
[root@localhost mnt]#
Reply With Quote
  #10  
Old 22nd February 2008, 09:37 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Okay for the LVM partition, there's no easy one line command, this is how you'd "assemble" an LVM.

Before we go do that I want to see the output of the following commands

pvdisplay
lvdisplay
vgdisplay

Please note, since we're are working on a hdd with exisiting data, there's always a risk of losing date, so be very careful running commands that might damage data on your hdd.

I'll not be responsible for any dataloss


Edit: Please run all the above commands with verbose output e.g. pvdisplay -vv

Last edited by notageek; 22nd February 2008 at 09:43 AM.
Reply With Quote
  #11  
Old 22nd February 2008, 09:39 AM
crab_com Offline
Registered User
 
Join Date: Oct 2006
Posts: 124
hehe yes we both better be very careful because I've got a well written squid.conf file i need to recover
Just running the commands now...
Reply With Quote
  #12  
Old 22nd February 2008, 09:42 AM
crab_com Offline
Registered User
 
Join Date: Oct 2006
Posts: 124
Here you go mate

Quote:
[root@localhost mnt]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 232.69 GB / not usable 4.58 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 7446
Free PE 1
Allocated PE 7445
PV UUID geZaUD-9ekk-xfn3-bs0p-2wkY-3qnf-T3tBwM
Quote:
[root@localhost mnt]# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID aevge5-TmUR-zcuA-EXab-EG6b-70bI-tYQSzI
LV Write Access read/write
LV Status available
# open 1
LV Size 230.72 GB
Current LE 7383
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID RQ6fAa-iinv-HUke-SwUI-MPx3-ZMRd-5wWbbZ
LV Write Access read/write
LV Status available
# open 1
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1
Quote:
[root@localhost mnt]# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 232.69 GB
PE Size 32.00 MB
Total PE 7446
Alloc PE / Size 7445 / 232.66 GB
Free PE / Size 1 / 32.00 MB
VG UUID MJLN2Q-X3Va-kW4s-l9jj-d2kR-60yZ-emh4K9
Reply With Quote
  #13  
Old 22nd February 2008, 09:45 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Okay great, the task is far simpler than I thought. Here's how to get that lvm mounted.

1. Unmount the existing partition with umount /mnt
2. To mount the LVM try mount /dev/VolGroup00/LogVol00 /mnt

Edit:
Wait, I see that you have to logical volumes, here's how you'll get them both mounted.

1. umount /mnt
2. mkdir /mnt/lv1
3. mkdir /mnt/lv2
4. mount /dev/VolGroup00/LogVol00 /mnt/lv1
5. mount /dev/VolGroup00/LogVol01 /mnt/lv2

Last edited by notageek; 22nd February 2008 at 09:48 AM.
Reply With Quote
  #14  
Old 22nd February 2008, 09:50 AM
crab_com Offline
Registered User
 
Join Date: Oct 2006
Posts: 124
thats my F8 partition mate...
Reply With Quote
  #15  
Old 22nd February 2008, 09:51 AM
crab_com Offline
Registered User
 
Join Date: Oct 2006
Posts: 124
hehe i see now edited ur post
Reply With Quote
Reply

Tags
hardisk, mounting, secondary

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mount hardisk zezolazezo Using Fedora 1 13th March 2006 12:37 AM
WindowsXP and FC4 on the same hardisk. javaBoy Using Fedora 3 10th August 2005 08:59 AM


Current GMT-time: 01:17 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat