 |
 |
 |
 |
| Hardware & Laptops Help with your hardware, including laptop issues |

22nd February 2008, 07:38 AM
|
|
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
|

22nd February 2008, 07:53 AM
|
 |
Registered User
|
|
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068

|
|
|
What is the output of fdisk -ls ?
|

22nd February 2008, 08:43 AM
|
|
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
|

22nd February 2008, 09:17 AM
|
 |
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.
|

22nd February 2008, 09:22 AM
|
|
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...
|

22nd February 2008, 09:23 AM
|
 |
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?
|

22nd February 2008, 09:24 AM
|
 |
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
|

22nd February 2008, 09:26 AM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 124

|
|
|
yeah the 40gb disk is the second drive.....
|

22nd February 2008, 09:29 AM
|
|
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]#
|
|

22nd February 2008, 09:37 AM
|
 |
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.
|

22nd February 2008, 09:39 AM
|
|
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...
|

22nd February 2008, 09:42 AM
|
|
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
|
|

22nd February 2008, 09:45 AM
|
 |
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.
|

22nd February 2008, 09:50 AM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 124

|
|
|
thats my F8 partition mate...
|

22nd February 2008, 09:51 AM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 124

|
|
hehe i see now  edited ur post
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 01:17 (Sunday, 26-05-2013)
|
|
 |
 |
 |
 |
|
|