Tuesday, August 26, 2008

mounting windows partitions on linux

/sbin/fdisk -l in the bash prompt. if it does not work for the current user, try su type the root password and then try the command.

this will show the ids of the drives against the drives.
eg.
Device Boot Start End Blocks Id System
/dev/sda1 1 892 7164958+ b W95 FAT32
/dev/sda2 * 893 2850 15727635 83 Linux
/dev/sda3 9146 9729 4690980 c W95 FAT32 (LBA)
/dev/sda4 2851 9145 50564587+ 5 Extended
/dev/sda5 2851 4808 15727603+ b W95 FAT32
/dev/sda6 6898 9145 18057028+ b W95 FAT32
/dev/sda7 4809 5828 8193118+ 83 Linux
/dev/sda8 5829 6083 2048256 82 Linux swap / Solaris
/dev/sda9 6084 6897 6538423+ 83 Linux


next, run:
make a directory : mkdir /win1
mount:
mount /dev/sda1 /win1

does this for all.

edit in fstab for automount at boot.

No comments: