LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-23-2006, 10:23 AM   #1
slackr007
Member
 
Registered: Dec 2004
Distribution: Ubuntu 64-bit
Posts: 67

Rep: Reputation: 15
Errors on windows hd preventing linux from mounting


Ok, I'm kinda new to linux so Im not completely sure this is my problem, but I'll explain everything to the best of my ability. I have 2 hard drives, one for linux and the other is my media drive that I had been using in my windows machine before it crashed. I moved the media drive to the linux box and linux aknowledged it, but won't let me access it. Whenever I go to the Disks application and view it, it shows up but the partition status is "inaccessable". I think this may be because it has errors on it but I'm not sure. Whenever I click "Enable" it just refreshes the window, changing nothing. Just incase that's a little fuzzy, read all this(not sure what's relavent/usefull):
Code:
root@localhost:~$ mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
tmpfs on /dev type tmpfs (rw,size=10M,mode=0755)
Code:
root@localhost:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
Code:
root@localhost:~# fdisk -l

Disk /dev/hda: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        3497    28089621   83  Linux
/dev/hda2            3498        3649     1220940    5  Extended
/dev/hda5            3498        3649     1220908+  82  Linux swap / Solaris

Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1       30401   244196001   42  SFS
Code:
root@GOD:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1              27G  2.8G   23G  12% /
tmpfs                 248M     0  248M   0% /dev/shm
What really puzzles me is that if I boot up in Knoppix(the above situation is under Ubuntu), I can mount the drive with no problem. I just cd into /mnt and say "mount hdb1" and it works fine.
 
Old 08-23-2006, 12:12 PM   #2
jabfinger
Member
 
Registered: Jan 2004
Location: USA, Pa
Distribution: Gentoo, Fedora Core 3, Mepis, Vector
Posts: 83

Rep: Reputation: 15
knoppix would probobly autodetect the drive and automaticly create an entry into /etc/fstab and a directory in /mnt to mount hdb1 to, enabeling you to mount it with "mount hdb1".

apperently you are using another distro on your machiene and will have to manualy create the directory /mnt/hdb1 and then add a line in /etc/fstab something like:

/dev/hdb1 /mnt/hdb1 auto defaults 0 0

then you should be able to mount hdb1 with "mount /mnt/hdb1"

I am not sure what the SFS file system is according to your fdisk -l
but the auto in the /etc/fstab line will hopefully autodetect the file system type and you will be on your way if you have that support built into your kernel.

You may also wish to boot into knoppix and see how it is configureing its /etc/fstab for your HD.
 
Old 08-23-2006, 12:37 PM   #3
jabfinger
Member
 
Registered: Jan 2004
Location: USA, Pa
Distribution: Gentoo, Fedora Core 3, Mepis, Vector
Posts: 83

Rep: Reputation: 15
slacker007

I did a search on SFS file system and it looks as though it is some type of global network file system. You may not be able to use the line in /etc/fstab the way I stated.

here is the link to the info I found about
SFS. http://www.fs.net/sfswww/sfs.html

Your best bet may be to check out how knoppix is doing it or check info at UBUNTU. sorry for the confusion.
 
Old 08-23-2006, 01:16 PM   #4
slackr007
Member
 
Registered: Dec 2004
Distribution: Ubuntu 64-bit
Posts: 67

Original Poster
Rep: Reputation: 15
Awesome. I added that folder and that line in fstab and it works now. Thanks so much!
 
Old 08-23-2006, 01:43 PM   #5
slackr007
Member
 
Registered: Dec 2004
Distribution: Ubuntu 64-bit
Posts: 67

Original Poster
Rep: Reputation: 15
Ok, actually I still have a problem. It keeps refering to the drive as "read-only" so I can't modify permissions. This means root(owner) can read and execute and nobody else can do anything. How do I get rid of this "read-only" crap?
 
Old 08-23-2006, 06:43 PM   #6
jabfinger
Member
 
Registered: Jan 2004
Location: USA, Pa
Distribution: Gentoo, Fedora Core 3, Mepis, Vector
Posts: 83

Rep: Reputation: 15
change line in /etc/fstab

/dev/hdb1 /mnt/hdb1 auto defaults,users,rw 0 0.

You might want to have a look at the man page for the mount command "man mount" of course. There you will find a wealth of info concerning this topic.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting windows in linux paul62 Debian 3 11-05-2005 07:00 AM
Linux/Windows Errors HELP ME PLEASE! D1g1tal_x Linux - General 11 03-15-2005 01:07 PM
Preventing non-root mounting of floppy/cd-rom? brettjbuckley Linux - Security 1 06-03-2004 08:18 AM
"errors" preventing resizing partition basd Linux - Laptop and Netbook 1 12-17-2003 04:36 PM
Is Linux more suseptible to memory errors than Windows? Trying to Learn Linux - Hardware 2 08-02-2003 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration