LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   access window partion... (https://www.linuxquestions.org/questions/linux-general-1/access-window-partion-121621/)

mahamkali 12-01-2003 10:30 AM

access window partion...
 
Hi,
I am a newbie to linux and i am having windows xp and redhat linux 9 on my machine. But frequentlu i used to transfer a lot of data between windows and linux by saving it some where elase and accessing it later in the other OS. I am very curious to know if there is a way to transer directly the data from linux to windows partition. I 'll be very thankful for your answer..

thanks,
siva

szaroubi 12-01-2003 10:34 AM

You will have a hard time to access an ntfs partition from linux ....
What I have seen many ppl do is create a fat32 partition...
Put info they want to share on it.
And
mount -tvfat /dev/hda1 /mnt/windows
/dev/hda1 -> ide drive 1 ... partition 1
/dev/hdb1 -> ide drive 2 partition 1
/dev/hdc3 -> ide drive 3 partiion 3
/mnt/windows is your mountpoint that is where you access the files from

mahamkali 12-01-2003 10:54 AM

can you tell me what is command to view all the partitions on my machine...


thanks,
siva

szaroubi 12-01-2003 10:56 AM

There is no such command at least not that I would know .....

You can see all the ones that are mounted with the mount command.

mahamkali 12-01-2003 11:08 AM

I can all the ones when i type 'mount' command..
---------------------------------------------
/dev/hda2 on / type ext2 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
---------------------------------------------------

which partition i can access?

thanks,
siva

szaroubi 12-01-2003 11:15 AM

The way you preceive filesytems in linux and windows are completely diffrent.
If windows oyu plug oyu play you don't ask questions and you have no control.

Under linux it works diffrently ...
You cannot access a prtition just like that.
You have to "mount" it on a directory ...
Then too access the files on that partition you just go to that directoy and voila ...

Now to know which partitions you can mount is a bit more complexe.
You have to know how your computer is made.
Where each drives are.

Your primary master is going to be "a" /dev/hda
your primary slave is going to be "b" /dev/hdb
secondary master "c" /dev/hdc
and sec slave "d" /dev/hdd

That is the "Devise file" A way to access the device...
Then for partition X on that device its: /dev/hdaX where X is your partition number....

Now don't forget the mount directory ...
Usualy found in /mnt (read as mount) .
create a directory called /mnt/windows
And then
mount /dev/hdaX /mnt/windows
where /dev/hdaX is the correct file for your partition.

DavidPhillips 12-01-2003 09:31 PM

list all partitions..

fdisk -l


XP is going to be readonly to Linux. Linux ext3 is going to be readonly to XP.

What you can do if your using ext3 is to install Explore2fs. Then when your in XP you can get files from the Linux partition. When you are in Linux you can get files from the XP partition.

Lynux Addict 12-01-2003 09:57 PM

I had mandrake9.2 and it viewed NTFS partitions just fine, no setup. However I could not view linux from windows(no big suprise).

LinuxLala 12-02-2003 04:20 AM

can you tell me what is command to view all the partitions on my machine...

df
du

Display information in available disk space and disk usage.

8nasmith 12-02-2003 04:46 AM

i found that after installl madrake 9.2 on my machine it had a link there already which was very strange and it went straght throught to my windows partition

jayakrishnan 12-02-2003 05:12 AM

df -hm

8nasmith 12-02-2003 05:18 AM

what does

df -hm mean?

DavidPhillips 12-02-2003 09:58 AM

fdisk -l

8nasmith 12-02-2003 10:54 AM

cheers

LinuxLala 12-03-2003 08:46 AM

df -h
displays disk usage in human readable format using powers of 10, ie kb, mb, gb

df -m
displays block sizes in megabytes


All times are GMT -5. The time now is 08:36 PM.