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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-14-2002, 10:37 PM
|
#1
|
Member
Registered: Jun 2001
Posts: 75
Rep:
|
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
|
|
|
11-15-2002, 12:33 AM
|
#2
|
Member
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857
Rep:
|
what is the output of "fdisk -l /dev/hda"?
"fdisk -l /dev/hdb"?
"fdisk -l /dev/hdc"?
"fdisk -l /dev/hdd"?
|
|
|
11-15-2002, 01:00 AM
|
#3
|
Member
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92
Rep:
|
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 
|
|
|
11-15-2002, 05:25 AM
|
#4
|
Member
Registered: Jun 2001
Posts: 75
Original Poster
Rep:
|
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
|
|
|
11-15-2002, 06:01 AM
|
#5
|
Member
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92
Rep:
|
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.
|
|
|
11-15-2002, 06:39 AM
|
#6
|
Member
Registered: Jun 2001
Posts: 75
Original Poster
Rep:
|
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
|
|
|
11-15-2002, 09:26 AM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,551
|
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.
|
|
|
11-15-2002, 02:56 PM
|
#8
|
Member
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92
Rep:
|
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.
|
|
|
11-15-2002, 11:45 PM
|
#9
|
Member
Registered: Jun 2001
Posts: 75
Original Poster
Rep:
|
Hi Pagal
It is red hat linux 7.2.
Rgds.
|
|
|
11-16-2002, 01:18 AM
|
#10
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Quote:
Originally posted by pagal
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
|
Wouldn't this only show the mounted disk info? If he/she hasn't either manually mounted this disk to a mount point, or created an entry in fstab and had it mount during bootup, then would df -h do any good?
Just wondering, because that's how things go for me and I want to know if I am missing something
Thanks
|
|
|
11-16-2002, 01:26 AM
|
#11
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
11-16-2002, 02:50 AM
|
#12
|
Member
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92
Rep:
|
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.
|
|
|
11-16-2002, 12:18 PM
|
#13
|
Member
Registered: Jun 2001
Posts: 75
Original Poster
Rep:
|
hi pagal
It is done. Thanks for ur kind support.
Regards
Bally.T
|
|
|
All times are GMT -5. The time now is 07:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|