Mount a second hard drive

Asked by Dave

Ubuntu sees my second hard drive but will not mount it, telling me there is an error in fstab. i have changed the offending line every way I can think of. When using the Root Terminal to try and mount the drive I get told it does not exist, even though an icon for it is displayed graphically.

How do I get Ubuntu to mount the second drive?

Dave

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Dave
Solved:
Last query:
Last reply:
Revision history for this message
Arnau Alcázar (arnau) said :
#1

Could you show us the fstab file and the disk devices listed in /dev?

Revision history for this message
Dave (dave-keeelements) said :
#2

here is fstab - line 12 has been changed many times. I have run out of ideas.

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda3
UUID=9172e9a0-5eb2-47c1-b9f1-9f2ac239acf9 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda1
UUID=8CD2161FD2160DD8 /media/sda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
# /dev/sda2
UUID=76781AA2781A60E3 /media/sda2 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
# /dev/sdb2
UUID=96E44CEAE44CCDE5 /media/sdb2 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
# /dev/sda4
UUID=918180e4-c8a1-4b43-ad94-26caba4d845c none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

As far as devices listed in /dev - I am not sure what you mean. I have only been using linux for a very short time.

Revision history for this message
Dave (dave-keeelements) said :
#3

I have found it now. These are the devices listed biy id

/dev/disk/by-id/scsi-1ATA_FUJITSU_MHW2100BH_NZ0LT7125AUW
/dev/disk/by-id/scsi-1ATA_FUJITSU_MHW2100BH_NZ0LT7125AUW-part1
/dev/disk/by-id/scsi-1ATA_FUJITSU_MHW2100BH_NZ0LT7125AUW-part2
/dev/disk/by-id/scsi-1ATA_FUJITSU_MHW2100BH_NZ0LT7125AUW-part3
/dev/disk/by-id/scsi-1ATA_FUJITSU_MHW2100BH_NZ0LT7125AUW-part4
/dev/disk/by-id/scsi-1ATA_TOSHIBA_MK1234GSX_Z6CJT8DQT
/dev/disk/by-id/scsi-1ATA_TOSHIBA_MK1234GSX_Z6CJT8DQT-part1
/dev/disk/by-id/scsi-1ATA_TOSHIBA_MK1234GSX_Z6CJT8DQT-part2
/dev/disk/by-id/usb-Generic_USB_Flash_Disk_00000000000FC6-0:0

Revision history for this message
Dave (dave-keeelements) said :
#4

If I look at the by label folder these are listed

/dev/disk/by-label/C_Drive
/dev/disk/by-label/Shared
/dev/disk/by-label/TOSHIBA_SYSTEM_VOLUME

It is the 'Shared' disk that will not mount

Revision history for this message
Dave (dave-keeelements) said :
#5

In /dev itself these are listed

sda
sda1 (Windows vista on here)
sda2 (Windows vista on here)
sda3 Unbunto 7.04
sda4 Swap

sdb
sdb1
sdb2

These I can not mount. I am pretty sure the files i am after are on sdb2

Revision history for this message
Arnau Alcázar (arnau) said :
#6

Before continuing, have you checked if /media/sdb2 exists?

Revision history for this message
Dave (dave-keeelements) said :
#7

When I booted from the install CD I was presented with a desktop with an 'Install' icon on it. Before installing I had a play around. At this stage I was able to mount and read the files on the second hard drive. It is now, after completing the install, that I can not mount it. Originally this line

# /dev/sdb2
UUID=96E44CEAE44CCDE5 /media/sdb2 ntfs defaults,nls=utf8,umask=007,gid=46 0 1

 in fstab was very different. When trying to mount the drive I was given a message that the line was incorrect, So I changed it to look the same as the other drives. Now when I try to mount the volume by clicking on the icon in the file browser I am told I am not privileged to mount the volume.

However, if I use Root Terminal and type 'mount /media/sdb2' I am told the mount point does not exist. However I know the drive is there as I use it with windows and it was there during 'pre-install' .

In Root Terminal I have tried mounting /media/sdb1 /media/sdb /sdb /sdb1 /sdb2 /media/Shared /Shared (Shared is the volume name and is the name Ubuntu uses to display the icon in the file browser)

Revision history for this message
Caspar Clemens Mierau (leitmedium) said :
#8

Please attach the information output of:

sudo parted /dev/sda print
sudo parted /dev/sdb print
sudo parted /dev/sdc print
sudo parted /dev/hda print
sudo parted /dev/hdb print
sudo parted /dev/hdc print

Thank you.

Revision history for this message
Dave (dave-keeelements) said :
#9

Casper, here are the ouput from those commands

sudo parted /dev/sda print

Disk /dev/sda: 100GB
Sector size (logical/physical): 512B/512B
Partion Table: msdos

Number Start End Size Type File system Flags
1 1049kB 1574MB 1573MB primary ntfs
2 1574MB 79.0GB 77.4GB primary ntfs boot
3 79.0GB 99.5GB 20.5GB primary ext3
4 99.5GB 100GB 502MB primary linux-swap

Information: Don't forget to update /etc/fstab, if necessary.

sudo parted /dev/sdb print

Disk /dev/sdb: 120GB
Sector size (logical/physical): 512B/512B
Partion Table: gpt

Number Start End Size File system Flags
1 17.4kB 134MB 134MB Microsoft reserved partion
2 135MB 120GB 120GB ntfs Basic data partion

Information: Don't forget to update /etc/fstab, if necessary.

sudo parted /dev/sdc print

Disk /dev/sdc: 1032MB
Sector size (logical/physical): 512B/512B
Partion Table: loop

Number Start End Size File system Flags
1 0.00kB 1032MB 1032MB fat32

Information: Don't forget to update /etc/fstab, if necessary.

sudo parted /dev/hda print

Error: Could not stat device /dev/hda - No such file or directory.

sudo parted /dev/hdb print

Error: Could not stat device /dev/hdb - No such file or directory.

sudo parted /dev/hdc print

Error: Could not stat device /dev/hdc - No such file or directory

Hope this all means something to you!

Dave

Revision history for this message
Caspar Clemens Mierau (leitmedium) said :
#10

Thank you.

Can you please try:

mount -t ntfs /dev/sdb2 /media/sdb2

Revision history for this message
Dave (dave-keeelements) said :
#11

I get:

mount point does not exist

Revision history for this message
Dave (dave-keeelements) said :
#12

Sorry, I should say

Mount: mount point /media/sdb2 does not exist

Revision history for this message
Dave (dave-keeelements) said :
#13

I just tried mount /media/sdb2 and got no messages but the icon for the drive in the file browser has disappeared.

Revision history for this message
Caspar Clemens Mierau (leitmedium) said :
#14

Can you please check, that there is a directory named /media/sdb2 (yes, just a directory). If not, please create it with:

sudo mkdir /media/sdb2

And then retry the mount.

Revision history for this message
Dave (dave-keeelements) said :
#15

There is a folder called /media/Basic with nothing in it.

I have just been making changes to fstab and rebooting in recovery mode.

If I use the line
UUID=96E44CEAE44CCDE5 /media/sdb2 ntfs defaults,nls=utf8,umask=007,gid=46 0 1

I get a message - no such mount point - fail and when I look in the file browser the drive is not listed. However, if I use

UUID=96E44CEAE44CCDE5 /media/Basic data partition ntfs defaults,nls=utf8,umask=007,gid=46 0 1

Then I get the message bad line 12 in fstab and the drive is listed in the file browser.

I will have a go at making the directory and even renaming the 'Basic' directory.

Revision history for this message
Arnau Alcázar (arnau) said :
#16

Is /media/Basic folder empty? You can only mount devices in an empty folder.

Revision history for this message
Dave (dave-keeelements) said :
#17

Ok. I have created the directory and tried to mount /media/sdb2

I got the message already mounted or /media/sdb2 busy

/media/Basic is empty but folders such as sda1 and sda2 are not empty (they are the windows partitions) and I can read all the files on those drives.

Sorry for the delay just had a power cut - not internet connection.

Revision history for this message
Dave (dave-keeelements) said :
#18

Wow!!! I do not know what happened. I have been away from the computer for about 10 minutes and suddenly I can see all the files on the second drive, they have turned up in the newly created /media/sdb2 folder.

Thank you for all you suggestions and help along the way. All I have to do now is get the sound card working and I will be a happy bunny.

Dave

Revision history for this message
Dave (dave-keeelements) said :
#19

Wow!!! I do not know what happened. I have been away from the computer for about 10 minutes and suddenly I can see all the files on the second drive, they have turned up in the newly created /media/sdb2 folder.

Thank you for all you suggestions and help along the way. All I have to do now is get the sound card working and I will be a happy bunny.

Dave

Revision history for this message
Dave (dave-keeelements) said :
#20

Wow!!! I do not know what happened. I have been away from the computer for about 10 minutes and suddenly I can see all the files on the second drive, they have turned up in the newly created /media/sdb2 folder.

Thank you for all you suggestions and help along the way. All I have to do now is get the sound card working and I will be a happy bunny.

Dave

Revision history for this message
Best Dave (dave-keeelements) said :
#21

To close this I will click the I solved this on my own button, but of course I didn't.

Thanks again.

Dave