Monting my drives in Linux

Soldato
Joined
7 Sep 2008
Posts
5,755
Hi all,

I got fedora installed
I wish to be able to access all my files on my windows drives.

I do not wish to format the drives.

I understand that I have to go to the following directory

/etc/fstab

the drives are called this:

sdb
sdc
sdd

how do I get them mounted WITHOUT formatting them?

also wanted to know in the column for drive file type such as ext3
should I write in AUTO
and in the far right hand side will 0,0 be okay?

thanks for any help
I've been reading about this but some of the parts are a bit misunderstanding for me..
 
Code:
# mount /dev/sdb1 /path/to/your/mount/point1 -t ntfs-3g

or as a permanent solution, edit fstab (which is a file, not a directory) with something like the below.

Code:
/dev/sdb1  /path/blah1    ntfs-3g   defaults  0 0
/dev/sdc1  /path/blah2    ntfs-3g   defaults  0 0
/dev/sdd1  /path/blah3    ntfs-3g   defaults  0 0

Once in fstab, the disks will auto mount on reboot.

This is assuming you have a single partition on each of your disks.


EDIT - hang on... do you want to access the linux disks in windows? You'll need a driver for that. google ext2 ifs driver (or something like that).
 
Last edited:
hi

actually I want to access the windows drives in linux

so will I only need to do this?

/dev/sdb1 /path/blah1 ntfs-3g defaults 0 0
/dev/sdc1 /path/blah2 ntfs-3g defaults 0 0
/dev/sdd1 /path/blah3 ntfs-3g defaults 0 0
 
yip - just make the /path/blah1 /path/blah2 etc somewhere that exists.

For example /home/$YOUR_USERNAME/windows_c and /home/$YOUR_USERNAME/windows_d.

Make sure the folders exist first though.

the first section is the device node (/dev/sdb1), the second is where to mount it (btw - you don't mount drives, you mount filesystems), the third is the filesystem type (you can use ntfs if you don't need write support), the fourth is the mount options and the last two are to do with filesystem checks.

You *might* need to install the ntfs-3g package, but if you don't need write support - just use ntfs as the fs type as it's in the kernel.
 
thanks for that I'll give that a go and if I have any problems I'll get back to you on here


so one final thing this would be one drive's line

/dev/sdb1 /mnt/seagate500 ntfs defaults 0,0

would that work?
 
/dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
/dev/mapper/VolGroup-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

Hi that is how the filing system looks in my virtual machine

Say I had the following drives : sda,sdb,sdc and sdc
and they each had these partitions:

sda1, sda2, sda3, sda4

sdb1, sdb2

sdc1, sdc2

sdd

Do I need a new line for each drive/partition in the fstab file? So in this case a total of 8 lines?

where exactly do I put those lines right underneath volgroup?
 
Back
Top Bottom