[Lvlug] mounting "drives" when you boot up Linux.
Tom Garland
tom.garland at gmail.com
Tue Jul 20 14:21:48 PDT 2010
On 07/20/2010 01:24 PM, Albert Seminatore 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
>
Al, try this first. Change:
/dev/sda5 /media/sda5 default 1 2
To:
/dev/sda5 /media/sda5 ntfs defaults 1 2
Also make sure the "/media/sda5" directory exists, if
not create it.
Reboot your system. Do a "df" from a terminal, if sda5
is mounted, hurray! If it isn't mounted, open
/var/log/syslog and do a find/locate for sda5 to see any
error messages.
I think it may be more productive/timely for you if you can
use an IRC chat program to interact in real time on
IRC.FREENODE.NET #lvlug with myself and others.
I use labels for mounting partitions i.e. -
LABEL=Big /mnt/Big ext3 defaults 0 0
No need to know physically where partitions are located.
Tom
--
'Intellectual Property'. Intellect is virtual. Property is real.
'Virtual Reality' Duh! Have Fun and Be Helpful - Toga
#LVLUG on IRC.FREENODE.NET for online chat.
More information about the Lvlug
mailing list