View Full Version : mount the Windows XP and Ubuntu?

7th October 2007, 10:23 AM
My computer has 2 hard disk, the first one contains Windows XP Professional, the second one has Fedora 6 (in first partition) and Ubuntu (in second partition). How can I mount the Windows XP and Ubuntu?

7th October 2007, 11:40 AM
I'm making a few assumptions here. Windows XP is on /dev/sda1 and it's an NTFS partition and Ubuntu is on /dev/sdb2 and it's an EXT# partition. That said, here's what to do. Make two folders to mount the partitions to. Open a terminal and as root type:
mkdir /media/windows
mkdir /media/ubuntu
The Ubuntu partition will mount with no trouble. Type:
mount -t ext3 /dev/sdb2 /media/ubuntu
The Windows partition needs to be mounted with either kmod-ntfs or ntfs-3g. kmod-ntfs will mount the partition read-only while ntfs-3g will give you read-write access. To install ntfs-3g type
yum -y install ntfs-3g, then type mount -t ntfs-3g /dev/sda1 /media/windows. You should now be able to browse the newly created folders for your files.

Also, the partition locations were an assumption as I stated. Type /sbin/fdisk -l to list out your partitions and adjust the above accordingly.

8th October 2007, 03:31 PM
how to 'as root'?

8th October 2007, 04:22 PM
how to 'as root'?

he means first you must switch users to the root account in terminal, like this

su -
( enter root password when prompted )