HI,
How do I edit fstab to mount a windows drive on boot?
I have a windows partition on my HD and my fstab looks like this:
/dev/disk/by-id/ata-TOSHIBA_MK7559GSXP_71MAC2UWT-part2 / ext4 acl,user_xattr 1 1
HI,
How do I edit fstab to mount a windows drive on boot?
I have a windows partition on my HD and my fstab looks like this:
/dev/disk/by-id/ata-TOSHIBA_MK7559GSXP_71MAC2UWT-part2 / ext4 acl,user_xattr 1 1
Add a line like this, provided your partition is formatted with NTFS:
/dev/sdb1 /windows/C ntfs-3g defaults 0 0
Instead of /dev/sdb1 you have to specify the correct device file of course, you can use f.e. “fdisk -l” to find out.
You can also use the /dev/disk/by-id/ notation as for your / partition, f.e.:
/dev/disk/by-id/ata-TOSHIBA_MK7559GSXP_71MAC2UWT-part3 /windows/C ntfs-3g defaults 0 0
for partition 3 of the same drive.
And better try to mount the partition (“sudo mount /windows/C” in the example) before you reboot.
If the mount fails for some reason (typing error f.e.), the system will not boot.
To prevent that you could also put the “nofail” mount option there instead of “defaults”.
Or just use YaST->System->Partitioner to create that entry. Select the partition (below “Hard Disks” on the left), click on “Edit”, enable “Mount” (make sure that “Format” drive is not enabled, you will lose all data otherwise) and choose a mount point (just type in the complete path, f.e. /windows/C. DO NOT select anything from the existing list!).
See http://activedoc.opensuse.org/book/opensuse-reference/chapter-3-advanced-disk-setup#sec.yast2.i_y2_part_expert.options
Please note that you should remove all text in the “Fstab Options” field if you want to have write access.
Old thread about it here
https://forums.opensuse.org/showthread.php/413463-fstab-editing-manually
Good ol
yast2 disk
can do that too :).
Yes, that is YaST->System->Partitioner, which I did mention.
thanks guys.
you are amazingly helpful