PDA

View Full Version : Automount NTFS + FAT32 Partitions



alanorozco
April 10th, 2007, 10:55 PM
Hi.

I have to hard drives, one IDE and one SATA. The IDE drive is divided in two patitions: System (NTFS, /dev/sda1) and PROFILE (FAT32, /dev/sda5). The SATA drive is divided in another two partitions: Media (NTFS, /dev/sdb1) and Work (NTFS, /dev/sdb5).

Following this guide (http://ubuntuforums.org/showpost.php?p=2374953&postcount=2), I was able to r/w my NTFS partitions, but the problem is that I have to mount them every time I boot in Ubuntu.

So, I searched a bit, and found some information about /etc/fstab. I copied the contents of fstab and added a few lines to automount my other two NTFS drives (Wubi installed Ubuntu in "Work" (/dev/sda5), for some weird reason) and my FAT32 drive.

This is how the new file looked like:

# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
/dev/loop7 / ext3 defaults 0 1
/dev/loop6 /home ext3 defaults 0 2
/dev/loop5 none swap sw 0 0
/dev/loop4 /media/extra auto defaults 0 0
/dev/sdb5 /media/Work ntfs umask=222,utf8 0 0

##Added content starts here
/dev/sdb1 /media/Media ntfs auto defaults 0 0
/dev/sda1 /media/windows ntfs auto defaults 0 0
/dev/sda5 /media/PROFILE vfat auto defaults 0 0

I saved the new file in /media/Work/fstabNew and copied it to /etc/fstab using sudo -s.

When I restarted and booted into Ubuntu, the three new partitions were NOT mounted and I could not even see them in Computer.

The point is that maybe I didn't modify my fstab file correctly. Mind to help? :)

And yes, I made sure that /etc/fstab was changed.

ago
April 11th, 2007, 09:17 AM
The windows partition that contains the wubi folder is already automounted in media host (wubi beta3+)
For the others, did you create the folders in /media as well?

You can simply try to mount them monually (no need to reboot), once a line is in fstab you can call it by providing either the device or the mountpoint.

sudo mount /dev/sda5

Finally, to get r/w capabilities in ntfs you want to use "ntfs-3g" not "ntfs".

alanorozco
April 11th, 2007, 02:21 PM
The windows partition that contains the wubi folder is already automounted in media host (wubi beta3+)
I'm using Wubi b3 and it's not mounted.


For the others, did you create the folders in /media as well?
No, I didn't know I had to.


Finally, to get r/w capabilities in ntfs you want to use "ntfs-3g" not "ntfs".
I'm going to try that, thanks.

ago
April 11th, 2007, 02:31 PM
I'm using Wubi b3 and it's not mounted.

Hmm, it should be mounted,if it's not it's an issue...

alanorozco
April 11th, 2007, 02:50 PM
It didn't work :(

The drives weren't mounted and they don't show up in Places > Computer.

I did make the new folders in /media/.


# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
/dev/loop7 / ext3 defaults 0 1
/dev/loop6 /home ext3 defaults 0 2
/dev/loop5 none swap sw 0 0
/dev/loop4 /media/extra auto defaults 0 0
/dev/sdb5 /media/Work ntfs umask=222,utf8 0 0

##Added content starts here
/dev/sdb1 /media/Media ntfs-3g auto defaults 0 0
/dev/sda1 /media/windows ntfs-3g auto defaults 0 0
/dev/sda5 /media/PROFILE vfat auto defaults 0 0

ago
April 11th, 2007, 03:28 PM
What do you see under /media/host? Is there a /media/host folder at all? Can you look into c:\wubi\logs\lupin.log which is inside the windows partition?

alanorozco
April 11th, 2007, 04:16 PM
What do you see under /media/host? Is there a /media/host folder at all?
Yes, it's the /dev/sdb5 partition (Work).

ecology2007
April 11th, 2007, 10:11 PM
If you ever still have the img files, could you tell me exactly their size in bytes ? (even if you converted them to NTFS)
You can do that by left clicking it in windows explorer and looking at properties.

ago
April 11th, 2007, 10:31 PM
Yes, it's the /dev/sdb5 partition (Work).

I don't understand, do you see files under /media/host? If so why do you claim that it is not mounted?

alanorozco
April 11th, 2007, 10:48 PM
I don't understand, do you see files under /media/host? If so why do you claim that it is not mounted?
Oh, I misread your post, it's mounted. I thought you meant C:

If you ever still have the img files, could you tell me exactly their size in bytes ? (even if you converted them to NTFS)
You can do that by left clicking it in windows explorer and looking at properties.I uninstalled Wubi (I temporally installed it to check out Feisty). Sorry.

I still need an answer, though. I'm going to install Feisty in an ext3 partition once it's released.