Changing fstab and re-mounting disks

2006-08-21 Thread Damon L. Chesser
Here is one I can not explain:  A user wanted to mount a vfat partition 
(/dev/hda4) to /mnt/hda4.  His fstab had this line in it:


/dev/hda4 /mnt/hda4 auto defualts,rw,users,owner,auto,uid=1000 0 0  
(uid=username ID). 

And yet, root:root owned all the files/dirs, that was to be expected, I 
think, and user could not mkdir or files, permission denied.  I had him 
change the fstab line to this:


/dev/hda4 /mnt/hda4 vfat defualts,rw,users,auto,suid=1000,umask=0 0 0  
(umask setting is a test, to test writing)


umount /dev/hda4 as root.  mount /dev/hda4 as user.  ls -l on hda4 
showed root:root owned all the files (drwxr-xr-x  14 root root )


Could not chown -R user:user /mnt/hda4/*  as root, "not allowed".  the 
user ran out of time (life gets in the way), but I found out a few hours 
latter he "fixed" the problem:  From a irc past:


(19:18:13) Dbarracuda: what was it?
(19:18:22) RABraker: the hell if i know  <<(19:18:58) RABraker: i mounted it in /media/hda4 and made arnold the 
owner of both
(19:19:25) RABraker: but it seemed to start working after changing the 
fstab and rebooting


so, here is the question:  What did I advise wrongly and why would not a 
umount, mount /dev/hda4 work?  We only wanted user to be the only one to 
access it.  Keep in mind, I really don't know what was finally changed 
during the above irc session, at this point in time, I only surmise that 
the changes I recommended were used.  I rarely play with vfat anymore, 
and obviously I am rusty.


--
Damon L. Chesser
[EMAIL PROTECTED]
[EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Mounting disks

2003-11-30 Thread Jan-Marek Glogowski
Hi

When you get "Input/Output" error, there may be a hardware error :-(
Check your /var/log/messages.

You can check the partition layout using gpart.
http://www.stud.uni-hannover.de/user/76201/gpart/, or the deb.

Look at man e2fsck, especially -b, -B and -n.

HTH

Jan-Marek


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Mounting disks

2003-11-30 Thread Paul Morgan
James Hosken wrote:

Quoting Paul Morgan <[EMAIL PROTECTED]>:

 

On Sat, 29 Nov 2003 11:46:13 +, James Hosken wrote:

   

Quoting Carl Fink <[EMAIL PROTECTED]>:

 

On Wed, Nov 26, 2003 at 07:03:57PM +, James Hosken wrote:

   

mount -t ext2 /dev/hdb5 /mnt/old-disk/

and I get the error

mount: wrong fs type, bad option, bad superblock on /dev/hdb5,
  or too many mounted file systems
I'm pritty sure that it is the right file systems, I was using Mandrake
 

8.1
   

standard setup. I think the disk may be a bit dodgy. Is there any thing
 

that I
   

can do? I know there are several superblocks for this soer of thing.
 

Well, starting from the end:  how many filesystems do you have mounted?

Run fdisk or cfdisk on /dev/hdb and see what partition type /dev/hdb5
really is.
If it's ext2, run e2fsck on it.
   

Thanks for the reply, it is hdb8 that I'm really intrested in rather than
 

hdb5
   

Here's he result from fdisk

Disk /dev/hdb: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot  Start End  Blocks   Id  System
/dev/hdb1   * 117 510 3164805b  W95 FAT32
/dev/hdb2 511500536106087+   f  W95 Ext'd (LBA)
/dev/hdb5 511 573  506016   83  Linux
/dev/hdb6 574 604  248976   82  Linux swap
/dev/hdb7 605 986 3068383+  83  Linux
/dev/hdb8 987500532282586   83  Linux
Here is the result from fsck /dev/hdb8

fsck 1.35-WIP (21-Aug-2003)
e2fsck 1.35-WIP (21-Aug-2003)
fsck.ext2: Attempt to read block from filesystem resulted in short read
 

while tr
   

ying to open /dev/hdb8
Could this be a zero-length partition?


I have run fsck on hdb5 and hdb7 as well and they come back with the same
 

error.
   

Any surgestions?
Thanks
 

James,

What happens if you try to mount any of these without specifying a type? 
And, if mount is successful, what did it mount it as?

Example - what's the output from this?

mount /dev/hdb5 /mnt/old-disk/
mount | grep /mnt/old-disk
   



I have tried  that before, here the output

fork:/etc/apache# mount /dev/hdb5 /mnt/old-disk/
/dev/hdb5: Input/output error
mount: mount point /mnt/old-disk/ does not exist


I know that there are multiple superblock incase one gets knackered, would using
one of these help? How do I do that?
Is there a way of finding the superblocks?
James

 

James,

You must have mistakenly sent this to me rather than the list.

You could run mke2fs -n ... which would tell you where it would put the 
superblocks if it built the filesystem (-n tells it not to actually do 
it).  Then you could try giving one of those superblock values to mount. 
However, as it was built on a different system and we don't know the 
parameters mke2fs used to build it, there are no guarantees, but it's 
worth a try.  See "man mke2fs".

I assume that sfdisk thinks that your partition table is OK.  I mean, I 
assume that you are sure that the issue is the filesystem.

--
paul
"They made us many promises, more than I can remember, but they never
kept but one: they promised to take our land, and they took it."
- Chief Red Cloud (Mahpiua Luta) of the Oglala Sioux



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Mounting disks

2003-11-29 Thread Paul Morgan
On Sat, 29 Nov 2003 11:46:13 +, James Hosken wrote:

> Quoting Carl Fink <[EMAIL PROTECTED]>:
> 
>> On Wed, Nov 26, 2003 at 07:03:57PM +, James Hosken wrote:
>> 
>> > mount -t ext2 /dev/hdb5 /mnt/old-disk/
>> > 
>> > and I get the error
>> > 
>> > mount: wrong fs type, bad option, bad superblock on /dev/hdb5,
>> >or too many mounted file systems
>> > I'm pritty sure that it is the right file systems, I was using Mandrake
>> 8.1
>> > standard setup. I think the disk may be a bit dodgy. Is there any thing
>> that I
>> > can do? I know there are several superblocks for this soer of thing.
>> 
>> Well, starting from the end:  how many filesystems do you have mounted?
>> 
>> Run fdisk or cfdisk on /dev/hdb and see what partition type /dev/hdb5
>> really is.
>> 
>> If it's ext2, run e2fsck on it.
> 
> 
> Thanks for the reply, it is hdb8 that I'm really intrested in rather than hdb5
> Here's he result from fdisk
> 
> Disk /dev/hdb: 41.1 GB, 41174138880 bytes
> 255 heads, 63 sectors/track, 5005 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>  
>Device Boot  Start End  Blocks   Id  System
> /dev/hdb1   * 117 510 3164805b  W95 FAT32
> /dev/hdb2 511500536106087+   f  W95 Ext'd (LBA)
> /dev/hdb5 511 573  506016   83  Linux
> /dev/hdb6 574 604  248976   82  Linux swap
> /dev/hdb7 605 986 3068383+  83  Linux
> /dev/hdb8 987500532282586   83  Linux
> 
> 
> Here is the result from fsck /dev/hdb8
> 
> fsck 1.35-WIP (21-Aug-2003)
> e2fsck 1.35-WIP (21-Aug-2003)
> fsck.ext2: Attempt to read block from filesystem resulted in short read while tr
> ying to open /dev/hdb8
> Could this be a zero-length partition?
> 
> 
> 
> I have run fsck on hdb5 and hdb7 as well and they come back with the same error.
> Any surgestions?
> Thanks

James,

What happens if you try to mount any of these without specifying a type? 
And, if mount is successful, what did it mount it as?

Example - what's the output from this?

mount /dev/hdb5 /mnt/old-disk/
mount | grep /mnt/old-disk

-- 
paul

"The average lifespan of a Web page today is 100 days. This is no way to
run a culture."

Internet Archive Board Chairman



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Mounting disks

2003-11-29 Thread James Hosken
Quoting Carl Fink <[EMAIL PROTECTED]>:

> On Wed, Nov 26, 2003 at 07:03:57PM +, James Hosken wrote:
> 
> > mount -t ext2 /dev/hdb5 /mnt/old-disk/
> > 
> > and I get the error
> > 
> > mount: wrong fs type, bad option, bad superblock on /dev/hdb5,
> >or too many mounted file systems
> > I'm pritty sure that it is the right file systems, I was using Mandrake
> 8.1
> > standard setup. I think the disk may be a bit dodgy. Is there any thing
> that I
> > can do? I know there are several superblocks for this soer of thing.
> 
> Well, starting from the end:  how many filesystems do you have mounted?
> 
> Run fdisk or cfdisk on /dev/hdb and see what partition type /dev/hdb5
> really is.
> 
> If it's ext2, run e2fsck on it.


Thanks for the reply, it is hdb8 that I'm really intrested in rather than hdb5
Here's he result from fdisk

Disk /dev/hdb: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot  Start End  Blocks   Id  System
/dev/hdb1   * 117 510 3164805b  W95 FAT32
/dev/hdb2 511500536106087+   f  W95 Ext'd (LBA)
/dev/hdb5 511 573  506016   83  Linux
/dev/hdb6 574 604  248976   82  Linux swap
/dev/hdb7 605 986 3068383+  83  Linux
/dev/hdb8 987500532282586   83  Linux


Here is the result from fsck /dev/hdb8

fsck 1.35-WIP (21-Aug-2003)
e2fsck 1.35-WIP (21-Aug-2003)
fsck.ext2: Attempt to read block from filesystem resulted in short read while tr
ying to open /dev/hdb8
Could this be a zero-length partition?



I have run fsck on hdb5 and hdb7 as well and they come back with the same error.
Any surgestions?
Thanks


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Mounting disks

2003-11-26 Thread Carl Fink
On Wed, Nov 26, 2003 at 07:03:57PM +, James Hosken wrote:

> mount -t ext2 /dev/hdb5 /mnt/old-disk/
> 
> and I get the error
> 
> mount: wrong fs type, bad option, bad superblock on /dev/hdb5,
>or too many mounted file systems
> I'm pritty sure that it is the right file systems, I was using Mandrake 8.1
> standard setup. I think the disk may be a bit dodgy. Is there any thing that I
> can do? I know there are several superblocks for this soer of thing.

Well, starting from the end:  how many filesystems do you have mounted?

Run fdisk or cfdisk on /dev/hdb and see what partition type /dev/hdb5
really is.

If it's ext2, run e2fsck on it.
--  
Carl Fink [EMAIL PROTECTED]
Jabootu's Minister of Proofreading
http://www.jabootu.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]