How to look at the Windows 2000 folders and files?
Linux - GeneralThis 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
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.
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.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Rep:
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?
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...
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
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.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
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
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
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)
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
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.
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?
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
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.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
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.
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.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.