Author Topic: Ubuntu fstab drive not mounting with read/write  (Read 1065 times)

woollypigs

  • Mr Peli
    • woollypigs
Ubuntu fstab drive not mounting with read/write
« on: 05 March, 2009, 08:21:55 pm »
I have this in my fstab

/dev/sda3 /media/sda3 vfat iocharset=utf8,umask=000  0 0

When I boot up I do not have read/write access to the drive, but when I unmount it, sudo umount /dev/sda3, and then mount it again with sudo mount -a, I have read/write.

What is wrong here ?
Current mood: AARRRGGGGHHHHH !!! #bollockstobrexit

Re: Ubuntu fstab drive not mounting with read/write
« Reply #1 on: 05 March, 2009, 08:43:49 pm »
Anything in dmesg?

dmesg | grep sda3
"Yes please" said Squirrel "biscuits are our favourite things."

woollypigs

  • Mr Peli
    • woollypigs
Re: Ubuntu fstab drive not mounting with read/write
« Reply #2 on: 05 March, 2009, 10:07:29 pm »
the drive is mounted with read/write and was coping files over when I did that command

[    4.069154]  sda: sda1 sda2 < sda5 > sda3
[  229.720685] FAT: Filesystem panic (dev sda3)
[  229.720709] FAT: Filesystem panic (dev sda3)
[  229.720757] FAT: Filesystem panic (dev sda3)
[  229.720772] FAT: Filesystem panic (dev sda3)
[  229.721131] FAT: Filesystem panic (dev sda3)
[  229.721287] FAT: Filesystem panic (dev sda3)
[  229.721597] FAT: Filesystem panic (dev sda3)
[  229.721619] FAT: Filesystem panic (dev sda3)
[  229.721650] FAT: Filesystem panic (dev sda3)
[  229.721672] FAT: Filesystem panic (dev sda3)
[  229.721703] FAT: Filesystem panic (dev sda3)
[SNIP]
[  229.721992] FAT: Filesystem panic (dev sda3)
[  229.722028] FAT: Filesystem panic (dev sda3)
[  229.722055] FAT: Filesystem panic (dev sda3)
[  229.722131] FAT: Filesystem panic (dev sda3)
Current mood: AARRRGGGGHHHHH !!! #bollockstobrexit

rae

Re: Ubuntu fstab drive not mounting with read/write
« Reply #3 on: 05 March, 2009, 10:38:44 pm »
If it thinks it is read-only (regardless of how you mounted it) then it will spew that stuff all over the place.   You should see the stuff you can get it to spew when you have a storage platform that do read-only without telling the box. 

I'd guess the answer is an fsck, (fsck.msdos?), but I'd first copy the data off it, if it is still there. 

Why are you running FAT under Linux?  Is this drive also used in a win32 environment?   Might be better to chkdsk it in that environment if that is possible.

woollypigs

  • Mr Peli
    • woollypigs
Re: Ubuntu fstab drive not mounting with read/write
« Reply #4 on: 05 March, 2009, 10:47:41 pm »
It is FAT so that I can see it from virtualbox (running XP) and not have any problems while on networks with only windows machines so there is no issues copying files to and from.
Current mood: AARRRGGGGHHHHH !!! #bollockstobrexit

rae

Re: Ubuntu fstab drive not mounting with read/write
« Reply #5 on: 05 March, 2009, 10:48:43 pm »
Does XP have a problem with the drive, and is the data there?

woollypigs

  • Mr Peli
    • woollypigs
Re: Ubuntu fstab drive not mounting with read/write
« Reply #6 on: 05 March, 2009, 10:50:40 pm »
No problem when the drive is mounted with read/write and yes there is quite a ok of files there.
Current mood: AARRRGGGGHHHHH !!! #bollockstobrexit

rae

Re: Ubuntu fstab drive not mounting with read/write
« Reply #7 on: 06 March, 2009, 12:06:25 am »
I'd copy the data off and fsck.   Read the man page first....

Re: Ubuntu fstab drive not mounting with read/write
« Reply #8 on: 06 March, 2009, 12:22:54 am »
FAT filesystem panic on partition sda3, oh dear. Sounds like bad media or bad filesystem.

To check the media, do a read-only test on the entire drive:
# badblocks -v -c 1024 /dev/sda

To check the FAT filesystem in the third partition:
# fsck.vfat -v /dev/sda3

Try adding the read-write mount option to fstab:
/dev/sda3 /media/sda3 vfat rw,iocharset=utf8,umask=000  0 0