how do I get a 2ed hard drive to mount on startup

Asked by Bob

 I have two hard drives first one has Ubuntu 13.10 on it the 2ed has my mp3 files. evertime I turn off the computer, then back on the 2ed hard drive is not running, I can see this because evertime I turn on rhythmbox there is no music on it and I have to go to the 2ed hard drive and turn it on, then wait for all the mp3 files to load every time. Can anyone help with this thank you.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of :

sudo fdisk -l; mount; lsb_release -a; uname -a

Thanks

Revision history for this message
Bob (smith13) said :
#2

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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: 0x0009b9a2

   Device Boot Start End Blocks Id System
/dev/sda1 * 2048 154222591 77110272 83 Linux
/dev/sda2 154224638 156301311 1038337 5 Extended
/dev/sda5 154224640 156301311 1038336 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: 0x00009147

   Device Boot Start End Blocks Id System
/dev/sdb1 63 1465144064 732572001 83 Linux
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=bob)
/dev/sdb1 on /media/bob/my_data type ext2 (rw,nosuid,nodev,uhelper=udisks2)
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
Linux bob-desktop 3.11.0-17-generic #31-Ubuntu SMP Mon Feb 3 21:53:31 UTC 2014 i686 i686 i686 GNU/Linux

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Is the partition you want to mount (You cannot mount a drive) the sdb1 one mounted to /media/bob/my_data ?

Just to verify.

Thanks

Revision history for this message
Bob (smith13) said :
#4

yes my_data

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

What is the output of:

sudo blkid

And we can add an entry to the /etc/fstab to make it mount at boot

Revision history for this message
Bob (smith13) said :
#6

/dev/sda1: UUID="a0833ad3-f9a6-4f3a-accb-909f0b814b3b" TYPE="ext4"
/dev/sda5: UUID="b4b952e2-ec75-4c88-b51f-7f67c794a2cd" TYPE="swap"
/dev/sdb1: LABEL="my_data" UUID="4818bcbe-5b1f-47c0-942b-9530e0f00648" TYPE="ext2"

Cool such a pain having a wall between the 2 hard drives

Revision history for this message
Bob (smith13) said :
#7

Where did you go, what the next step?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Run:

sudo umount /media/bob/my_data
sudo eject /dev/sdb
sudo mkdir /media/bob/my_data
gksudo gedit /etc/fstab

add this line:

UUID=4818bcbe-5b1f-47c0-942b-9530e0f00648 /media/bob/my_data ext2 defaults 0 2

Save the file, close gedit and reboot

Does it then work ok?

Thanks

Revision history for this message
Bob (smith13) said :
#9

Let me see if I got this right
I opened up Gedit copied the line save
Where do I save the file to?
If it's my home, then no did not work.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

You need to reread the commands i gave. They open an existing file.

Revision history for this message
Bob (smith13) said :
#11

got this

 sudo umount /media/bob/my_data
[sudo] password for bob:
umount: /media/bob/my_data: not mounted
bob@bob-desktop:~$ sudo eject /dev/sdb
eject: unable to eject, last error: Inappropriate ioctl for device
bob@bob-desktop:~$ sudo mkdir /media/bob/my_data
mkdir: cannot create directory ‘/media/bob/my_data’: File exists
bob@bob-desktop:~$ gksudo gedit /etc/fstab
Gtk-Message: Failed to load module "gtk-vector-screenshot"

(gedit:3595): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(gedit:3595): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

Revision history for this message
Bob (smith13) said :
#12

What happened is I wanted to add another hard drive to have more space I was running out. I put the 2ed one into the computer, then followed some instructions off the net using gparted. I wound up with a 2ed hard drive that is like a USB stick. I can copy files to it. I see this as a wall. My computer dose not really have more space.
I though they would both work as one. That is what I wanted. But I think I set it up wrong.
Should I clear the 2ed hard drive and start over? If so how? Where is the right set of instructions to make two hard drive work as one?

Revision history for this message
Bob (smith13) said :
#14

I have tried this though this would help
http://askubuntu.com/questions/125257/how-do-i-add-an-additional-hard-drive

But when I get to this step on the page "2.2 Edit /etc/fstab"

I get, command not found

 sudo fdisk -l
[sudo] password for bob:

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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: 0x0009b9a2

   Device Boot Start End Blocks Id System
/dev/sda1 * 2048 154222591 77110272 83 Linux
/dev/sda2 154224638 156301311 1038337 5 Extended
/dev/sda5 154224640 156301311 1038336 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: 0x00009147

   Device Boot Start End Blocks Id System
/dev/sdb1 63 1465144064 732572001 83 Linux
bob@bob-desktop:~$ sudo mkdir /hdd
bob@bob-desktop:~$ sudo vim /etc/fstab
sudo: vim: command not found

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#15

gksudo gedit /etc/fstab
add this line:
UUID=4818bcbe-5b1f-47c0-942b-9530e0f00648 /media/bob/my_data ext2 defaults 0 2

Save the new file and reboot.

Revision history for this message
Bob (smith13) said :
#16

got this

bob@bob-desktop:~$ gksudo gedit /etc/fstab
Gtk-Message: Failed to load module "gtk-vector-screenshot"

Then it opened I put it in there again

# /etc/fstab: static file system information.
#
# Use 'blkid' 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
# / was on /dev/sda1 during installation
UUID=a0833ad3-f9a6-4f3a-accb-909f0b814b3b / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=b4b952e2-ec75-4c88-b51f-7f67c794a2cd none swap sw 0 0
UUID=4818bcbe-5b1f-47c0-942b-9530e0f00648 /media/bob/my_data ext2 defaults 0 2
 UUID=4818bcbe-5b1f-47c0-942b-9530e0f00648 /media/bob/my_data ext2 defaults 0 2

then saved and closed

(gedit:2968): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

then restarted it said serous ereors one disk drive name "bla bla" my_file at startup hit s to skip said you can wait and gave me a % slowly counting up after 10 mins or so the % counter went away I dont know how high it got I was not looking was in the other room making coffee. I hit S again and got on.
where do go ​from here??

so it did try to mount "start up" this time but doing all these thing to get it to work i feel has made it worse but I just dont know.

Revision history for this message
Bob (smith13) said :
#17

it's not as bad I a though, Did some reading other people have had this problem, but I did not find an answer on how to fix it I never seem to.

Revision history for this message
Bob (smith13) said :
#18

I'm a bit confused, so is this one solved and I have to ask another question?

Revision history for this message
Manfred Hampl (m-hampl) said :
#19

The additional line for the second hard disk should be in the /etc/fstab file only once. If you have it now twice, please edit the file with the command given previously, and remove one of the double lines, that there is only one occurence with /media/bob/my_data

The counter thing at the reboot most probably was a file system check. For whatever reason Ubuntu has deemed it necessary to perform a file system check. The next boot shoudl go fatser again (unless there is the need for a file system check again).

If you now reboot, does the second disk automatically mount or not?

What is the output of the terminal commands

sudo fdisk -l
mount
ls -la /media/bob
ls -la /media/bob/my_data

Revision history for this message
Bob (smith13) said :
#20

I took the 2ed command out and restarted this time it did not say error bla-bla. But still scanned the hard drive with the % countdown. 2ed hard drive booted. I have noticed the computer is quite, I don't hear the hard drive doing it's thing making that noise it use to, all I hear is the fans spinning, it's too quite.
 Here is the read out after I took the 2ed line out and did the restart. As you can see, I have not put much on the 2ed hard drive yet, I did not want to have to take the time of moving everything back off of it, if I had to make a change that would need me to clear it and start over.

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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: 0x0009b9a2

   Device Boot Start End Blocks Id System
/dev/sda1 * 2048 154222591 77110272 83 Linux
/dev/sda2 154224638 156301311 1038337 5 Extended
/dev/sda5 154224640 156301311 1038336 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: 0x00009147

   Device Boot Start End Blocks Id System
/dev/sdb1 63 1465144064 732572001 83 Linux
bob@bob-desktop:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sdb1 on /media/bob/my_data type ext2 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=bob)
bob@bob-desktop:~$ ls -la /media/bob
total 12
drwxr-x---+ 3 root root 4096 Feb 27 18:14 .
drwxr-xr-x 3 root root 4096 Feb 21 18:30 ..
drwxrwxr-x 16 bob bob 4096 Feb 28 01:34 my_data
bob@bob-desktop:~$ ls -la /media/bob/my_data
total 1380
drwxrwxr-x 16 bob bob 4096 Feb 28 01:34 .
drwxr-x---+ 3 root root 4096 Feb 27 18:14 ..
-rw-rw-r-- 1 bob bob 61399 May 27 2012 1980's - Erna Ahsendorf.JPG
-rw-rw-r-- 1 bob bob 60110 Jan 1 1980 Aunt Suzzy.JPG
drwxrwxr-x 9 bob bob 4096 Feb 21 11:55 BACKUP
drwxrwxr-x 2 bob bob 4096 Feb 18 17:38 Beatles
drwxrwxr-x 5 bob bob 4096 Feb 28 04:26 Buddy Holly
-rw-rw-r-- 1 bob bob 154650 Feb 18 13:17 dadams-hitchh_06.jpg
-rw-rw-r-- 1 bob bob 126987 Jan 31 06:51 fes.jpg
-rw-rw-r-- 1 bob bob 240321 Feb 10 23:21 GFO feb.pdf
drwxrwxr-x 4 bob bob 4096 Feb 18 17:38 Groucho Marx
-rw-rw-r-- 1 bob bob 42490 Jun 14 2013 lee.jpg
drwx------ 2 root root 4096 Feb 27 19:10 lost+found
-rw-rw-r-- 1 bob bob 3557 Jan 1 1980 MOM&DAD.jpg
drwxrwxr-x 12 bob bob 4096 Feb 26 00:50 Music
drwxrwxr-x 69 bob bob 4096 Feb 22 00:31 Music1
drwxrwxr-x 20 bob bob 4096 Feb 26 19:58 Neil Young
-rw-rw-r-- 1 bob bob 602903 Feb 2 05:16 oct 3 1893 r smith.png
drwxrwxr-x 15 bob bob 4096 Feb 28 03:10 Pete Townshead
drwxrwxr-x 17 bob bob 4096 Feb 21 11:54 Pete Townshend - Who I Am
drwxrwxr-x 10 bob bob 4096 Feb 26 20:15 Simon And Garfunkel
drwxrwxr-x 14 bob bob 4096 Feb 26 20:07 Stephen Stills
drwxrwxr-x 3 bob bob 4096 Feb 28 05:54 The Blues
drwx------ 4 bob bob 4096 Feb 28 01:57 .Trash-1000
-rw-rw-r-- 1 bob bob 9986 Feb 19 15:22 winter eyes.odt

Revision history for this message
Manfred Hampl (m-hampl) said :
#21

Is that additional harddisk now automatically mounted at boot as expected? Can you create files there the way you want?
Are you able to identify whether that "% countdown" (I suppose it is a file system check) is related to the first hard disk or the second (or a specific file system on one of them)?

Revision history for this message
Bob (smith13) said :
#22

2ed hard drive is mounting at the start
I can create files on the 2ed hard drive, but It is coping the files, not moving them there, so it's like a memory stick not what I was thinking. I thought putting it in would make the computer have more space and the two hard drives would work as one.
The % countdown" says "system check" is doing it every time at start up, but when it gets to 100% it goes to the sigh on the page and tells me nothing.

Revision history for this message
Manfred Hampl (m-hampl) said :
#23

Might be hardware problems with hard disk or controller, continued in https://answers.launchpad.net/ubuntu/+question/244919

For move instead of copy: If you press the shift button while dragging a file with the mouse to another directory, it should do a move operation instead of copy. Or you can drag when pressing the right mouse button, you should then see a pop-up menu with copy and move as possible selections.

Can you help with this problem?

Provide an answer of your own, or ask Bob for more information if necessary.

To post a message you must log in.