LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-20-2004, 12:28 PM   #1
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Rep: Reputation: 47
How to look at the Windows 2000 folders and files?


I am running Windows 2000 and Mandrake Linux 10.0 on my computer. LILO helps to select the operating system and default is Mandrake Linux.

I want to go to my Windows 2000 partitions and look at a folder and remove it. Because of some conflicts, I have problems in Windows 2000 partition. My Windows partition is D:\ .Windows partition is a FAT 32 one.
I am going to follow the following procedure. Please tell me if there are any flaws.

1)First I mus t log in as a root.

Then I must create a folder.

2) mkdir /mnt/D
chmod 755 /mnt/D

The next step would be to mount. So I would write the following:

3) mount -t vfat /dev/hda1 /mnt/D
Afterwards If I wrote the following ls command, I would see all the files and folders. I want to remove a folder called ZoneAlarm.

4) ls /mnt/D

5) I would use the rmdir and rm command to remove the folders and the files
-----------------------------------------------------
Finally, after the job is done, I must unmount the D drive. What is the command? What is the command setup for unmounting?
 
Old 11-20-2004, 01:02 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
To unmount, you give the command umount (notice: there is no N betwixt the U and M) and either the partition or it's mount-point. Both of the following would work...

umount /mnt/D
umount /dev/hda1
 
Old 11-21-2004, 04:13 AM   #3
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 tried in vain to mount the D partition of my Windows 2000. I want another help. In Linux, they marked all the folders hda1, hda2, hda3 etc.

I have installed Windows 98 in C:/ and Windows 2000 in D:/.
When computer switches on, it asks whether I want Windows or Linux. I mean LILO comes to the screen with this message. If I select Windows, it asks again whether I want Windows 98 or Windows 2000. The defalult is Linux. That means if I don't do anything, Linux starts. This works fine.

Now my windows 2000 is not working. It doesn't come to the screen. So I must remove the Zone Alarm folder which lies in Windows 2000

In order to do that, I must go to the Linux partition and mount the D:/ and remove the Zone Alarm folder.
I don't know how to find the correct hda number linked to the Windows 2000.
How do I find correct hda number. It may be hda6, hda7 or hda8.

Could you pleas help me?
 
Old 11-21-2004, 04:16 AM   #4
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
As root run
Code:
# fdisk /dev/hda
What does the program tell you when you enter the command: p
 
Old 11-21-2004, 10:36 AM   #5
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 know for sure it is hda1, hda2, hda3, hda4, hda5, hda6, hda7, hda8 or hda9. I tried all the alternatives. It didn't give me the reults I wanted. What is the problem? All the partitions has two folders caled drakx and tmp.
This is not correct.

One partition has Windows 98. One partition has Windows 2000. One partition has Linux. There are two empty parttitons called E and F. They are fat 32 based.

The following is the output.

[root@h186n2fls301o1037 root]# ls
drakx/ tmp/
[root@h186n2fls301o1037 root]# # fdisk /dev/hda2
[root@h186n2fls301o1037 root]# ls
drakx/ tmp/
[root@h186n2fls301o1037 root]# # fdisk /dev/hda3
[root@h186n2fls301o1037 root]# ls
drakx/ tmp/
[root@h186n2fls301o1037 root]# # fdisk /dev/hda4
[root@h186n2fls301o1037 root]# ls
drakx/ tmp/
[root@h186n2fls301o1037 root]# ls
drakx/ tmp/
[root@h186n2fls301o1037 root]# # fdisk /dev/hda5
[root@h186n2fls301o1037 root]# ls
drakx/ tmp/
[root@h186n2fls301o1037 root]# # fdisk /dev/hda6
[root@h186n2fls301o1037 root]# ls
drakx/ tmp/
[root@h186n2fls301o1037 root]# ls
drakx/ tmp/
[root@h186n2fls301o1037 root]# # fdisk /dev/hda7
[root@h186n2fls301o1037 root]# # fdisk /dev/hda8
[root@h186n2fls301o1037 root]# ls
drakx/ tmp/
[root@h186n2fls301o1037 root]# # fdisk /dev/hda9
[root@h186n2fls301o1037 root]# ls
drakx/ tmp/
[root@h186n2fls301o1037 root]# # fdisk /dev/hda
[root@h186n2fls301o1037 root]# ls
drakx/ tmp/
[root@h186n2fls301o1037 root]#
-----------------------------------------------------------------------------


Then I went into the drakx folder . The following is the output.

[root@h186n2fls301o1037 root]# cd drakx
[root@h186n2fls301o1037 drakx]# ls
auto_inst.cfg.pl install.log replay_install.img stage1.log
ddebug.log README report.bug.gz
 
Old 11-21-2004, 10:39 AM   #6
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 tried the following command too. The output is totally unfathomable.

[root@h186n2fls301o1037 root]# fdisk /dev/hda

The number of cylinders for this disk is set to 7476.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):
 
Old 11-21-2004, 01:26 PM   #7
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
You have asked to run the p command. I ran it in both user and root. The following is the output:

[heden@h186n2fls301o1037 heden]$ p
bash: cd: OLDPWD not set


[root@h186n2fls301o1037 root]# p
-bash: cd: OLDPWD not set
[root@h186n2fls301o1037 root]#


I don't know the meaning of the above output.
 
Old 11-21-2004, 03:42 PM   #8
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
The following command worked fine.

$ls -l /dev/hd*

The output is here.

[root@h186n2fls301o1037 root]# ls -l /dev/hd*
lr-xr-xr-x 1 root root 32 Nov 21 17:12 /dev/hda -> ide/host0/bus0/target0/lun0/
disc
lr-xr-xr-x 1 root root 33 Nov 21 17:12 /dev/hda1 -> ide/host0/bus0/target0/lun0
/part1
lr-xr-xr-x 1 root root 34 Nov 21 17:12 /dev/hda10 -> ide/host0/bus0/target0/lun 0/part10
lr-xr-xr-x 1 root root 34 Nov 21 17:12 /dev/hda11 -> ide/host0/bus0/target0/lun 0/part11
lr-xr-xr-x 1 root root 33 Nov 21 17:12 /dev/hda2 -> ide/host0/bus0/target0/lun0 /part2
lr-xr-xr-x 1 root root 33 Nov 21 17:12 /dev/hda3 -> ide/host0/bus0/target0/lun0 /part3
lr-xr-xr-x 1 root root 33 Nov 21 17:12 /dev/hda5 -> ide/host0/bus0/target0/lun0 /part5
lr-xr-xr-x 1 root root 33 Nov 21 17:12 /dev/hda6 -> ide/host0/bus0/target0/lun0 /part6
lr-xr-xr-x 1 root root 33 Nov 21 17:12 /dev/hda7 -> ide/host0/bus0/target0/lun0 /part7
lr-xr-xr-x 1 root root 33 Nov 21 17:12 /dev/hda8 -> ide/host0/bus0/target0/lun0 /part8
lr-xr-xr-x 1 root root 33 Nov 21 17:12 /dev/hda9 -> ide/host0/bus0/target0/lun0 /part9
lr-xr-xr-x 1 root root 30 Nov 21 16:13 /dev/hdc -> ide/host0/bus1/target0/lun0/ cd
lr-xr-xr-x 1 root root 30 Nov 21 16:13 /dev/hdd -> ide/host0/bus1/target1/lun0/ cd
[root@h186n2fls301o1037 root]#


The above doesn't tell me which is my Windows 2000 partition. I have two CD drives installed on my computer. Both are working.

Last edited by Gins; 11-21-2004 at 03:45 PM.
 
Old 11-22-2004, 03:19 AM   #9
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 earnestly urge some of our experts to read the details of my question and help me. I want to mount the Windows 2000 partition and look at a folder. By means of LILO, when I start the computer, I can go to either Windows 2000 or Mandrake Linux.

I want to mount the Windows 2000 partiton. I tried hours and hours without any success. Please help me.
 
Old 11-22-2004, 03:46 AM   #10
jillande
Member
 
Registered: Oct 2003
Location: fargoh eh.
Distribution: slackware
Posts: 94

Rep: Reputation: 15
you are on the right track. but it is impossible for us to know which partition is the one you need since there is no standard. what you should do, as you have tried is to run fdisk on your hard disk and see what the partition types are. that will narrow down which partition you should mount.

run:
Code:
fdisk /dev/hda
and you will see output similar to this.
Code:
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
where it says Command (m for help):, type p.

Code:
Command (m for help): p

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        1825    14659281   83  Linux
/dev/hda2            1826        1948      987997+  82  Linux swap
/dev/hda3            1949        9729    62500882+   5  Extended
/dev/hda5            1949        4381    19543041   83  Linux
/dev/hda6            4382        6814    19543041   83  Linux
/dev/hda7            6815        8031     9775521   83  Linux
/dev/hda8            8032        9729    13639153+  83  Linux
/dev/hda9             ####       ####    #####      ##  Fat32
since you have both windows 98 and windows 2000 on fat32 partitions, you should have two devices listed as fat32 under the "System" column. write down the /dev/hda# for that partition. If it looked like the above, you would take note of "/dev/hda9."

then run
Code:
mount -t vfat /dev/hda# /mnt/D
where the # is the specific partition you want to try. look in the D directory and see if it has the file structure of windows 98 or 2000. you have to go to that directory using the "cd" command. if you chose the correct partition on the first try, you can run "rm -r" on the zonealarm directory. personally, i would rename it to something like "zonealarmOLD" in case you need it again later.

after that you should be able to reboot your system as normal and access windows.

if you chose the wrong # on the first try, run:
Code:
umount /mnt/D
and repeat the mount command with the other number.

out of curiosity, if you have windows 98 on your computer, why don't you just boot into windows 98 and delete the folder that way?
 
Old 11-22-2004, 04:29 AM   #11
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 Jillande

I deeply appreciate your reply. Just now I am leaving for school. I would be back around four 0' clock.. Are you stationed in Europe? I am talking about CET. In other words it will take another 5 hours to come back to my computer.

I will contact you again. Thank you very much for your attention. I will try the way you suggested and come back to you.
 
Old 11-22-2004, 11:22 AM   #12
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
Jillande ask about Windows 98 partition. Windows 98 can' t see the Windows 2000. But the Windows 2000 can see the Windows 98.

As Jillande suggested I ran the fdisk command and the p command. The following is the output:


[root@h128n2fls301o1037 root]# fdisk /dev/hda

The number of cylinders for this disk is set to 7476.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

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



Afterwards, I ran the ls command and the following is the output.
ls

0 Empty 1c Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid
1 FAT12 1e Hidden W95 FAT1 75 PC/IX be Solaris boot
2 XENIX root 24 NEC DOS 80 Old Minix c1 DRDOS/sec (FAT-
3 XENIX usr 39 Plan 9 81 Minix / old Lin c4 DRDOS/sec (FAT-
4 FAT16 <32M 3c PartitionMagic 82 Linux swap c6 DRDOS/sec (FAT-
5 Extended 40 Venix 80286 83 Linux c7 Syrinx
6 FAT16 41 PPC PReP Boot 84 OS/2 hidden C: da Non-FS data
7 HPFS/NTFS 42 SFS 85 Linux extended db CP/M / CTOS / .
8 AIX 4d QNX4.x 86 NTFS volume set de Dell Utility
9 AIX bootable 4e QNX4.x 2nd part 87 NTFS volume set df BootIt
a OS/2 Boot Manag 4f QNX4.x 3rd part 8e Linux LVM e1 DOS access
b W95 FAT32 50 OnTrack DM 93 Amoeba e3 DOS R/O
c W95 FAT32 (LBA) 51 OnTrack DM6 Aux 94 Amoeba BBT e4 SpeedStor
e W95 FAT16 (LBA) 52 CP/M 9f BSD/OS eb BeOS fs
f W95 Ext'd (LBA) 53 OnTrack DM6 Aux a0 IBM Thinkpad hi ee EFI GPT
10 OPUS 54 OnTrackDM6 a5 FreeBSD ef EFI (FAT-12/16/
11 Hidden FAT12 55 EZ-Drive a6 OpenBSD f0 Linux/PA-RISC b
12 Compaq diagnost 56 Golden Bow a7 NeXTSTEP f1 SpeedStor
14 Hidden FAT16 <3 5c Priam Edisk a8 Darwin UFS f4 SpeedStor
16 Hidden FAT16 61 SpeedStor a9 NetBSD f2 DOS secondary
17 Hidden HPFS/NTF 63 GNU HURD or Sys ab Darwin boot fd Linux raid auto
18 AST SmartSleep 64 Novell Netware b7 BSDI fs fe LANstep
1b Hidden W95 FAT3 65 Novell Netware b8 BSDI swap ff BBT







Finally, I ran the cd command and the ' mount -t vfat /dev/hda5 /mntD ' command. The following is the output.
-------------------------------------------------------------
cd /dev/hda5
DOS Compatibility flag is not set
----------------------------------------------------------------
--------------------------------------------------------------
Command (m for help): cd /dev/hda6
DOS Compatibility flag is set
-------------------------------------------------------------------



Command (m for help): mount -t vfat /dev/hda5 /mntD
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)



The above doesn't tell me what the Windows 2000 partiton. By the way, I have creeated two or three FAT 32 partion called E , F and G. That is why you see a lot of FAT 32 partitons. However, I don't know how it got the name called ' W95 FAT32 '.


I urge you to help me again. I am eagerly waiting to read your comments. I must solve my problem. So please help me.
 
Old 11-22-2004, 11:30 AM   #13
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
Then I tried to mount C and D partitions. The following are the results:


[root@h128n2fls301o1037 root]#
[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda5 /mntD
mount: mount point /mntD does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda6 /mntD


[root@h128n2fls301o1037 root]#
[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda5 /mntD
mount: mount point /mntD does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda6 /mntD
mount: mount point /mntD does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda1 /mntD
mount: mount point /mntD does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda1 /mntC
mount: mount point /mntC does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda2 /mntC
mount: mount point /mntC does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda3 /mntC
mount: mount point /mntC does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda4 /mntC
mount: mount point /mntC does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda5 /mntC
mount: mount point /mntC does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda6 /mntC
mount: mount point /mntC does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda7 /mntC
mount: mount point /mntC does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda8 /mntC
mount: mount point /mntC does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda9 /mntC
mount: mount point /mntC does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda11 /mntD
mount: mount point /mntD does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda10 /mntD
mount: mount point /mntD does not exist


[root@h128n2fls301o1037 root]# mount -t vfat /dev/hda90 /mntD
mount: mount point /mntD does not exist
[root@h128n2fls301o1037 root]#
 
Old 11-22-2004, 09:52 PM   #14
jillande
Member
 
Registered: Oct 2003
Location: fargoh eh.
Distribution: slackware
Posts: 94

Rep: Reputation: 15
sorry i missed a slash. the mount point has to exist.

what i meant (sans typo) was mount -t vfat /dev/hda# /mnt/D since you said you had a folder called /mnt/D. you can mount it anywhere you want, so long as that directory exists.

also, i'm guessing your windows 2000 partition is the /dev/hda6 since that partition is listed as ntfs. that would explain why windows 98 cannot view the windows 2000 partition.

so that would make the command
Code:
mount -t ntfs /dev/hda6 /mnt/D

BUT you would have to have ntfs read-write compatibility enabled in your kernel to be able to write (delete) to that partition. i know it has never been enabled by default on any machine i've never used, so i would venture to say that it probably isn't enabled by default anywhere. enabling it would require a recompile of the kernel.

Last edited by jillande; 11-22-2004 at 09:57 PM.
 
Old 11-23-2004, 05:00 AM   #15
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 Jillande.

I am not at home now. I am at school. I will try what you suggested and come back to you later. I would be home around 17.00PM CET. I am forced to spend more hours at school and then I will be going to the gym for training.

Definetly, I will contact you. It will take place after 17.00PM today.


I have learnt that Windows 98 cannot view the Windwos 2000 partition at any cost. Whereas the Windows 2000 sees the Windows 98 partition.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
view/edit Windows folders/files in Fedora 2 or 4 kkeith Linux - Networking 3 10-13-2005 01:19 PM
Accessing Linux files on one m/c from another Windows-2000 m/c rajeshdorai Linux - Networking 0 04-13-2004 10:06 AM
The 'modified times' of files and folders is reset when copied from windows to linux? crazyswede Linux - Newbie 7 03-02-2004 08:53 AM
can't see shared printer/files/folders on windows noorania Linux - Networking 0 11-12-2003 06:18 PM
Access Linux files from MS Windows 2000? abowling Linux - Software 4 11-06-2003 11:58 AM

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

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