deletion of /dev files

Bob Nielsen nielsen at oz.net
Sat Jan 14 21:46:38 UTC 2006


On Jan 14, 2006, at 1:36 PM, R Kimber wrote:

> On Sat, 14 Jan 2006 13:44:38 -0500
> Phillip Susi <psusi at cfl.rr.com> wrote:
>
>> R Kimber wrote:
>>
>>>> Well, you probably don't want it to be in fstab, anyway.
>>>>
>>>>
>>>
>>> So, how do I know how to refer to it in a script so that I can mount
>>> it and unmount it?
>>>
>>>
>>>
>> With it's /dev name of course.  Which should not go away unless you
>> unplug the drive.
>
> But how do I tell it that its an ext2 system and not fat ?  Not having
> an entry in fstab, it seems to expect fat, and if I try to mount it it
> says
> mount: wrong fs type, bad option, bad superblock on /dev/sda4,
>        missing codepage or other error
>        In some cases useful info is found in syslog - try
>        dmesg | tail  or so
> and dmesg says
> [  345.801075] FAT: bogus number of reserved sectors
> [  345.801085] VFS: Can't find a valid FAT filesystem on dev sda4
>

When invoking mount in your script, use 'mount -t ext2 /dev/sda4  
<destination>'.






More information about the ubuntu-users mailing list