[Lvlug] mounting "drives" when you boot up Linux.

heath petty hpetty1 at gmail.com
Tue Jul 20 13:38:08 PDT 2010


On Tue, Jul 20, 2010 at 2:24 PM, Albert Seminatore <alsemus at yahoo.com>wrote:

> Heath:
>  The drive is the primary drive in my laptop.  I have Linux installed on a
> USB SDD drive.  When the system boots up I go to Places and see all the
> partitions I should see.  But the Data1 (sda5) and Data2 (sda6) aren't
> mounted until I pull them on the desktop.
>   So I took your advice and tried to modify fstab.  On bootup it said it
> couldn't mount it and enter S to skip.  Which I did.  When I went to places
> Data1 was there so I tried to pull it on to the desk top..  ERROR:  Only
> root can mount the drive.
>   Now there is only one person running this machine and I usually can do
> anything I want.  Some times I have to use sudo but that is after the system
> is up.
>   Here is a copy of the fstab file:
>
> # /etc/fstab: static file system information.
> #
> # Use 'blkid -o value -s UUID' to print the universally unique identifier
> # for a device; this may be used with UUID= as a more robust way to name
> # devices that works even if disks are added and removed. See fstab(5).
> #
> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
> proc            /proc           proc    nodev,noexec,nosuid 0       0
> /dev/sdb1       /               ext3    errors=remount-ro 0       1
> # swap was on /dev/sdb5 during installation
> UUID=6e841883-23af-4121-a8ab-855da2f38a42 none            swap
> sw              0       0
> # mount the ntfs partitions
> /dev/sda5    /media/sda5    default 1    2
>
> Help!!!.................   Al
> Date: Mon, 19 Jul 2010 13:52:30 -0600
> From: heath petty <hpetty1 at gmail.com<http://us.mc565.mail.yahoo.com/mc/compose?to=hpetty1@gmail.com>
> >
> Subject: Re: [Lvlug] mounting "drives" when you boot up Linux.
> To: The Las Vegas Linux Users Group <lvlug at lvlug.org<http://us.mc565.mail.yahoo.com/mc/compose?to=lvlug@lvlug.org>
> >
> Message-ID:
>     <AANLkTikHZifeuUi7GidIlJVLv7zn6k45icpQTqBa-TCT at mail.gmail.com<http://us.mc565.mail.yahoo.com/mc/compose?to=AANLkTikHZifeuUi7GidIlJVLv7zn6k45icpQTqBa-TCT@mail.gmail.com>
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> What kind of drives are you trying to mount? USB and other external
> "hotplug" type drives should be mounted automatically (or you should see an
> icon on the desktop to mount them). If its an internal SATA drive, then you
> will need to add an /etc/fstab entry for it. For example I have a second
> SATA drive in my system with two partitions, sdb1 and sdb2. To mount those
> at boot on my Fedora system I add the following lines:
>
> /dev/sdb1        /media/sdb1        ext3    defaults    1 2
> /dev/sdb2        /media/sdb2        ext3    defaults    1 2
>
> If you are using a different filesystem you'll need to change ext3 to what
> ever filesystem you are using. And for your information, the first 1 means
> check the filesystem at mount time, and the 2 means to mount it after the
> root filesystem has been mounted.
>
> -Heath
>
> Albert Seminatore
> Mountain Falls in Pahrump, NV
> E-Mail:    alsemus at yahoo.com
>
>
>
> _______________________________________________
> Sent via the Lvlug mailing list Lvlug at lvlug.org
> Set options or unsubscribe at http://lvlug.org/mailman/listinfo/lvlug
> The Lvlug mailing list is hosted courtesy of LasVegas.Net
>
>
I think you have the entry in fstab wrong. Also, the fact that this is an
ntfs partition complicates things. Some distributions ship with the NTFS
FUSE module and use that for mounting the partition. Try the two following
suggestions and see if either one works for you.

First try the direct mount:

/dev/sda5 /media/sda5 ntfs ro,umask=0002,nls=utf8 1 2

(make sure to create the /media/sda5 directory before mounting, e.g.
mkdir /media/sda5

Remove the existing line in /etc/fstab, and replace it with the line
above, then run mount -a (as root or using sudo) to see if the FS
mounts

If it doesn't then try FUSE:

/dev/sda5 /media/sda5 ntfs-fuse umask=0002,silent,locale=utf8

do the same thing here to test. If neither of these work, then have a
peak around the documentation or forums for your distro to see
what other people have done.

-Heath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lvlug.org/pipermail/lvlug/attachments/20100720/e7c23f99/attachment.htm 


More information about the Lvlug mailing list