LinuxQuestions.org
Review your favorite Linux distribution.
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 11-14-2002, 09:37 PM   #1
bally
Member
 
Registered: Jun 2001
Posts: 75

Rep: Reputation: 15
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
 
Old 11-14-2002, 11:33 PM   #2
KevinJ
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: Reputation: 30
what is the output of "fdisk -l /dev/hda"?

"fdisk -l /dev/hdb"?

"fdisk -l /dev/hdc"?

"fdisk -l /dev/hdd"?
 
Old 11-15-2002, 12:00 AM   #3
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Rep: Reputation: 15
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
 
Old 11-15-2002, 04:25 AM   #4
bally
Member
 
Registered: Jun 2001
Posts: 75

Original Poster
Rep: Reputation: 15
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
 
Old 11-15-2002, 05:01 AM   #5
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Rep: Reputation: 15
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.
 
Old 11-15-2002, 05:39 AM   #6
bally
Member
 
Registered: Jun 2001
Posts: 75

Original Poster
Rep: Reputation: 15
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
 
Old 11-15-2002, 08:26 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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.
 
Old 11-15-2002, 01:56 PM   #8
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Rep: Reputation: 15
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.
 
Old 11-15-2002, 10:45 PM   #9
bally
Member
 
Registered: Jun 2001
Posts: 75

Original Poster
Rep: Reputation: 15
Hi Pagal

It is red hat linux 7.2.

Rgds.
 
Old 11-16-2002, 12:18 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 11-16-2002, 12:26 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 11-16-2002, 01:50 AM   #12
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Rep: Reputation: 15
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.
 
Old 11-16-2002, 11:18 AM   #13
bally
Member
 
Registered: Jun 2001
Posts: 75

Original Poster
Rep: Reputation: 15
hi pagal

It is done. Thanks for ur kind support.

Regards

Bally.T
 
  


Reply



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
Cloning 1 hard disk to smaller hard disk, dd or ghost? fireman949 Linux - Hardware 8 12-23-2012 12:51 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
Reclaim disk partition from hard disk installation EStester Linux - Enterprise 2 03-09-2005 11:46 AM
Reclaim disk partition from hard disk installation EStester Linux - General 1 03-09-2005 11:25 AM
Hard Disk question - Making a big hard disk MrAnonym Linux - General 2 09-15-2003 06:08 PM

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

All times are GMT -5. The time now is 01:20 AM.

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