PDA

View Full Version : how to locate new HD



induz
31st March 2006, 06:59 PM
i had a 6 GB hd on which i clean installed FC5 and running it now. I just added a slave 20 GB which has XP installed and some files plus programs for MS.
How can access to the files and folders of slave HD #2.
I dont see that HD as i used to see on XP.
Indi

knorr.orange
31st March 2006, 07:07 PM
Your new drive is probably called something like /dev/hd?? you will just need to find out what that is (prob /dev/hdb1 or something) and mount it to a directory. This post should help:
http://www.linuxforum.com/linux_tutorials/1/1.php

Lluisanunez
31st March 2006, 07:08 PM
You need to install NTFS kernel module. Follow this:
http://easylinux.info/wiki/Fedora#How_to_install_support_for_NTFS
Or this:
http://stanton-finley.net/fedora_core_5_installation_notes.html#NTFS

induz
31st March 2006, 08:47 PM
now i see this :

[root@mshome ~]# fdisk -l

Disk /dev/hda: 4320 MB, 4320862208 bytes
255 heads, 63 sectors/track, 525 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 525 4112640 8e Linux LVM

Disk /dev/hdb: 2559 MB, 2559836160 bytes
128 heads, 63 sectors/track, 620 cylinders
Units = cylinders of 8064 * 512 = 4128768 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 25 100768+ 83 Linux
/dev/hdb2 26 558 2149056 83 Linux
/dev/hdb3 559 620 249984 82 Linux swap / Solaris
[root@mshome ~]#

LaKing
31st March 2006, 09:20 PM
I dont see the 20 Gig HDD here.

If your XP is a single partition, then u can mount it only read-only. If u have your Data on a second partition, u will be able to reformat it to Fat32, then you can Read-Write that partition.
In XP u can Manage your computer -> Storage .. and see how your partitions are and wich can eventually formatted to fat32.

induz
1st April 2006, 12:15 AM
the second Hd is not 20 GB, it is actually 2 GB [ i guess, but it has XP loaded on it and some programmes.
How can i run thos programmes installed on HD#2.
I can not go to XP caz i added that HD #2 after installing FC on HD#1. Do i have to open the comp again and take FC 5 HD out and and then check on XP?

ptsz
4th April 2006, 01:57 PM
You can not run programs from the 2. HD, becouse that is win style.
1. check your HD at BIOS, using autodetect HD option
2. If it is pluged in, you can decide: is that NTFS, or FAT 32
3 If NTFS go, and install NTFS driver, in that case you can only "READ" from that drive.
let us see later...

induz
10th April 2006, 09:16 PM
the result of fdisk -l command is :
# fdisk -l

Disk /dev/hda: 6505 MB, 6505712640 bytes
255 heads, 63 sectors/track, 790 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 790 6241252+ 8e Linux LVM

Disk /dev/hdb: 40.9 GB, 40982151168 bytes
255 heads, 63 sectors/track, 4982 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 4863 39062016 c W95 FAT32 (LBA)

How to read files on XP HD.

induz
10th April 2006, 09:30 PM
my /etc/grup.conf is ;

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.16-1.2080_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.16-1.2080_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.16-1.2080_FC5.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img


Please suggest what to do to read files from XP Hd?

Firewing1
10th April 2006, 09:44 PM
To read the files from Linux, do:

su -
mkdir /mnt/Windows
gedit /etc/fstab

Add to the bottom:

/dev/hda1 /mnt/Windows vfat owner,user,rw,exec,umask=000 0 0
And reboot.
Firewing1

induz
11th April 2006, 12:37 AM
at boot it says:
mount point /media/Windows does not exist [failed]
what should i do now???

Firewing1
11th April 2006, 12:40 AM
Oops, my fault... Change "/media/Windows" to "/mnt/Windows"
(See my other post, I edited it if you need the exact line)
Firewing1

ptsz
11th April 2006, 07:26 AM
Induz!
At the end, what system do you want to get:
a, multiboot (1. Linux, 2.XP), or
b, singleboot (Linux, and read/write xp hdd)

ptsz
11th April 2006, 07:32 AM
I have a good multiboot system (Linux, Xp)
my boot loader(Grub) config file is :

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,5)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=2
timeout=5
splashimage=(hd0,5)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core 5 (2.6.15-1.2054_FC5smp)
root (hd0,5)
kernel /vmlinuz-2.6.15-1.2054_FC5smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5smp.img
title Fedora Core 5 (2.6.16-1.2080_FC5smp)
root (hd0,5)
kernel /vmlinuz-2.6.16-1.2080_FC5smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.16-1.2080_FC5smp.img
title WindowsXP
rootnoverify (hd0,0)
chainloader +1

_______________
And it WORKS fine
In your case the only diff, that yoz have 2 HDD connected to the mainboard

induz
11th April 2006, 02:09 PM
i want multi boot- FC and Xp so i can select what OS i want to work on.
sometime while on FC i want to acces my files from XP.
i dont know yet how to do it? plz suggest.
Do i have edit my etc/grub.conf ? at this time it is as follows;
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.16-1.2080_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.16-1.2080_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.16-1.2080_FC5.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img

induz
11th April 2006, 02:12 PM
my etc/ fstab at root is :
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/hdb3 swap swap defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hda1 /mnt/Windows vfat owner,user,rw,exec,umask=000 0 0

But i still can not see my file on XP HD.

d3viant
11th April 2006, 11:41 PM
Try changing the line in /etc/fstab to


/dev/hdb1 /mnt/Windows vfat uid=<yourusername>,rw,exec,umask=0002 0 0


where <yourusername> is the name you type in to logon (case sensitive). - Not sure about which drive is you're XP drive - is it set as a slave or master within your system? - That'll change whether Linux calls it hda or hdb

As long as you aren't getting any error messages upon startup about this, the hard drive is definitely being mounted correctly, so you should be able to just look in /mnt/Windows and see the drive as you would by going to c:\ in windows.

Note: You won't be able to run your windows programs inside linux - it can't run exe files (although you can try to get them running with wine Wine Info Here (http://www.winehq.com) )

For getting a boot list so that it actually displays the options instead of saying "booting fedora core 5"(which i think is what you're after)

Edit /boot/grub/grub.conf and put a # in front of hiddenmenu. You can also increase the timeout if it goes too fast for you.

ptsz
12th April 2006, 07:27 AM
OK
in your 'etc/grub.conf' file I do not see your second HDD,
therefore your booting process can not chose XP.
In LINUX 2. HDD drive is probably called something like '/dev/hdb'.
But during booting phase hd1might show your second hdd, I think.
Therefore in 'etc/grub.conf' file you shoud insert something like:

'title WindowsXP
rootnoverify (hd1,0)
chainloader +1'

Good luck

ptsz
12th April 2006, 07:32 AM
OH, sorry my last reply, d3viant is right, and i can agree with him/her.

induz
13th April 2006, 05:39 PM
Now my /etc/fstab is:

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/hdb3 swap swap defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdb1 /mnt/Windows vfat uid=<Myname>,rw,exec,umask=0002 0 0

And my grub.conf is:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.16-1.2080_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.16-1.2080_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.16-1.2080_FC5.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img
'title WindowsXP
rootnoverify (hd1,0)
chainloader +1'
Now suggest me how can locate my Xp Hd which is slave to the FC hd.

Firewing1
13th April 2006, 09:55 PM
Try this:


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.16-1.2080_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.16-1.2080_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.16-1.2080_FC5.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img

title WindowsXP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Firewing1