LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   mounting linux files from another hard disk(IDE) to current hard disk(sata) (https://www.linuxquestions.org/questions/linux-hardware-18/mounting-linux-files-from-another-hard-disk-ide-to-current-hard-disk-sata-639395/)

the lord protector 05-02-2008 11:09 AM

mounting linux files from another hard disk(IDE) to current hard disk(sata)
 
Hi every body .

im actually using debian(in sata) and i wanted to mount files from another hard disk which is an IDE .where in the IDE ,i have both windows and fc6 and i have mounted windows files,but when i have tired to mount linux it doesnt work ..Is that possible to mount linux files ?

When i give fdisk ..

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

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/sda2 2551 11717 73633927+ f W95 Ext'd (LBA)
/dev/sda3 11718 19457 62171550 83 Linux
/dev/sda5 2551 11474 71681998+ 7 HPFS/NTFS
/dev/sda6 11475 11717 1951866 82 Linux swap / Solaris

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1530 12289693+ c W95 FAT32 (LBA)
/dev/hda2 1531 9728 65850435 f W95 Ext'd (LBA)
/dev/hda5 4208 6948 22017051 b W95 FAT32
/dev/hda6 6949 9728 22330318+ b W95 FAT32
/dev/hda7 1531 1543 104359+ 83 Linux
/dev/hda8 1544 4207 21398548+ 8e Linux LVM

i wanted to mount HDA7 and HDA8 to the sata....


thank you..

weibullguy 05-02-2008 11:26 AM

Quote:

Originally Posted by the lord protector (Post 3140085)
i wanted to mount HDA7 and HDA8 to the sata....

What does that mean mount to the sata? Why don't you tell us what you're actually doing (i.e., post the commands) and maybe we can help figure out what's going wrong.

the lord protector 05-03-2008 03:27 AM

hi thanks for the reply

see i have two comp ,1st comp is using the IDE hard drive and the 2nd comp is SATA . suddenly one day my 1st comp(IDE) got some hardware problems and i have taken out that IDE hard drive and used that as storage device .In 2nd comp i'm using debian in SATA hard drive in that same drive i have windows also .
in the IDE i have installed windows and linux(fc6) .. And i want those (IDE)files to mount in this SATA hard drive ..I have mounted windows files to the debian and im wondering is that possible to mount linux files to the debian .
sice the grub wont display the fc6, it will display only the windows and debian for the SATA..

i even tried connecting that IDE to this SATA and installed debian it detects the FC6 and old windows ,but its not booting into that since i have used that in another PC ..


So my problem is i cant access the FC6 files thru debian..

IF im not clear ..kindly excuse me..

mdjenkins 05-03-2008 08:23 AM

So there's an old hard drive plugged in via IDE showing as /dev/hdb and you want some files off /dev/hdb8.
If I understood that correctly what happens when you run these commands:
Code:

sudo mkdir /mnt/old_deb
sudo mount /dev/hdb8 /mnt/old_deb


michaelk 05-03-2008 09:47 AM

hda8 can not be mounted as such since it is an LVM partition. In a nutshell look at the output of the vgdisplay command. The default fedora / partition will be VolGroup00, LogVol00.

mount -t ext3 /dev/VolGroup00/LogVol00 /mount/point (As already suggested use mkdir to create a directory)

hda7 is your /boot partition and only contains the kernel. I would assume that all the information you want will be on the fedora / volune. However, it can be mounted like

mount -t ext3 /dev/hda7 /mount/point.

the lord protector 05-04-2008 11:30 AM

Thanks michaelk now i can access my files buddy .. and more more thing .i want access this files as normal user and not as root ... i just want to clarify that is this correct r not .

i have changed the sudoers file as shown below ... i want to know that whether its correct r not ..My user name is maximas

Quote:

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults env_reset

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL) ALL
%maximas ALL=(ALL) ALL



All times are GMT -5. The time now is 09:49 PM.