Re: Access to Linux (ext3) & Windows (FAT32) partitions (from Ubuntu 9.04)


On Mon, 2009-08-10 at 12:33 +0530, Jay Mistry wrote:
On Mon, Aug 10, 2009 at 11:18 AM, Fred Roller<froller@xxxxxxxxxxxxxx> wrote:
On Mon, 2009-08-10 at 09:54 +0530, Jay Mistry wrote:
On a new install of Ubuntu 9.04 on a home desktop PC, how can one
enable access to Windows XP (FAT32) and Fedora 10 (ext3) partitions
from within Ubuntu (using GNOME 2.26 desktop) ?

for FAT32
sudo mount -t cifs /dev/[fat32 partition] /mnt/[some dir]

for ext3
sudo mount -t ext3 /dev/[ext3 partition] /mnt/[some dir]

Will these cmds mount the file systems permanently (i.e. every time I
boot into Ubuntu) ?

No, Fred's instructions are for "now", and won't survive over a reboot.

Or should the /etc/fstab file be changed to reflect the added
partitions? If yes (for /etc/fstab), what needs to be added/modified
to /etc/fstab ?

You need a line for each partition, with the same information as is used
to build the mount command:

/dev/[fat32 partition] /mnt/[some dir] cifs defaults 0 0
/dev/[ext3 partition] /mnt/[some dir] ext3 defaults 0 2

You need the mount points ("/mnt/[some dir]" in the above examples) to
exist, be unique(!), and to have sane permissions. If the mount point
doesn't exist, the mount operation will fail. If the permissions are
too restrictive, you will have problems accessing or updating files.

The "0 0" and "0 2" influence whether (and the order of) file systems
checks are done. You probably don't want a check done of the vfat

If those file systems existed when you installed ubuntu, they may have
been detected by the installer, in which case it may have created
entries for them in /etc/fstab.

Another problem is that the 'fdisk -l' command returns no result
(either as normal user or root user).

Odd. Does it return a non-zero value to the shell? Check with the
command sequence
fdisk -l;echo $?

(I get a return value of 0, even after fdisk complains about /dev/md*
not containing valid partition table, while reporting both physical
disks, all the RAID metadevices, and detail of a USB key that is
attached to the PC)


Tim Frost <timfrost@xxxxxxxxxx>

Attachment: signature.asc
Description: This is a digitally signed message part

ubuntu-users mailing list
Modify settings or unsubscribe at:

Relevant Pages

  • Re: problem with chmod
    ... On Tue, 14 Apr 2009, Amedee Van Gasse (ubuntu) wrote: ... The question (you did create the mount points, ... shared partitions between operating systems) that I had to use the mkdir ... partitions that are shared with other operating system installations. ...
  • Re: Mounting partitions
    ... I would like to mount my two Ubuntu partitions hda8 and 10 onto my Suse ...
  • Re: problem with chmod
    ... in your filesystem, this is required for mounting, the mount points have ... than the partitions being mounted as partitions? ... system maintenance, rather than sudo (which I really do not like, and ... Ubuntu developers have crafted for you. ...
  • Re: ext3 and Leopard?
    ... for mounting an ext2 filesystem, but will there ever be a utility to ... mount an ext3 filesystem properly? ... I once paid good money for a program that promised to mount ext3 ... partitions in MacOS, only to find that it would NOT mount ReiserFS ...
  • Re: ubuntu-users Digest, Vol 26, Issue 289
    ... On Mon, October 30, 2006 wade wrote: ... Mount a hd with ubuntu on it ... I got the drive up and I can see the drive partitions on my screen. ...