| Ubuntu This forum is for the discussion of Ubuntu Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
03-01-2008, 12:36 PM
|
#1
|
|
Member
Registered: Feb 2008
Posts: 41
Rep:
|
Help editing fstab to mount hard drives [solved]
trying to mount a few hard drives with editing this fstab file, i did follow the instructions on tuxfiles but cant seem to get anywhere with this. the changes are in bold. do i need to add the UUIDs? where do i find those out? thanks in advance.
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=abdf0e72-f64f-4fe3-a203-12d40f1c637e / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=391406a0-660a-4c97-a423-d075e4476511 none swap sw 0 0
#start changes
/dev/sdb1 /media/Disk_3 / ntfs defaults,errors=remount-ro 0 1
/dev/sdc1 /media/Disk_4 / ntfs defaults,errors=remount-ro 0 1
/dev/hdd1 /media/Disk_5 / ntfs defaults,errors=remount-ro 0 1
/dev/hdd2 /media/Disk_6 / ntfs defaults,errors=remount-ro 0 1
#end changes
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0
Last edited by ChootarLaal; 03-08-2008 at 02:43 PM.
|
|
|
|
03-01-2008, 12:46 PM
|
#2
|
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,466
Rep: 
|
For some reason you've added an extra "/" in each of those lines (the one between the mount point and the filesystem type).
|
|
|
|
03-01-2008, 01:04 PM
|
#3
|
|
Member
Registered: Feb 2008
Posts: 41
Original Poster
Rep:
|
after removing the "/", i do the following
but it gives the following errors
mount: mount point /media/Disk_3 does not exist
mount: mount point /media/Disk_4 does not exist
mount: mount point /media/Disk_5 does not exist
mount: mount point /media/Disk_6 does not exist
|
|
|
|
03-01-2008, 01:06 PM
|
#4
|
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,466
Rep: 
|
The solution to this is obvious really: create the mount points.
|
|
|
|
03-01-2008, 01:49 PM
|
#5
|
|
Member
Registered: Feb 2008
Posts: 41
Original Poster
Rep:
|
how do i know which option to use? this is the error msg.
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
mount: wrong fs type, bad option, bad superblock on /dev/hdd1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
mount: wrong fs type, bad option, bad superblock on /dev/hdd2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
|
|
|
|
03-03-2008, 09:36 AM
|
#6
|
|
Member
Registered: Feb 2008
Posts: 41
Original Poster
Rep:
|
should it not be "ntfs" type? they are drives from a previous xp box but contain nothing but data files.
|
|
|
|
03-03-2008, 09:48 AM
|
#7
|
|
Moderator
Registered: Aug 2002
Posts: 10,707
|
errors=remount-ro is not a valid option for a NTFS file system . See the mount man pages for more information.
Try:
/dev/sdb1 /media/Disk_3 ntfs defaults 0 0
I would use ntfs-3g. You can install it if not already done so via apt-get.
Last edited by michaelk; 03-05-2008 at 06:17 PM.
|
|
|
|
03-04-2008, 09:24 AM
|
#8
|
|
Member
Registered: Feb 2008
Posts: 41
Original Poster
Rep:
|
looks like im not getting those errors now with michelk's correction but i still cant mount. ill install the ntfs-3g once i figure out how to work the apt-get app, thanks for the help, ill post my results tonite.
|
|
|
|
03-05-2008, 06:19 PM
|
#9
|
|
Moderator
Registered: Aug 2002
Posts: 10,707
|
Is it the same error message?
|
|
|
|
03-05-2008, 06:58 PM
|
#10
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
As a general rule, if these are removable drives, then use the "UUID=" type of device entry. If not using the /dev/sdXN form is fine. The /media directory is for automounted devices. It would be better to use /mnt/ instead.
If these are removable drives, make sure you use the "noauto" option as well. Also you didn't include options like fmask, dmask, uid= and gid=. The "utf8" option is also recommended for ntfs partitions.
Read the "mount" and "mount.ntfs" manpages. It doesn't seem that you have.
Look at the output of "sudo file -s /dev/sdb1" to verify that the filesystem is ntfs.
Make sure your kernel supports ntfs. You may need to modprobe the ntfs kernel module before mounting the partitions.
"lsmod | grep ntfs".
If you do go with "ntfs-3g", then also make sure the "fuse" package is installed and modprobe the fuse module.
When trying to mount a partition, the log in /usr/log/messages may contain more detailed information on what went wrong. Open up another terminal and run "sudo tail -f /var/log/messages" before trying to mount a partition in the first terminal.
|
|
|
|
03-06-2008, 06:03 PM
|
#11
|
|
Member
Registered: Feb 2008
Posts: 41
Original Poster
Rep:
|
these are NOT removable drives.
this is the output of
Code:
sudo file -s /dev/sdb1
sudo file -s /dev/sdc1
sudo file -s /dev/hdd1
sudo file -s /dev/hdd2
/dev/sdb1: x86 boot sector, code offset 0x52, OEM-ID "NTFS ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 63, dos < 4.0 BootSector (0x80)
/dev/sdc1: x86 boot sector, code offset 0x52, OEM-ID "NTFS ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 63, dos < 4.0 BootSector (0x80)
/dev/hdd1: x86 boot sector, code offset 0x52, OEM-ID "NTFS ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 63, dos < 4.0 BootSector (0x80)
/dev/hdd2: x86 boot sector, code offset 0x52, OEM-ID "NTFS ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 268430085, dos < 4.0 BootSector (0x80)
i will read the man on mount again.
Last edited by ChootarLaal; 03-06-2008 at 06:20 PM.
|
|
|
|
03-06-2008, 06:06 PM
|
#12
|
|
Member
Registered: Feb 2008
Posts: 41
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
Is it the same error message?
|
michael, im not getting any error messages after
but nothing is mounting. i will update the ntfs-3g package, just in the process of doing that currently. ill post if it works or not.
Last edited by ChootarLaal; 03-06-2008 at 06:09 PM.
|
|
|
|
03-06-2008, 06:19 PM
|
#13
|
|
Member
Registered: Feb 2008
Posts: 41
Original Poster
Rep:
|
here is the result of
fuse 52528 1
nothing...
Code:
lsmod | grep ntfs-3g
nothing...
|
|
|
|
03-06-2008, 06:24 PM
|
#14
|
|
Moderator
Registered: Aug 2002
Posts: 10,707
|
Did you load the modules? i.e.
modprobe ntfs-3g
|
|
|
|
03-06-2008, 06:28 PM
|
#15
|
|
Member
Registered: Feb 2008
Posts: 41
Original Poster
Rep:
|
ok, for some reason this worked.
Code:
sudo mount -t ntfs-3g /dev/sdc1 /media/Disk_3
what am i doing wrong?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:49 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|