Re: [SLUG] hdd

From: Maurice Wilson (maury0324@comcast.net)
Date: Mon Sep 15 2003 - 04:04:10 EDT


Paul M Foster wrote:

>On Sun, Sep 14, 2003 at 11:47:41PM +0200, Maurice Wilson wrote:
>
>
>
>>Eben King wrote:
>>
>>
>>
>>>On Sun, 14 Sep 2003, Maurice Wilson wrote:
>>>
>>>
>>>
>>>
>>>
>>>>I have a second small drive that I keep stuff backed to that was
>>>>formatted and set up with windows but has worked well with Mandrake.
>>>>My problem is when Debian boots up it mounts as" Hard Disk Partition
>>>>
>>>>
>>(hdc1)"
>>
>>
>>>>there is an icon on the desk top and I can access the drive and xfer
>>>>data to the Debian drive BUT I can't write to the drive or create a
>>>>folder on the drive.
>>>>
>>>>
>>>>
>>>>
>>>Look in /etc/fstab for lines beginning with /dev/hdc1 . See if 'ro' is in
>>>the fourth column. If so, change it to 'rw' (if the filesystem is not
>>>NTFS); if not, add 'rw' (ditto). If the filesystem is NTFS, it's
>>>dangerous to mount it rw. In that case, you're better off sharing data
>>>through a FAT32 partition that both OSes can read from and write to.
>>>
>>>
>>>
>>>
>>>
>>Thanks Eben
>>The Debian drive is an ata 100 20gb drive and I set it up as ext3,
>>however the small backup drive is
>>only about 550mb so it is probably only fat 16. I can't remember but I
>>don't think a drive that size can be a fat32
>>I was using it with windows and when I switched to Mandrake it just
>>worked and I gave it no thought. Guess I need to get another drive.
>>Strange that it has worked all this time with mandrake.
>>the line in fstab reads "/dev/hdc1/mnt/hdc1 ufat
>>noauto.users.exe,unmask=000,u10=knoppix.g10=knoppix 00"
>>
>>
>
>I'm assuming that you hand wrote the above line from your /etc/fstab. If
>not, then there may be some clues about why it doesn't work right. The
>"ufat" above should be "vfat". The line above also does not have a mount
>point. Normally, the line would start this way:
>
>/dev/hdc1 /mnt/hdc1
>
>with the second parameter being the mount point. You also have to ensure
>that that mount point (directory) exists. I also assume that for the
>parameters after this, you actually have commas instead of periods. The
>"unmask" above should be "umask". The "u10" should be "uid", and the
>"g10" should be "gid". The username you're giving uid and gid
>("knoppix") should be numeric, and they should be the numeric user ID
>and group ID of an actual user on your system. Otherwise, you may be
>able to read the drive, but may not be able to write to it.
>
>Likewise, ensure that the user who is writing to the drive is the owner
>of the drive, or root. You can't write to a drive owned by a different
>user, unless you're root.
>
>Paul
>-----------------------------------------------------------------------
>This list is provided as an unmoderated internet service by Networked
>Knowledge Systems (NKS). Views and opinions expressed in messages
>posted are those of the author and do not necessarily reflect the
>official policy or position of NKS or any of its employees.
>
>
>
OK it was late and my old brain was foggy
The backup drive is 813 mb and is fat 32
When I installed Debian using Knobbix it defaults to a Knoppix home
directory so I just left it that way. It is my home directory.
Below is the fstab file in mandrake, it works ok. Mandrake sees the
backup drive as windows but Debian sees it
as hdc 1.

>/dev/hda1 / ext3 defaults 1 1
>none /dev/pts devpts mode=0620 0 0
>/dev/hda6 /home ext3 defaults 1 2
>//ruth/RUTH /mnt/RUTH smbfs username=% 0 0
>none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=iso8859-1,codepage=850,umask=0 0 0
>none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,sync,codepage=850,umask=0 0 0
>192.168.1.185:/home/maurice/tmp /mnt/tmp nfs user,rsize=8192,wsize=8192,soft 0 0
>/dev/hdc1 /mnt/windows vfat iocharset=iso8859-1,codepage=850,umask=0 0 0
>none /proc proc defaults 0 0
>/dev/hda5 swap swap defaults 0 0
>
Below is the fstab file in Debian

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
# Added by KNOPPIX
/dev/hdc1 /mnt/hdc1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0 0

Thanks again. Maury

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:41:00 EDT