LinuxQuestions.org
Visit Jeremy's Blog.
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 10-27-2007, 08:26 AM   #1
timbo1
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
two hard drive two distributions how can i access the other drive


G'day
I had FC6 running on one hard drive but due to that drive filling up I put fedora 7 on my other (larger) hard drive. I stuffed up with the options for grub so now the data on the fc6 drive is there but I'm not sure how to access it. (mainly because linux is so stable I havent had to dive under the hood that often in my years as a user)
I did a fdisk -l as root and got:

Disk /dev/sda: 15.0 GB, 15020457984 bytes
255 heads, 63 sectors/track, 1826 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1826 14562922+ 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

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-2: 14.3 GB, 14361296896 bytes
255 heads, 63 sectors/track, 1745 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 503 MB, 503316480 bytes
255 heads, 63 sectors/track, 61 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-3 doesn't contain a valid partition table


The answer is probably really simple but I'd prefer to pick the experts brains before i really stuff things up

thanx
Timbo
 
Old 10-28-2007, 05:10 PM   #2
rednuht
Member
 
Registered: Aug 2005
Posts: 239
Blog Entries: 1

Rep: Reputation: 31
Ok, good work on finding out what drives are on the sytstem.
You have two scsii drives both with two partitions.
/dev/sda is the first drive and /dev/sdb is the second drive.
To mount the first partition of the first drive which appears to tbe the smaller of the two (15G)
(can confirm by checking the output of
Code:
mount
1. make a directory to act as the mount point, these vary from distribution but you can actually put them anywhere.
in my gentoo system they are under /mnt
so
Code:
mkdir /mnt/sda1
or
Code:
mkdir /mnt/oldharddrive
2. (usually as root) mount the drive
Code:
mount /dev/sda1 /mnt/sda1
or
Code:
mount /dev/sda1 /mnt/oldharddrive
3. access the files
Code:
ls /mnt/sda1
or
Code:
ls /mnt/oldharddrive
will list all your files.
4. unmount the drive when finished.
Code:
umount /mnt/sda1
or
Code:
umount /mnt/oldharddrive
5. if its something you want in a permanent setup, look at the /etc/fstab file and add a new line for your drive.
 
Old 10-28-2007, 05:12 PM   #3
vatten
Member
 
Registered: Apr 2005
Posts: 30

Rep: Reputation: 15
boot one system then write in bash
Code:
df
and check the output the if it is /dev/sda then you should mount /dev/sdb devices and vice versa
then make a new dir where you want to mount it and simply write mount /dev/sdxx <the dir you made> replace the first x with a or b and the second with the number of the correct partion
you might have to specify filesystem, and that you do with the flag -t. If you have formated it with ext3 simply write mount /dev/sdxx /<the dir> -t ext3
 
Old 10-28-2007, 05:57 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
By default Fedora creates 2 partitions, a /boot (sda1,sdb1) and an LVM partition (sda2,sdb2) which contains / and swap. LVMs can not be mounted via the usual method.

You might want to check out the LVM howto to understand how they work as well as this link for mounting your / from the other distribution.
http://www.brandonhutchinson.com/Mou...VM_volume.html
 
Old 10-29-2007, 06:35 AM   #5
timbo1
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Smile many thanx

michaelk that link was the absolute ducks guts worked a treat. Also thannxto everyone else that posted a reply to my question Very much appreciated.
ta
Timbo
 
  


Reply

Tags
lvm, mounting



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
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 09:19 AM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM
Hard Drive Access ? vbsaltydog Linux - Security 1 08-09-2007 05:59 PM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM

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

All times are GMT -5. The time now is 04:50 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
Open Source Consulting | Domain Registration