LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 11-22-2005, 09:30 PM   #1
neranjana
Member
 
Registered: Jul 2003
Location: Sri Lanka
Distribution: Mandrake
Posts: 99

Rep: Reputation: 15
USB hard disk read only


Hi

I have an external usb hard disk. I used it with Mandrake 10.0. I could read and write into it. Now I installed Mandriva 2006 Powerpack and the disk gets mounted automatically and seems a lot faster than Mandrake 10.0 but I can't write to the disk nor can I delete anything from it. I checked the controlcenter and it is not mounted as readonly and I checked the fstab and when the usb hard disk is connected the fstab file is as follows.

/dev/hda3 / ext3 noatime 1 1
/dev/hda4 /home ext3 noatime 1 2
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hda1 /mnt/windows vfat umask=0,iocharset=iso8859-1,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/sda1 /mnt/removable vfat pamconsole,exec,noauto,codepage=850,iocharset=iso8859-1,managed 0 0

When the hard disk is removed, the fstab file is as follows.

/dev/hda3 / ext3 noatime 1 1
/dev/hda4 /home ext3 noatime 1 2
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hda1 /mnt/windows vfat umask=0,iocharset=iso8859-1,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda2 swap swap defaults 0 0

Why does Mandriva 2006 has a problem which Mandrake 10.0 did not have?
Does anybody know how to fix this problem?

Thanks

Neranjana
 
Old 11-22-2005, 09:49 PM   #2
bioalchemist
Member
 
Registered: Oct 2005
Distribution: mandriva
Posts: 106

Rep: Reputation: 15
I'm pretty sure if you add "rw" to the appropriate line in fstab, you'll be home free:

/dev/sda1 /mnt/removable vfat pamconsole,exec,noauto,codepage=850,iocharset=iso8859-1,managed 0 0

make it this: /dev/sda1 /mnt/removable vfat pamconsole,exec,noauto,codepage=850,iocharset=iso8859-1,managed,rw 0 0



for the record, here's mine:

/dev/sdb1 /mnt/external auto umask=0,iocharset=iso8859-1,codepage=850,rw,users 0 0

hope this helps!
 
Old 11-22-2005, 10:45 PM   #3
neranjana
Member
 
Registered: Jul 2003
Location: Sri Lanka
Distribution: Mandrake
Posts: 99

Original Poster
Rep: Reputation: 15
Hi
Thanks for the reply. But it didn't work. The line corresponding to the drive is automatically added to the fstab when the device is connected and the next time it is connected the rw is gone.

Any other tip?

Thanks

Neranjana
 
Old 11-23-2005, 02:58 AM   #4
neranjana
Member
 
Registered: Jul 2003
Location: Sri Lanka
Distribution: Mandrake
Posts: 99

Original Poster
Rep: Reputation: 15
When I checked the /var/log/messages file the following was found

Nov 23 15:50:48 neranjana kernel: usb 3-2: new high speed USB device using ehci_hcd and address 15
Nov 23 15:50:48 neranjana kernel: scsi12 : SCSI emulation for USB Mass Storage devices
Nov 23 15:50:48 neranjana udev[13857]: run_program: exec of program failed
Nov 23 15:50:53 neranjana kernel: Vendor: SAMSUNG Model: MP0603H Rev: UD10
Nov 23 15:50:53 neranjana kernel: Type: Direct-Access ANSI SCSI revision: 00
Nov 23 15:50:53 neranjana kernel: SCSI device sda: 117304992 512-byte hdwr sectors (60060 MB)
Nov 23 15:50:53 neranjana kernel: sda: assuming drive cache: write through
Nov 23 15:50:53 neranjana kernel: SCSI device sda: 117304992 512-byte hdwr sectors (60060 MB)
Nov 23 15:50:53 neranjana kernel: sda: assuming drive cache: write through
Nov 23 15:50:53 neranjana kernel: /dev/scsi/host12/bus0/target0/lun0: p1
Nov 23 15:50:53 neranjana kernel: Attached scsi disk sda at scsi12, channel 0, id 0, lun 0
Nov 23 15:50:53 neranjana kernel: Attached scsi generic sg0 at scsi12, channel 0, id 0, lun 0, type 0
Nov 23 15:50:53 neranjana pam_console.dev[13894]: Restoring console permissions for /dev/sda /dev/discs/disc1/disc /dev/scsi/host12/bus0/target0/lun0/disc
Nov 23 15:50:53 neranjana pam_console.dev[13905]: Restoring console permissions for /dev/sg0 /dev/scsi/host12/bus0/target0/lun0/generic
Nov 23 15:50:53 neranjana pam_console.dev[13928]: Restoring console permissions for /dev/sda1 /dev/discs/disc1/part1 /dev/scsi/host12/bus0/target0/lun0/part1
Nov 23 15:50:54 neranjana fstab-sync[13936]: added mount point /mnt/removable for /dev/sda1
Nov 23 15:52:44 neranjana kernel: FAT: Filesystem panic (dev sda1)
Nov 23 15:52:44 neranjana kernel: invalid access to FAT (entry 0x00000001)
Nov 23 15:52:44 neranjana kernel: File system has been set read-only

Is this something wrong with my disk or with Mandriva 2006? The same disk works fine on windows, Mandrake 10.0. And flash disks also work fine on this Mandriva 2006. Any suggestions?

Thanks

Neranjana
 
Old 11-23-2005, 03:29 AM   #5
sam.pedraglio
Member
 
Registered: Jul 2005
Distribution: Mint 14 64bit
Posts: 68

Rep: Reputation: 16
he line is automatically added to your fstab because of the presence of the option
managed

remove it the first time you connect the drive and it will stay there forever, ready for the next plug-in.
 
Old 11-23-2005, 04:22 AM   #6
neranjana
Member
 
Registered: Jul 2003
Location: Sri Lanka
Distribution: Mandrake
Posts: 99

Original Poster
Rep: Reputation: 15
Yes. You are right. When I removed managed, the line stayed there. But still even if I add rw in the fstab, the device is mounted readonly. The log shows the error

Nov 23 17:19:35 neranjana kernel: FAT: Filesystem panic (dev sda1)
Nov 23 17:19:35 neranjana kernel: invalid access to FAT (entry 0x00000001)
Nov 23 17:19:35 neranjana kernel: File system has been set read-only

Could this be a problem with the disk, Mandriva or something else? It works on Mandrake 10.0.

Thanks

Neranjana
 
Old 11-23-2005, 04:25 AM   #7
neranjana
Member
 
Registered: Jul 2003
Location: Sri Lanka
Distribution: Mandrake
Posts: 99

Original Poster
Rep: Reputation: 15
Another thing, the size of the disk is 60 GB and there is only one partition. Windows can't even format this partition because windows does not support FAT partitions larger than 40 GB. I used Mandrake 10.0 to format this. Could it be that Mandriva also does not support FAT partitions larger than 40GB now? It did in previous versions.

Thanks

Neranjana
 
Old 11-24-2005, 02:48 AM   #8
sam.pedraglio
Member
 
Registered: Jul 2005
Distribution: Mint 14 64bit
Posts: 68

Rep: Reputation: 16
I'm using a big external HD too (2 partitions of 60GB once) but, unfortunately I'm not able to check it within 2-3days, my laptop is under doctor attentions.
I'll check it when I'll have it back.
Sorry.
 
  


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
How to read hard disk temperature ? bennethos Linux - General 2 12-29-2004 09:27 AM
SuSE 9.2 Won't Read My Hard Disk clearestchannel Suse/Novell 1 11-30-2004 02:19 PM
suse 9.2 won't read my hard disk clearestchannel Linux - Hardware 2 11-30-2004 11:41 AM
Read Only hard disk? GTBlackwell Linux - Hardware 3 12-16-2003 10:16 AM
How do i read files from another hard disk? timberwolf Linux - Networking 10 12-03-2003 09:27 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration