Auto login to second hard drive [ SOLVED ]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Auto login to second hard drive [ SOLVED ]

Postby Dar-es-Salaam on Wed Jul 13, 2011 4:38 am

Hi All

I keep all my info on my second hard drive ( sdb ) and have to use my password to log on to it every time I use my computer. How do I set my computer to automatically login in to my secomd hard drive at startup / bootup when I switch my pc on :D
Last edited by Dar-es-Salaam on Sun Jul 17, 2011 4:13 am, edited 1 time in total.
Cheers
Gordon :D

O/S. LMDE , Motherboard Asus A7N8X Delux , CPU AMD XP1500+ (1300Mhz) (overclocked running at 1866Mhz), Graphics Card GeForce Nvidia PNY 6200 (512 Meg), 2 40gig hard drives, 1 gig RAM
User avatar
Dar-es-Salaam
Level 3
Level 3
 
Posts: 152
Joined: Mon Mar 01, 2010 6:23 am
Location: Blackpool, Lancashire, England, UK.

Linux Mint is funded by ads and donations.
 

Re: Auto login to second hard drive

Postby ukbrian on Wed Jul 13, 2011 5:17 am

I use a second HDD to store all my data on and I mount it in fstab so it appears as a folder "500-data" in my home dir using a line like this
Code: Select all
UUID=86443ABB443AADB5       /home/brian/500-data   ntfs-3g  defaults,uid=1000         0      0

Use "sudo blkid" to get the UUID of your drive and create a folder in your home dir as a folder must exist to make the link to.
My Data partition is NTFS you will have to adjust it if you use an EXT? partition.
User avatar
ukbrian
Level 4
Level 4
 
Posts: 276
Joined: Thu Jul 29, 2010 6:03 am
Location: Cheltenham, UK

Re: Auto login to second hard drive

Postby rjs on Wed Jul 13, 2011 5:40 am

This is done for security reasons amoungst others. You'll have to edit your mount points/drives in /etc/fstab. To see your mounted drives use "fdisk -l".
You'll need to create a mount point if it doesn't exist with your secondary drive within the /etc/fstab.

ex:
# /dev/sdb1 / ext4 rw,errors=remount-ro 0 0
UUID=biglongstring / ext4 rw,errors=remount-ro 0 0

Your mount point for secondary drives is normally "/" , I would make sure you don't have any boot flags setup.

Once you have your drive listed in fstab you'll have your drive loaded and should not have to login
to mount it. You can use the "disk utility" under system tools to see the drive info as well.
---
"LMDE - Linux Mint Debian Edition - Debian, with a touch of elegance." -rjs
User avatar
rjs
Level 1
Level 1
 
Posts: 46
Joined: Wed Jun 15, 2011 12:27 pm

Re: Auto login to second hard drive

Postby altair4 on Wed Jul 13, 2011 6:40 am

You've been offered 2 different solutions based on how your partitions on the second drive are formatted. The options available for one format may not be applicable to the other so if you would like something more specific to your setup please post the output of the following commands:
Code: Select all
sudo blkid -c /dev/null

Code: Select all
mount
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6082
Joined: Tue Feb 03, 2009 10:27 am

Re: Auto login to second hard drive

Postby tompravi on Wed Jul 13, 2011 11:28 am

I think the most easy solution is the application : disk-manager.
This app automatically edit the fstab file for you and all these you ask.
tompravi
Level 1
Level 1
 
Posts: 8
Joined: Mon Jan 07, 2008 10:06 pm

Re: Auto login to second hard drive

Postby Dar-es-Salaam on Fri Jul 15, 2011 3:58 am

Hi altair4,

As requested here are the the results

/dev/sda1: UUID="a5a51c63-3681-4210-9abf-1ecb0bc1326a" TYPE="ext4"

/dev/sda2: UUID="9f9d1e4f-f855-4b60-afd6-c3f263440571" TYPE="swap"

/dev/sdb1: UUID="f2e60161-0462-4092-92a3-074599f5b233" TYPE="ext3"

/dev/sda1 on / type ext4 (rw,errors=remount-ro,user_xattr,commit=0)

tmpfs on /lib/init/rw type tmpfs (rw,nosuid,size=5242880,mode=755,size=5242880,mode=755)

tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=755,size=10%,mode=755)

proc on /proc type proc (rw,noexec,nosuid,nodev)

sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)

udev on /dev type tmpfs (rw,mode=0755)

tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,size=20%,mode=1777,size=20%,mode=1777)

devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620,gid=5,mode=620)

fusectl on /sys/fs/fuse/connections type fusectl (rw)

binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)

cgroup on /dev/cgroup/cpu type cgroup (rw,cpu)

/dev/sdb1 on /media/f2e60161-0462-4092-92a3-074599f5b233 type ext3 (rw,nosuid,nodev,uhelper=udisks)
Cheers
Gordon :D

O/S. LMDE , Motherboard Asus A7N8X Delux , CPU AMD XP1500+ (1300Mhz) (overclocked running at 1866Mhz), Graphics Card GeForce Nvidia PNY 6200 (512 Meg), 2 40gig hard drives, 1 gig RAM
User avatar
Dar-es-Salaam
Level 3
Level 3
 
Posts: 152
Joined: Mon Mar 01, 2010 6:23 am
Location: Blackpool, Lancashire, England, UK.

Re: Auto login to second hard drive

Postby Dyfi on Fri Jul 15, 2011 5:37 am

The easiest solution for you is to install Desktop Manager as suggested by tompravi. This gives you a gui to manage your partitions/disks at boot.
Dyfi
Level 3
Level 3
 
Posts: 190
Joined: Fri Nov 27, 2009 7:25 am

Re: Auto login to second hard drive

Postby altair4 on Fri Jul 15, 2011 6:33 am

[1] Create a permanent home for your partition to live in:
Code: Select all
sudo mkdir /media/Data

Note: If the mount point is in /media or in your /home directory Gnome will automatically place a mount icon on your desktop. If you prefere that not to happen you can place it somewhere else like: /mnt/Data or even /Data.

[2] Unmount the second drive either graphically or with this command:
Code: Select all
sudo umount /media/f2e60161-0462-4092-92a3-074599f5b233

[3] Edit fstab as root:
Code: Select all
gksu gedit /etc/fstab

[4] Add the following line to the end of fstab:
Code: Select all
UUID=f2e60161-0462-4092-92a3-074599f5b233 /media/Data ext3 defaults,noatime 0 2

[5] Save fstab, exit gedit, and back in the terminal run the following command that will test for errors and mount the partition - no reboot is necessary:
Code: Select all
sudo mount -a
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6082
Joined: Tue Feb 03, 2009 10:27 am

Re: Auto login to second hard drive [ SOLVED ]

Postby Dar-es-Salaam on Sun Jul 17, 2011 4:17 am

Hi altair4 ,

Thanks for that. Perfect, it works a treat. That will save me having to keep telling my other half that she must open the other drive first which she keeps forgeting to do :D :D
Cheers
Gordon :D

O/S. LMDE , Motherboard Asus A7N8X Delux , CPU AMD XP1500+ (1300Mhz) (overclocked running at 1866Mhz), Graphics Card GeForce Nvidia PNY 6200 (512 Meg), 2 40gig hard drives, 1 gig RAM
User avatar
Dar-es-Salaam
Level 3
Level 3
 
Posts: 152
Joined: Mon Mar 01, 2010 6:23 am
Location: Blackpool, Lancashire, England, UK.

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 8 guests