LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-06-2005, 04:57 AM   #16
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475

Wine has it's own "fake C:" drive, so you can install within that. If your Windows partition is FAT32 (not NTFS), you can mount it and run programs from there. Quick note, if you reinstall W2K, chances are that you will knock out your mbr and lose Grub/Lilo. A search of LQ though will give many results for restoring it.
 
Old 03-06-2005, 09:52 AM   #17
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks XavierP

My Windows partition almost dead. I tried to install a freeware firewall program; this was a long time ago. It created some unknown problems. Nowadays I have grave difficulties in starting it. This bloody Zone Alarm created havoc.
To solve the problem, I have to edit the Windows registry. That is beyond my knowledge of editing Windows registries.

However, I need a working Windows partition too. There are certain Windows program which I love running. Those programs are not in Linux. For example, AHED [American Heritage English Dictionary] must run under Windows.

For nearly 18 months, my Windows is a dormant program. I can't remember whether it was FAT332 or not. I hope I could find it out.

There are a few important files written in Word for Windows. I must save them before reformatting the partition.

My LILO works beautifully. You think reformatting would kill the LILO. How come? I will be in trouble if LILO creates problems.
What is mbr ?

Last edited by Gins; 03-06-2005 at 10:36 AM.
 
Old 03-06-2005, 10:37 AM   #18
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Xavier, on reflection I got the meaning of the word mbr. It is the Master Boot Record.
 
Old 03-06-2005, 12:57 PM   #19
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Now I have found out my Windows 2000 Professional partition is NTFS.

Will this be a fruitless exercise?

Your thoughts are appreciated.

Last edited by Gins; 03-06-2005 at 02:28 PM.
 
Old 03-06-2005, 04:01 PM   #20
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I urge someone to answer my question.

I have NTFS on the Windows 2000 Pro.

Is it fine to run Wine?

I could just go to console and run it; however I wouldn't run if there is a risk of loosing the files. Your thoughts are welcome.

I wouldn't embark on running until I get some advice from an expert. I consider everybody who answers is experts.
 
Old 03-06-2005, 05:07 PM   #21
Lakefall
LQ Newbie
 
Registered: Feb 2005
Location: Finland
Distribution: Debian sarge
Posts: 26

Rep: Reputation: 15
You do not need Wine to read files on a Windows partition. You need to mount the partition.

Give this command as root:
Code:
mount -t ntfs -o ro /dev/hda1 /mnt
If that doesn't give an error, the content of your Windows partition should have appeared to the /mnt directory. If it didn't, either your Windows isn't at hda1 (find out where it is), you don't have a /mnt directory (create it or use another directory) or your Mandrake does not support NTFS.

As far as I know, it is not dangerous to mount NTFS partitions read-only (as we do above), but I do not have NTFS partitions and I do not use Mandrake.

If your Windows is on FAT partition, use the command:
Code:
mount -t vfat /dev/hda1 /mnt
You can also write to the FAT partition without risks. (Don't delete important stuff though. )

Last edited by Lakefall; 03-06-2005 at 05:10 PM.
 
Old 03-07-2005, 01:22 AM   #22
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Lakefall

It was a great help. I will try this soon. I am going to school and studying networking. I have some tests in the offing. So I have a little time to work with these things; however I hope to do this within next 48 hours and come back to you when necessary. Please keep on looking at this thread. Now I must rush to school.

We have a practical test on NAT and ISDN router configuration today.
 
Old 03-07-2005, 01:02 PM   #23
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
When you are in root, you could write the following command:

[root@h27n2fls301o1037 hey]# /sbin/fdisk -l

The following is the output:
Disk /dev/hda: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 261 2096451 16 Hidden FAT16
/dev/hda2 391 7476 56918295 f W95 Ext'd (LBA)
/dev/hda3 * 262 390 1036192+ b W95 FAT32
/dev/hda5 391 1832 11582833+ 7 HPFS/NTFS
/dev/hda6 1833 3649 14595021 b W95 FAT32
/dev/hda7 3650 4802 9261441 b W95 FAT32
/dev/hda8 4803 6447 13213431 b W95 FAT32
/dev/hda9 6448 7219 6201058+ 83 Linux
/dev/hda10 7220 7291 578308+ 83 Linux
/dev/hda11 7292 7476 1485981 83 Linux

Partition table entries are not in disk order
[root@h27n2fls301o1037 hey]#

It says hda5 is my Windows 2000 Pro.
 
Old 03-07-2005, 01:06 PM   #24
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
It worked beautifully. Please read the following:

[root@h27n2fls301o1037 hey]# mount -t ntfs -o ro /dev/hda5 /mnt
[root@h27n2fls301o1037 hey]# ls

How do I read the files in Windows 2000 Pro?

I in vain wrote the 'ls' command.

How do I read the files in Windows 2000 Pro?

Last edited by Gins; 03-07-2005 at 01:35 PM.
 
Old 03-07-2005, 01:33 PM   #25
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
It seems that it created a folder called '' mnt '' .

I wrote the following and pressed enter. It worked.

[root@h27n2fls301o1037 hey]# cd /mnt

[root@h27n2fls301o1037 mnt]# ls

Word documents/

Dev_C++/
Documents and°╦ř*
Documents and Set°╦ř*
Documents and Settings/
Documents°╦ř*
Download2003/





I want to go into some these folders and copy some files.

So I wrote the following to go into the folder ' Word documents' .

[root@h27n2fls301o1037 mnt]# cd /Word documents
bash: cd: /word: No such file or directory


[root@h27n2fls301o1037 mnt]# cd ' Word documents'
bash: cd: word documents: No such file or directory



[root@h27n2fls301o1037 mnt]# cd /' Word documents'
bash: cd: / Word documents: No such file or directory
[root@h27n2fls301o1037 mnt]#


[root@h27n2fls301o1037 mnt]# cd Word documents/
bash: cd: Word: No such file or directory
[root@h27n2fls301o1037 mnt]#


What is the problem?
 
Old 03-07-2005, 02:16 PM   #26
Lakefall
LQ Newbie
 
Registered: Feb 2005
Location: Finland
Distribution: Debian sarge
Posts: 26

Rep: Reputation: 15
You really need some good beginner's guide. Maybe someone can suggest one?

What do you normally use to navigate the file system? If you use a graphical file manager you can use it here too. If you want to do that as a normal user, I think you have to remount the partition with:
Code:
mount -t ntfs -o ro,umask=222 /dev/hda5 /mnt
Before you can do that you have to move out of /mnt and it's subdirectories and unmount it with:
Code:
umount /mnt
Anyhow, the command you are trying to type (while you are at the directory /mnt) is any of the following:
Code:
cd 'Word documents'
cd '/mnt/Word documents'
cd "Word documents"
cd "/mnt/Word documents"
cd Word\ documents
cd /mnt/Word\ documents
Also try typing "cd Wor" and pressing the tab key.
 
Old 03-07-2005, 02:31 PM   #27
Lakefall
LQ Newbie
 
Registered: Feb 2005
Location: Finland
Distribution: Debian sarge
Posts: 26

Rep: Reputation: 15
Tutorial to the Linux command line

When I last looked at it, this seemed to be relatively good tutorial to the Linux command line:
http://linuxcommand.org
 
Old 03-07-2005, 02:51 PM   #28
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks Lakefall

I got it working. Please read the following:

[root@h27n2fls301o1037 mnt]# cd 'Word documents'
[root@h27n2fls301o1037 Word documents]# ls

C++ arrays.doc*
C++.doc*
C++_examples_which_I_can_test_and_they_are_excellent.doc*
C++ exercises and answers.doc*
C++FAQ.doc*
C++ iterators.doc*
C++ Manipulators.doc*
Computer_ technology.doc*
C++ Ovrloading.doc*
CSN1.doc*
C++ Static Members.doc*
C++ Vectors.doc*

Greek Gods.doc*
History(1).doc*
How to creat BAT.doc*
How to Create a Zip File in Linux.doc*
How to Format a Floppy Disk in Linux.doc*
How to open text files in C++ for reading and writing..doc*
Important_songs.doc*
Important_terminology_in_Windows_2000.doc*
In C++, a simple declaration of Class.doc*
Internet terminology.doc*
IP tutorial.doc*
ISA Server.doc*

Valentine Day.doc*
What is overloading in C++.doc*
What_is_passover.doc*
What_is_peer_to_peer.doc*
Windows_2000_study_document.doc*
--------------------------------------------------------------------

All the above documents were written using Word for Windows. I must copy them to Linux partition. I could read some of them using the ' cat ' command in the console. That is not a pleasant document; I mean it shows some html tags and some other funny things.

I have installed the 'Open Office' program for my Linux and it works fine. I open the 'Open office' and tried to open those documents. It seems I can't go to the root from the 'Open office' program.



The following shows the result I got when trying to read trhe document called 'What_is_passover.doc' letter. It contains a lot of unwanted things. I just want a clean copy of the document.

What I want is to copy all those important documents/letters to the Linux side. Yout advise is deeply appreciated. Please tell me how to proceed now.


root@h27n2fls301o1037 Word documents]# cat 'What_is_passover.doc'
�ࡱ▒�> RTQ�M bjbj�� .>WW▒l��������



($�X�$= ]��
,������,>
����A>
>
>
������>
�>
v>

:,���L
ŬX��
�^.
|W08Ri(
i>
INCLUDEPICTURE "http://www.holidays.net/passover/images/spacer2.gif" \* MERGEFORMATINET About 3000 years ago the Israelites were enslaved by the Egyptians under the rule of the Pharaoh Ramses II. According to the Book of Exodus - Moses, a simple Jewish shepherd, was instructed by HYPERLINK "http://www.holidays.net/passover/g-d.htm" G-d to go to the pharaoh and demand the freedom of his pe INCLUDEPICTURE "http://www.holidays.net/passover/images/spacer2.gif" \* MERGEFORMATINET Moses' plea of let my people go was ignored. Moses warned the Pharaoh that G-d would send severe punishments to the people of Egypt if the Israelites were not freed. Again the Pharaoh ignored Moses' request of freedom. In respon


INCLUDEPICTURE "http://www.holidays.net/passover/images/spacer2.gif" \* MERGEFORMATINET Then as the Israelites watched the waters of the Red Sea sweep away the INCLUDEPICTURE "http://www.holidays.net/passover/images/spacer2.gif" \* MERGEFORMATINET Passover celebrates this history. The first 2 nights of the 8 day holiday are celebrated with lavish meals called Seders in which the stories and history of Passover are celebrated. Special foods, plates, silverware are all a part INCLUDEPICTURE "http://www.holidays.net/passover/images/spacer2.gif" \* MERGEFORMATINET INCLUDEPICTURE "http://www.holidays.net/passover/images/spacer2.gif" \* MERGEFORMATINET Taking place the first 2 nights of the 8 day holiday, the Seder is the most important event in the Passover celebration. Usually gathering the whole family and friends together, the Seder is steeped in long held traditions INCLUDEPICTURE "http://www.holidays.net/passover/images/spacer2.gif" \* MERGEFORMATINET Leading up to the first night of Passover, the home is cleaned and cleared of all yeast foods, called hametz. All hametz is either eaten before Passove INCLUDEPICTURE "http://www.holidays.net/passover/images/spacer2.gif" \* MERGEFORMATINET The rules surrounding Passover are strict and many, with only special f INCLUDEPICTURE "http://www.holidays.net/passover/images/spacer2.gif" \* MERGEFORMATINET Kitchen utensils and dishware normally used in the home are not be used during Passover. Special dishes and utensils for the Passover holiday are taken INCLUDEPICTURE "http://www.holidays.net/passover/images/spacer2.gif" \* MERGEFORMATINET Only foods that are "Kosher
 
Old 03-07-2005, 03:28 PM   #29
Lakefall
LQ Newbie
 
Registered: Feb 2005
Location: Finland
Distribution: Debian sarge
Posts: 26

Rep: Reputation: 15
Quote:
Originally posted by Gins
I have installed the 'Open Office' program for my Linux and it works fine. I open the 'Open office' and tried to open those documents. It seems I can't go to the root from the 'Open office' program.
You should use Open Office or Abiword to open the documents.

Quote:
What I want is to copy all those important documents/letters to the Linux side. Yout advise is deeply appreciated. Please tell me how to proceed now.
Well,
Code:
mkdir ~/doc
cp -ip * ~/doc
creates a directory doc in your (root's, if you are doing this as root) home directory and copies the files from your current directory to there. If you did the copying as root and want to use those files as a normal user, you'll next have trouble with the files' ownership and permissions (and location, if you copied them to root's home directory). You really should read the link I gave you and also familiarise yourself with the man command. Try:
Code:
man intro
man man
man mkdir
man rmdir
man cp
man mv
man chown
man chmod
man mount
man umount

Last edited by Lakefall; 03-07-2005 at 04:03 PM.
 
Old 03-07-2005, 04:24 PM   #30
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Lakefall

It was a great posting by you. I will do it later. Now it is very late. I must sleep as I have to go to school early in the morning.

I take my hat off to you for the great support. I will come back to the thread again after about 20 hours from now.

I urge you to keep a good watch on this thread.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wine: program not running exigent Linux - Software 8 06-04-2006 03:29 AM
wine - program performance kosa Linux - Newbie 2 07-16-2004 07:15 AM
wine...installing a program hornet74 Linux - Software 3 12-02-2003 03:29 PM
cannot get program to work using WINE dev1gig Linux - Software 0 08-09-2003 11:43 PM
How do I start WINE And How Do I Install a Win32 program on it? Ely Linux - Software 7 04-11-2002 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:07 PM.

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