Mount a second hard drive
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
|
#1 |
Could you show us the fstab file and the disk devices listed in /dev?
Revision history for this message
|
#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-
# /dev/sda1
UUID=8CD2161FD2
# /dev/sda2
UUID=76781AA278
# /dev/sdb2
UUID=96E44CEAE4
# /dev/sda4
UUID=918180e4-
/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
|
#3 |
I have found it now. These are the devices listed biy id
/dev/disk/
/dev/disk/
/dev/disk/
/dev/disk/
/dev/disk/
/dev/disk/
/dev/disk/
/dev/disk/
/dev/disk/
Revision history for this message
|
#4 |
If I look at the by label folder these are listed
/dev/disk/
/dev/disk/
/dev/disk/
It is the 'Shared' disk that will not mount
Revision history for this message
|
#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
|
#6 |
Before continuing, have you checked if /media/sdb2 exists?
Revision history for this message
|
#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=96E44CEAE4
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
|
#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
|
#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
|
#10 |
Thank you.
Can you please try:
mount -t ntfs /dev/sdb2 /media/sdb2
Revision history for this message
|
#11 |
I get:
mount point does not exist
Revision history for this message
|
#12 |
Sorry, I should say
Mount: mount point /media/sdb2 does not exist
Revision history for this message
|
#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
|
#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
|
#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=96E44CEAE4
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=96E44CEAE4
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
|
#16 |
Is /media/Basic folder empty? You can only mount devices in an empty folder.
Revision history for this message
|
#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
|
#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
|
#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
|
#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
|
#21 |
To close this I will click the I solved this on my own button, but of course I didn't.
Thanks again.
Dave