LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-15-2003, 02:32 AM   #1
hansjorn
LQ Newbie
 
Registered: Jul 2003
Location: Værløse north of Copenhagen
Distribution: Suse 8.1
Posts: 4

Rep: Reputation: 0
replacing af windows formated disk in a Linux-system


My PC had two disks - hda with a dual-boot consisting of 1) windows Xpro 2) Linux swap and 3) Linux Suse v8.1 (root) - hdb with 2 NTFS-partitions.

It all worked fine, but then I needed more space on the second hard disk and got a new one, which I formated using Xpro into 3 NTFS-partitions.

Before - Suse let med access the second hard disk's 2 partitions as windows D and windowsE

After the change I cannot access the second harddisk when running Linux - so my question is: How do I make Linux accept the new windows-based harddisk (which only contains data)?

/etc/fstab did contain to entries from the old system, which I had to comment out, otherwise I got some errors when booting.

But how do I make Linux detect the new harddisk - can anyone tell me of a method to put 3 entries into the fstab-file, is there a program (autodetect) or a third method?

By the way: Linux does accept the new disk as a hardware component, but it cannot automatically see the the NTFS-partitions.

Thanks for your patience and understanding ;-)

Sincerely,
 
Old 07-15-2003, 04:24 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
fdisk -l
will list all your partition information.
if you are certain the old partitions were ntfs, and
so are the new ones, you can edit the 2 old fstab lines
to correspond to 2 of the new partitions, and add a third
one identical to the others, except forf the partition number.
for example, your old disk partitions may have been,
/dev/hdb5 and dev/hdb6, and you may have the new one
set as /dev/hdb1 /dev/hdb2 /dev/hdb3,
or some combination of the above. if fstab cannot
find the partitions listed, it will complain. it should.
but if your partitions get changed, they will not get
loaded.
 
Old 07-15-2003, 06:26 AM   #3
hansjorn
LQ Newbie
 
Registered: Jul 2003
Location: Værløse north of Copenhagen
Distribution: Suse 8.1
Posts: 4

Original Poster
Rep: Reputation: 0
Smile

thanks to whansard for the firm and swift reply.

I did what you proposed, edited the fstab file.

My old partitions were NOT ntfs, they were in fact fat32, but I copied the information from the one ntfs partition I had on hda, and then I could use one partition on hdb - but only one and funny enough - not the first one, but the second !?

So I got at least one partition working (and even the one I needed the most), so I'll look more into the details of the ntfs definition, which at present looks like this:

/dev/hdb1 /windows/D ntfs ro,users,gid=users,umask=0002,nls=iso8859-1 0 0

My conclusion right now is that I can reach one ntfs-partition on each disk - so maybe I should look closer from a windows viewpoint on how they actually are setup.

Thanks again - it helped me alot

Sincerely,

Hans

Last edited by hansjorn; 07-15-2003 at 06:28 AM.
 
Old 07-15-2003, 09:47 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
you may not have the mount point existing that you have
set up?
/dev/hdb1 /windows/D ntfs ro,users,gid=users,umask=0002,nls=iso8859-1 0 0

the directory /windows/D has to exist
if you made another entry with /windows/E and the
directory /windows/E does not exist, it will not mount.

you've got the ro flag, read-only, which is necessary for
ntfs too. make sure your other lines are the same there.
 
Old 07-16-2003, 04:31 AM   #5
hansjorn
LQ Newbie
 
Registered: Jul 2003
Location: Værløse north of Copenhagen
Distribution: Suse 8.1
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by whansard
you may not have the mount point existing that you have
set up?
/dev/hdb1 /windows/D ntfs ro,users,gid=users,umask=0002,nls=iso8859-1 0 0

the directory /windows/D has to exist
if you made another entry with /windows/E and the
directory /windows/E does not exist, it will not mount.

you've got the ro flag, read-only, which is necessary for
ntfs too. make sure your other lines are the same there.
True enough, I didn't have the /windows/E mount-point, so I made it, and then I discovered another peculiarity.

My second IDE-disk only seems to have 1 (one) partition - which can be seen from the log:

<6>Partition check:
<6> hda: hda1 hda2 hda3 hda4 < hda5 >
<6> hdb: hdb1

Then I checked my Windows partitions and discovered, that the second disk - as a data disk - had 2 partitions, which were not basic ntfs, but dynamic.

Maybe that could be the problem, that I don't even recall what I have done, when partitioning my new disk. Obviously Windows has more ways of structuring a disk than they used to - so I'll look into that eventually.

My last question in this context relates to disk #1, which seems to have 5 partitions according to the log above: hda5 being the ntfs-partition, which I succeeded in mounting as windows/D

As far as I know, Suse v8.1 only produces 2 partitions, swap and /(root), but somehow it now seems as if it actually makes a third partition (/boot ??)

I am saying this, because I use Suse in this way because it gives me the possibility of making two windows partions on one disk - which is nice, since I can then separate system/progs from my own personal data, when running af dual-boot mode.

Of course the second disk contains more personal data, and I am comtemplating to reorganize it into simple fat32-partions - except I miss the security, when my children uses the system ;-)
 
Old 07-16-2003, 11:21 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
hda4 is an extended partition which contains the logical
drive hda5. you don't actually mount hda4.
look at it again with fdisk -l and you will see that they
occupy the same space. you could put your entire linux
install in an extended partition and have that one split up.
you could have hda1, hda2, hda3 all windows stuff, and
hda4 split into hda5, and hda6 or whatever you want.
 
  


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
Windows' dirty paws want fo finger my system disk JZL240I-U General 3 02-08-2005 06:35 AM
formated, but can't install linux again AgentDukey Slackware 6 11-02-2004 12:28 PM
How long will it be before corporations begin widely replacing Windows with Linux? apache363 Linux - General 3 06-13-2004 07:45 PM
trying to get files off of drive a: cant seem to read dir of a windows formated flopp laurenaj Linux - Newbie 0 05-12-2004 04:44 PM
Trying to make a Linux partition on a windows formated hardrive darin3200 Linux - General 8 02-14-2003 09:21 PM

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

All times are GMT -5. The time now is 09:05 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