Just added 750 GB Hard drive.

Posts: 630
Eino
Joined: 12 Oct 2012
#1
I need to know how to automatically mount this drive.
Formatted as /dev/sdb1 partition type ext2
I can mount it like a removable drive.
Posts: 630
Eino
Joined: 12 Oct 2012
#2
Just added this line to fstab"/dev/sdb1 /home/Steve/data ext2 noatime,defaults 0 2"
Now I get this
"Error mounting: mount exited with exit code 1: helper failed with:
mount: only root can mount /dev/sdb1 on /home/Steve/data"
What am I missing here?
.
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#3
Add"users" as an option so the fstab entry becomes:

Code: Select all

/dev/sdb1 /home/Steve/data ext2 noatime,defaults,users 0 2
Posts: 630
Eino
Joined: 12 Oct 2012
#4
Thanks I give it a try.
Posts: 630
Eino
Joined: 12 Oct 2012
#5
Now after adding users I get this.
"Error mounting: mount exited with exit code 1: helper failed with:
mount: mount point /home/Steve/data does not exist"
.
Posts: 630
Eino
Joined: 12 Oct 2012
#6
Fixed the problem, I had My mount point as Data ,and not data. Just a case of not watching my upper and lower cases. __{{emoticon}}__
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#7
I'm glad you got it to work.
Posts: 630
Eino
Joined: 12 Oct 2012
#8
The drive is owned by root.
How do I change it to user?, so I have permission to use it.
Posts: 630
Eino
Joined: 12 Oct 2012
#9
I just reformatted the drive to ext3, and made the change in fstab.
Then tried to change permissions using ROX-Filer.
and I got this.

Code: Select all

Change permissions of '/home/Steve/data'? Yes
ERROR: Operation not permitted
Done
There was one error.  
Sometimes when it comes to adding hardware, It may be simpler to backup the notes and personal files and reinstall everything.
Posts: 630
Eino
Joined: 12 Oct 2012
#10
I think I just found the problem.

Code: Select all

fdisk -l

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders, total 156250000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1   151990964    75995482   83  Linux
/dev/sda2       151990965   156248189     2128612+  82  Linux swap / Solaris

Disk /dev/sdb: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table
The drive doesn't have a valid partition table.
Next thing to do is adding the partition table.
Posts: 630
Eino
Joined: 12 Oct 2012
#11
Fixed that problem, now I need to change ownership of the drive.

Code: Select all

Disk /dev/sdb: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007f8c1
Posts: 630
Eino
Joined: 12 Oct 2012
#12
Rather than playing with the 750 GB drive as a secondary drive. I removed the 60 GB drive. and reinstalled the system on the 750 GB drive.
It is a better drive for the job anyway. Other than an update issue everything is going good so far