Re: Can not mount an ext2 file system rw immediately after creating it ?

1999-10-14 Thread shaul
If you were reading the posts about this you'll be interested in the following 
response:

There is a big difference and it has already be reported as a bug.

The current mke2fs creates (by default) filesystem with sparse
superblocks, which need a 2.2.x kernel to work. The mke2fs does notb
check the current running kernel neigther does it warn about this.

You can create the old stly fs by adding an option to mke2fs:

mke2fs -s 0 -r 0 (should work)

More about this is in the manpage to mke2fs.

By the way, update your kernel why your at it. :)

May the Source be with you.
Goswin Brederlow [EMAIL PROTECTED]
 

 i dont know but i've always used mke2fs to format a linux ext2 drive
 
 i see mke2fs and mkfs.ext2 are 2 different binarys on my debian 2.1
 server.  try usin mke2fs instead of mkfs.ext2
 
 [mailto:[EMAIL PROTECTED] ]--
   Linux System Administrator   http://www.firetrail.com/
   Firetrail Internet Services Limited  http://www.aphroland.org/
Everett, WA 425-348-7336http://www.linuxpowered.net/
 Powered By:http://comedy.aphroland.org/
 Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
 -[mailto:[EMAIL PROTECTED] ]--
 
 On Wed, 13 Oct 1999, shaul wrote:
 
  I can not mount an ext2 file system rw immediately after creating it. What 
  am 
  I doing wrong ?
  
  [03:41:08 shaul]# cfdisk -P s /dev/hda
  Partition Table for /dev/hda
  
  FirstLast
   # Type Sector   Sector   Offset  Length   Filesystem Type (ID)   Flags
  -- ---  - -- - -- 
  -
   1 Primary0  1024127  63  1024128  FAT16 (06) Boot 
  (80)
   2 Primary  1024128  2503871   0  1479744  Linux (83)
  
  [03:43:11 shaul]# mkfs.ext2 /dev/hda2
  mke2fs 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
  Filesystem label=
  OS type: Linux
  Block size=4096 (log=2)
  Fragment size=4096 (log=2)
  92544 inodes, 184968 blocks
  9248 blocks (5.00%) reserved for the super user
  First data block=0
  6 block groups
  32768 blocks per group, 32768 fragments per group
  15424 inodes per group
  Superblock backups stored on blocks: 
  32768, 98304, 163840
  
  Writing inode tables: done
  Writing superblocks and filesystem accounting information: done
  
  [03:44:35 shaul]# mount -t ext2 -o rw /dev/hda2 /mnt
  EXT2-fs: 03:02: couldn't mount RDWR because of unsupported optional 
  features.
  mount: wrong fs type, bad option, bad superblock on /dev/hda2,
 or too many mounted file systems
  
  [03:50:37 shaul]# mount -t ext2 -o ro /dev/hda2 /mnt
  
  [03:50:42 shaul]# mount | grep /mnt
  /dev/hda2 on /mnt type ext2 (ro)
  
  [03:50:52 shaul]# ls /mnt
  lost+found
  
  [03:51:44 shaul]# umount /mnt
  
  [03:53:39 shaul]# fsck.ext2 /dev/hda2
  e2fsck 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
  /dev/hda2: clean, 11/92544 files, 2917/184968 blocks
  
  
  
  Package: e2fsprogs
  Version: 1.15-3
  Severity: normal
  
  -- System Information
  Debian Release: potato
  Kernel Version: Linux rakefet 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 
  unknown
  
  Versions of the packages e2fsprogs depends on:
  ii  libc6   2.1.2-5GNU C Library: Shared libraries and 
  timezone
  
  Package: mount
  Version: 2.9w-3
  Severity: normal
  
  -- System Information
  Debian Release: potato
  Kernel Version: Linux rakefet 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 
  unknown
  
  Versions of the packages mount depends on:
  ii  libc6   2.1.2-5GNU C Library: Shared libraries and 
  timezone
  
  
  
  -- 
  Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
  
 



Can not mount an ext2 file system rw immediately after creating it ?

1999-10-13 Thread shaul
I can not mount an ext2 file system rw immediately after creating it. What am 
I doing wrong ?

[03:41:08 shaul]# cfdisk -P s /dev/hda
Partition Table for /dev/hda

FirstLast
 # Type Sector   Sector   Offset  Length   Filesystem Type (ID)   Flags
-- ---  - -- - -- -
 1 Primary0  1024127  63  1024128  FAT16 (06) Boot (80)
 2 Primary  1024128  2503871   0  1479744  Linux (83)

[03:43:11 shaul]# mkfs.ext2 /dev/hda2
mke2fs 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
92544 inodes, 184968 blocks
9248 blocks (5.00%) reserved for the super user
First data block=0
6 block groups
32768 blocks per group, 32768 fragments per group
15424 inodes per group
Superblock backups stored on blocks: 
32768, 98304, 163840

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

[03:44:35 shaul]# mount -t ext2 -o rw /dev/hda2 /mnt
EXT2-fs: 03:02: couldn't mount RDWR because of unsupported optional features.
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
   or too many mounted file systems

[03:50:37 shaul]# mount -t ext2 -o ro /dev/hda2 /mnt

[03:50:42 shaul]# mount | grep /mnt
/dev/hda2 on /mnt type ext2 (ro)

[03:50:52 shaul]# ls /mnt
lost+found

[03:51:44 shaul]# umount /mnt

[03:53:39 shaul]# fsck.ext2 /dev/hda2
e2fsck 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
/dev/hda2: clean, 11/92544 files, 2917/184968 blocks



Package: e2fsprogs
Version: 1.15-3
Severity: normal

-- System Information
Debian Release: potato
Kernel Version: Linux rakefet 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 
unknown

Versions of the packages e2fsprogs depends on:
ii  libc6   2.1.2-5GNU C Library: Shared libraries and timezone

Package: mount
Version: 2.9w-3
Severity: normal

-- System Information
Debian Release: potato
Kernel Version: Linux rakefet 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 
unknown

Versions of the packages mount depends on:
ii  libc6   2.1.2-5GNU C Library: Shared libraries and timezone



Re: Can not mount an ext2 file system rw immediately after creating it ?

1999-10-13 Thread Alvin Oga

hi ya 

 I can not mount an ext2 file system rw immediately after creating it. What am 
 I doing wrong ?

try to put data ont your new disk partitions...

shaul# mkdir /mnt/test_hda2
shaul# mount /dev/hda2 /mnt/test_hda2
- should work... if not, reformat /dev/hda2 again...
mke2fs /dev/hda2
- if it still fails...
- fdisk /dev/hda
- check for overlapping boundries...
- also if linux's fdisk did NOT create hda2...than delete it and
  let linux recreate /dev/hda2 with the same starting/ending 
sectors/cylinders
- if you used fdisk...reformat it first
- now try remounting

shaul#  ls -la /  /mnt/test_hda2/root.test.lst
shaul#  ls -la /mnt/test_hda2

-

 [03:44:35 shaul]# mount -t ext2 -o rw /dev/hda2 /mnt

how about trying:
mount /dev/hda2 /mnt -t ext2  ???

have fun
alvin
 
 [03:41:08 shaul]# cfdisk -P s /dev/hda
 Partition Table for /dev/hda
 
 FirstLast
  # Type Sector   Sector   Offset  Length   Filesystem Type (ID)   Flags
 -- ---  - -- - -- 
 -
  1 Primary0  1024127  63  1024128  FAT16 (06) Boot 
 (80)
  2 Primary  1024128  2503871   0  1479744  Linux (83)
 
 [03:43:11 shaul]# mkfs.ext2 /dev/hda2
 mke2fs 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
 Filesystem label=
 OS type: Linux
 Block size=4096 (log=2)
 Fragment size=4096 (log=2)
 92544 inodes, 184968 blocks
 9248 blocks (5.00%) reserved for the super user
 First data block=0
 6 block groups
 32768 blocks per group, 32768 fragments per group
 15424 inodes per group
 Superblock backups stored on blocks: 
 32768, 98304, 163840
 
 Writing inode tables: done
 Writing superblocks and filesystem accounting information: done
 
 [03:44:35 shaul]# mount -t ext2 -o rw /dev/hda2 /mnt
 EXT2-fs: 03:02: couldn't mount RDWR because of unsupported optional features.
 mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
 
 [03:50:37 shaul]# mount -t ext2 -o ro /dev/hda2 /mnt
 
 [03:50:42 shaul]# mount | grep /mnt
 /dev/hda2 on /mnt type ext2 (ro)
 
 [03:50:52 shaul]# ls /mnt
 lost+found
 
 [03:51:44 shaul]# umount /mnt
 
 [03:53:39 shaul]# fsck.ext2 /dev/hda2
 e2fsck 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
 /dev/hda2: clean, 11/92544 files, 2917/184968 blocks
 
 
 
 Package: e2fsprogs
 Version: 1.15-3
 Severity: normal
 
 -- System Information
 Debian Release: potato
 Kernel Version: Linux rakefet 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 
 unknown
 
 Versions of the packages e2fsprogs depends on:
 ii  libc6   2.1.2-5GNU C Library: Shared libraries and 
 timezone
 
 Package: mount
 Version: 2.9w-3
 Severity: normal
 
 -- System Information
 Debian Release: potato
 Kernel Version: Linux rakefet 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 
 unknown
 
 Versions of the packages mount depends on:
 ii  libc6   2.1.2-5GNU C Library: Shared libraries and 
 timezone
 
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 


Re: Can not mount an ext2 file system rw immediately after creating it ?

1999-10-13 Thread shaul
Thank you for your help but I am getting the same results as before.

 
 hi ya 
 
  I can not mount an ext2 file system rw immediately after creating it. What 
  am 
  I doing wrong ?
 
 try to put data ont your new disk partitions...
 
 shaul# mkdir /mnt/test_hda2
 shaul# mount /dev/hda2 /mnt/test_hda2
   - should work... if not, reformat /dev/hda2 again...
   mke2fs /dev/hda2
   - if it still fails...
   - fdisk /dev/hda
   - check for overlapping boundries...
   - also if linux's fdisk did NOT create hda2...than delete it and
 let linux recreate /dev/hda2 with the same starting/ending 
 sectors/cylinders
   - if you used fdisk...reformat it first
   - now try remounting
 
 shaul#  ls -la /  /mnt/test_hda2/root.test.lst
 shaul#  ls -la /mnt/test_hda2
 
 -
 
  [03:44:35 shaul]# mount -t ext2 -o rw /dev/hda2 /mnt
 
 how about trying:
   mount /dev/hda2 /mnt -t ext2  ???
 
 have fun
 alvin
  
  [03:41:08 shaul]# cfdisk -P s /dev/hda
  Partition Table for /dev/hda
  
  FirstLast
   # Type Sector   Sector   Offset  Length   Filesystem Type (ID)   Flags
  -- ---  - -- - -- 
  -
   1 Primary0  1024127  63  1024128  FAT16 (06) Boot 
  (80)
   2 Primary  1024128  2503871   0  1479744  Linux (83)
  
  [03:43:11 shaul]# mkfs.ext2 /dev/hda2
  mke2fs 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
  Filesystem label=
  OS type: Linux
  Block size=4096 (log=2)
  Fragment size=4096 (log=2)
  92544 inodes, 184968 blocks
  9248 blocks (5.00%) reserved for the super user
  First data block=0
  6 block groups
  32768 blocks per group, 32768 fragments per group
  15424 inodes per group
  Superblock backups stored on blocks: 
  32768, 98304, 163840
  
  Writing inode tables: done
  Writing superblocks and filesystem accounting information: done
  
  [03:44:35 shaul]# mount -t ext2 -o rw /dev/hda2 /mnt
  EXT2-fs: 03:02: couldn't mount RDWR because of unsupported optional 
  features.
  mount: wrong fs type, bad option, bad superblock on /dev/hda2,
 or too many mounted file systems
  
  [03:50:37 shaul]# mount -t ext2 -o ro /dev/hda2 /mnt
  
  [03:50:42 shaul]# mount | grep /mnt
  /dev/hda2 on /mnt type ext2 (ro)
  
  [03:50:52 shaul]# ls /mnt
  lost+found
  
  [03:51:44 shaul]# umount /mnt
  
  [03:53:39 shaul]# fsck.ext2 /dev/hda2
  e2fsck 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
  /dev/hda2: clean, 11/92544 files, 2917/184968 blocks
  
  
  
  Package: e2fsprogs
  Version: 1.15-3
  Severity: normal
  
  -- System Information
  Debian Release: potato
  Kernel Version: Linux rakefet 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 
  unknown
  
  Versions of the packages e2fsprogs depends on:
  ii  libc6   2.1.2-5GNU C Library: Shared libraries and 
  timezone
  
  Package: mount
  Version: 2.9w-3
  Severity: normal
  
  -- System Information
  Debian Release: potato
  Kernel Version: Linux rakefet 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 
  unknown
  
  Versions of the packages mount depends on:
  ii  libc6   2.1.2-5GNU C Library: Shared libraries and 
  timezone
  
  
  
  -- 
  Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
  
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 



Re: Can not mount an ext2 file system rw immediately after creating it ?

1999-10-13 Thread shaul
I have managed to work around it by using mke2fs that was running from an old 
(Hamm ?) rescue disk.
I can not say for sure but it seems to me that there is a difference between 
the current (unstable) mke2fs output and the old (Hamm) one. For example, the 
current version says the superblock backups are stored in 3 places while the 
old one uses much more. Yet I am using the unstable mount so it seems to me 
there might be a problem here.

 
 hi ya 
 
  I can not mount an ext2 file system rw immediately after creating it. What 
  am 
  I doing wrong ?
 
 try to put data ont your new disk partitions...
 
 shaul# mkdir /mnt/test_hda2
 shaul# mount /dev/hda2 /mnt/test_hda2
   - should work... if not, reformat /dev/hda2 again...
   mke2fs /dev/hda2
   - if it still fails...
   - fdisk /dev/hda
   - check for overlapping boundries...
   - also if linux's fdisk did NOT create hda2...than delete it and
 let linux recreate /dev/hda2 with the same starting/ending 
 sectors/cylinders
   - if you used fdisk...reformat it first
   - now try remounting
 
 shaul#  ls -la /  /mnt/test_hda2/root.test.lst
 shaul#  ls -la /mnt/test_hda2
 
 -
 
  [03:44:35 shaul]# mount -t ext2 -o rw /dev/hda2 /mnt
 
 how about trying:
   mount /dev/hda2 /mnt -t ext2  ???
 
 have fun
 alvin
  
  [03:41:08 shaul]# cfdisk -P s /dev/hda
  Partition Table for /dev/hda
  
  FirstLast
   # Type Sector   Sector   Offset  Length   Filesystem Type (ID)   Flags
  -- ---  - -- - -- 
  -
   1 Primary0  1024127  63  1024128  FAT16 (06) Boot 
  (80)
   2 Primary  1024128  2503871   0  1479744  Linux (83)
  
  [03:43:11 shaul]# mkfs.ext2 /dev/hda2
  mke2fs 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
  Filesystem label=
  OS type: Linux
  Block size=4096 (log=2)
  Fragment size=4096 (log=2)
  92544 inodes, 184968 blocks
  9248 blocks (5.00%) reserved for the super user
  First data block=0
  6 block groups
  32768 blocks per group, 32768 fragments per group
  15424 inodes per group
  Superblock backups stored on blocks: 
  32768, 98304, 163840
  
  Writing inode tables: done
  Writing superblocks and filesystem accounting information: done
  
  [03:44:35 shaul]# mount -t ext2 -o rw /dev/hda2 /mnt
  EXT2-fs: 03:02: couldn't mount RDWR because of unsupported optional 
  features.
  mount: wrong fs type, bad option, bad superblock on /dev/hda2,
 or too many mounted file systems
  
  [03:50:37 shaul]# mount -t ext2 -o ro /dev/hda2 /mnt
  
  [03:50:42 shaul]# mount | grep /mnt
  /dev/hda2 on /mnt type ext2 (ro)
  
  [03:50:52 shaul]# ls /mnt
  lost+found
  
  [03:51:44 shaul]# umount /mnt
  
  [03:53:39 shaul]# fsck.ext2 /dev/hda2
  e2fsck 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
  /dev/hda2: clean, 11/92544 files, 2917/184968 blocks
  
  
  
  Package: e2fsprogs
  Version: 1.15-3
  Severity: normal
  
  -- System Information
  Debian Release: potato
  Kernel Version: Linux rakefet 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 
  unknown
  
  Versions of the packages e2fsprogs depends on:
  ii  libc6   2.1.2-5GNU C Library: Shared libraries and 
  timezone
  
  Package: mount
  Version: 2.9w-3
  Severity: normal
  
  -- System Information
  Debian Release: potato
  Kernel Version: Linux rakefet 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 
  unknown
  
  Versions of the packages mount depends on:
  ii  libc6   2.1.2-5GNU C Library: Shared libraries and 
  timezone
  
  
  
  -- 
  Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
  
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 



Re: Can not mount an ext2 file system rw immediately after creating it ?

1999-10-13 Thread aphro
i dont know but i've always used mke2fs to format a linux ext2 drive

i see mke2fs and mkfs.ext2 are 2 different binarys on my debian 2.1
server.  try usin mke2fs instead of mkfs.ext2

[mailto:[EMAIL PROTECTED] ]--
  Linux System Administrator   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--

On Wed, 13 Oct 1999, shaul wrote:

 I can not mount an ext2 file system rw immediately after creating it. What am 
 I doing wrong ?
 
 [03:41:08 shaul]# cfdisk -P s /dev/hda
 Partition Table for /dev/hda
 
 FirstLast
  # Type Sector   Sector   Offset  Length   Filesystem Type (ID)   Flags
 -- ---  - -- - -- 
 -
  1 Primary0  1024127  63  1024128  FAT16 (06) Boot 
 (80)
  2 Primary  1024128  2503871   0  1479744  Linux (83)
 
 [03:43:11 shaul]# mkfs.ext2 /dev/hda2
 mke2fs 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
 Filesystem label=
 OS type: Linux
 Block size=4096 (log=2)
 Fragment size=4096 (log=2)
 92544 inodes, 184968 blocks
 9248 blocks (5.00%) reserved for the super user
 First data block=0
 6 block groups
 32768 blocks per group, 32768 fragments per group
 15424 inodes per group
 Superblock backups stored on blocks: 
 32768, 98304, 163840
 
 Writing inode tables: done
 Writing superblocks and filesystem accounting information: done
 
 [03:44:35 shaul]# mount -t ext2 -o rw /dev/hda2 /mnt
 EXT2-fs: 03:02: couldn't mount RDWR because of unsupported optional features.
 mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
 
 [03:50:37 shaul]# mount -t ext2 -o ro /dev/hda2 /mnt
 
 [03:50:42 shaul]# mount | grep /mnt
 /dev/hda2 on /mnt type ext2 (ro)
 
 [03:50:52 shaul]# ls /mnt
 lost+found
 
 [03:51:44 shaul]# umount /mnt
 
 [03:53:39 shaul]# fsck.ext2 /dev/hda2
 e2fsck 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
 /dev/hda2: clean, 11/92544 files, 2917/184968 blocks
 
 
 
 Package: e2fsprogs
 Version: 1.15-3
 Severity: normal
 
 -- System Information
 Debian Release: potato
 Kernel Version: Linux rakefet 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 
 unknown
 
 Versions of the packages e2fsprogs depends on:
 ii  libc6   2.1.2-5GNU C Library: Shared libraries and 
 timezone
 
 Package: mount
 Version: 2.9w-3
 Severity: normal
 
 -- System Information
 Debian Release: potato
 Kernel Version: Linux rakefet 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i586 
 unknown
 
 Versions of the packages mount depends on:
 ii  libc6   2.1.2-5GNU C Library: Shared libraries and 
 timezone
 
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 


Re: Can not mount an ext2 file system rw immediately after creating it ?

1999-10-13 Thread Bob Hilliard
 Run `ls -i /sbin/mkfs.ext2 /sbin/mke2fs'.  You will see that they
are the same inode - therefore they are the same file with two names
hardlinked.

Bob
   _
  |_)  _  |_   Robert D. Hilliard[EMAIL PROTECTED]
  |_) (_) |_)  Palm City, FL  USAPGP Key ID: A8E40EB9


aphro [EMAIL PROTECTED] writes:

 
 i dont know but i've always used mke2fs to format a linux ext2 drive
 
 i see mke2fs and mkfs.ext2 are 2 different binarys on my debian 2.1
 server.  try usin mke2fs instead of mkfs.ext2