Hard disk
Hi all
I am having 10 GB IDE Hard disk in which Linux 7.3 is installed. Which i am using as squid and ipchains. Now i have addeed 20 GB IDE harddisk in which windos98 is installed and some crucial data is there which i wants to access through linux. How should i proceed ahead. Kindly Guide me. Waiting for prompt and intelligent reply Regards. Bally T |
what is the output of "fdisk -l /dev/hda"?
"fdisk -l /dev/hdb"? "fdisk -l /dev/hdc"? "fdisk -l /dev/hdd"? |
or you can type
"df -h" and paste the result here so that we know how the drive is named/seen in linux. after that's done, you can make a directory in /mnt by typing mkdir /mnt/win and then mount the data from the win98 in linux under /mnt/win by typing mount /dev/hd* /mnt/win where * is the alphabet/letter which is given to the win98 hd. If you want to auto-mount the drive at boot, ask here and someone or myself will post a solution. good luck :) |
hi kevin
I am sorry the other hard disk is of windows NT. Following was the output as u asked me to do:-----------> [root@bally root]# fdisk -l /dev/hda Disk /dev/hda: 255 heads, 63 sectors, 524 cylinders Units = cylinders of 16065 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 492 3951958+ 83 Linux /dev/hda2 493 508 128520 82 Linux swap /dev/hda3 509 524 128520 82 Linux swap [root@bally root]# fdisk -l /dev/hdc Disk /dev/hdc: 255 heads, 63 sectors, 2434 cylinders Units = cylinders of 16065 * 512 bytes Device Boot Start End Blocks Id System /dev/hdc1 * 1 510 4096543+ 7 HPFS/NTFS /dev/hdc2 511 2434 15454530 7 HPFS/NTFS |
lol, didn't even read my response!
anyways, what distro are version are you using? most probably you'll have to recompile the kernel to add ntfs support. However, if you are using RedHat, there's an easier alternative. |
Hi Pagal
Thanx for ur reply. i am sorry to say that it is NT disk . AS u asked the results of df -h, here is it:-----> [root@bally root]# df -h Filesystem Size Used Avail Use% Mounted on /dev/hda1 3.7G 3.1G 431M 89% / none 61M 0 61M 0% /dev/shm Kindly tell me in a lucid manner what changes r to be applied . Thanks bally |
Linux can read but unable to write to NTFS partitions. Support for NTFS is not included in the default RH kernel.
Options are to add support for NTFS and recompile. |
hey bally,
could you post your distro name and version? it is sort of required, so that I can tell you what to do next. |
Hi Pagal
It is red hat linux 7.2. Rgds. |
Quote:
Just wondering, because that's how things go for me and I want to know if I am missing something :confused: Thanks |
Ok so from your fdisk -l output, I am going to assume a few things:
Winbloze98 with NTFS filesystem, isn't that odd? Oh well, no biggie I guess, just like was mentioned above though, read-only access. So as long as you are just "Reading" the info, there shouldn't be problems here. Now, I am thinking /dev/hdc is going to be this new hard-drive you added. So, we need to mount it somewhere, let's make a directory in /mnt called /data, so as root, open up a terminal and type: mkdir /mnt/data Now we will mount one of the partitions there: mount -t ntfs /dev/hdc1 /mnt/data If it returns with a "filesystem not supported" (which I think it is in RH 7.2) then you will need to do as suggested above and recompile your kernel to add ntfs support. We will assume you are ok, and it didn't return any errors, just put you back to a Bash prompt. Now we need to see if anything is on that partition, so: cd /mnt/data ls -lha Now you should have a list of all the files on that drive, listed in Human Readable format, and hidden files should be shown as well. If there isn't anything on this partition you need, go ahead and: cd /mnt umount /mnt/data And now we will mount the second partition from /dev/hdc: mount -t ntfs /dev/hdc2 /mnt/data And then: cd /mnt/data ls -lha And now see if the data you were looking for is shown, hopefully so. Cool |
MasterC: you're right. I must be stoned when I typed it, lol.
and bally, there's a simpler way to add ntfs support to your redhat kernel; just follow the instructions on this site (it works flawlessly). http://www.getlinuxonline.com/module...TFS&file=index good luck. |
hi pagal
It is done. Thanks for ur kind support. Regards Bally.T |
All times are GMT -5. The time now is 10:57 PM. |