LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Errors on windows hd preventing linux from mounting (https://www.linuxquestions.org/questions/linux-software-2/errors-on-windows-hd-preventing-linux-from-mounting-476601/)

slackr007 08-23-2006 10:23 AM

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.

jabfinger 08-23-2006 12:12 PM

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.

jabfinger 08-23-2006 12:37 PM

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.

slackr007 08-23-2006 01:16 PM

Awesome. I added that folder and that line in fstab and it works now. Thanks so much!

slackr007 08-23-2006 01:43 PM

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?

jabfinger 08-23-2006 06:43 PM

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.


All times are GMT -5. The time now is 12:59 AM.