1

Temat: e2label ?

Otóz sprawiłem sobie sticka 32gb jako hdd do routerka smile No i go sformatowałem pod ext2.
Tyle, że teraz mam problem bo nie moge go zmountować sad

root@OpenWrt:/sbin# mkfs.ext2 /dev/sdb1
mke2fs 1.41.5 (23-Apr-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2093056 inodes, 8370176 blocks
418508 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
256 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624

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

This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@OpenWrt:/sbin# mount /dev/sdb
/dev/sdb   /dev/sdb1
root@OpenWrt:/sbin# mount /dev/sdb1 /mnt/sdb1/
mount: mounting /dev/sdb1 on /mnt/sdb1/ failed: Invalid argument
root@OpenWrt:/sbin# mount -t ext2 /dev/sdb1 /mnt/sdb1/
mount: mounting /dev/sdb1 on /mnt/sdb1/ failed: Invalid argument

root@OpenWrt:/sbin# fdisk -l

Disk /dev/sda: 8508 MB, 8508145664 bytes
2 heads, 63 sectors/track, 131884 cylinders
Units = cylinders of 126 * 512 = 64512 bytes
Disk identifier: 0x0027bcca

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1      131885     8308704+   7  HPFS/NTFS

Disk /dev/sdb: 34.2 GB, 34288435200 bytes
170 heads, 33 sectors/track, 11937 cylinders
Units = cylinders of 5610 * 512 = 2872320 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               2       11938    33480704    b  W95 FAT32

domyslam sie ze to moze byc przez System "w95 fat32" ale polecenia e2label nie ma w openwrt  sad

jakies pomysly ?

2

Odp: e2label ?

fdiskiem się zmienia typ partycji, nie e2label...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: e2label ?

Cezary napisał/a:

fdiskiem się zmienia typ partycji, nie e2label...

tym też nie moge dostaje

root@OpenWrt:/sbin# fdisk /mnt/sdb1/
last_lba(): I don't know how to handle files with mode 40755
You will not be able to write the partition table.

4

Odp: e2label ?

ehm. fdisk /dev/sdb

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: e2label ?

Cezary napisał/a:

ehm. fdisk /dev/sdb

hokej przedarłem sie smile
dziala i mountuje sie ..
jak zawsze dzieks panie C.

6

Odp: e2label ?

a jednak nie do konca ..

dostaje teraz

root@OpenWrt:/mnt/sdb1# ls
ls: ./share2: Stale NFS file handle
lost+found

no i display

root@OpenWrt:/mnt/sdb1# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
tmpfs on /dev type tmpfs (rw,size=512k)
devpts on /dev/pts type devpts (rw,mode=600)
/dev/mtdblock3 on /jffs type jffs2 (rw)
mini_fo:/jffs on / type mini_fo (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /mnt/sda1 type ext2 (rw,errors=continue)
/dev/sdb1 on /mnt/sdb1 type ext2 (rw,errors=continue)
root@OpenWrt:/mnt/sdb1# fdisk -l

Disk /dev/sda: 8508 MB, 8508145664 bytes
2 heads, 63 sectors/track, 131884 cylinders
Units = cylinders of 126 * 512 = 64512 bytes
Disk identifier: 0x0027bcca

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1      131885     8308704+   7  HPFS/NTFS

Disk /dev/sdb: 34.2 GB, 34288435200 bytes
170 heads, 33 sectors/track, 11937 cylinders
Units = cylinders of 5610 * 512 = 2872320 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       11937    33483268+  83  Linux

7

Odp: e2label ?

Tzn gdzie masz problem? "Stale NFS file handle" wynika zapewne z któregoś nieczystego odmontowania systemu

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

8

Odp: e2label ?

Cezary napisał/a:

Tzn gdzie masz problem? "Stale NFS file handle" wynika zapewne z któregoś nieczystego odmontowania systemu


nie odmontowywalem nic po prostu po utworzeniu katalogu dostałem ten error. a pózniej już tylko były input/output errors.

to zrobilem robie jeszcze raz wszystko od poczatku jak ponizej i dalej dupa sad logi poniżej .. co robie nie tak ? hmm

root@OpenWrt:~# fdisk /dev/sdb

The number of cylinders for this disk is set to 32700.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 34.2 GB, 34288435200 bytes
64 heads, 32 sectors/track, 32700 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x3da41a12

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       32700    33484784   83  Linux

Command (m for help): d
Selected partition 1

Command (m for help): p

Disk /dev/sdb: 34.2 GB, 34288435200 bytes
64 heads, 32 sectors/track, 32700 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x3da41a12

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-32700, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-32700, default 32700):
Using default value 32700

Command (m for help): p

Disk /dev/sdb: 34.2 GB, 34288435200 bytes
64 heads, 32 sectors/track, 32700 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x3da41a12

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       32700    33484784   83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
root@OpenWrt:~# mk
mkdir       mke2fs      mkfs.ext2   mkfs.msdos  mknod       mktemp
mkdosfs     mkfifo      mkfs.ext3   mkfs.vfat   mkswap
root@OpenWrt:~# mkfs.ext2 /dev/sdb1
mke2fs 1.41.5 (23-Apr-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2093056 inodes, 8371196 blocks
418559 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
256 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624

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

This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@OpenWrt:~#
root@OpenWrt:~#
root@OpenWrt:~# mount /dev/sd
/dev/sda   /dev/sda1  /dev/sdb   /dev/sdb1
root@OpenWrt:~# mount /dev/sdb1 /mnt/sdb1
mount: mounting /dev/sdb1 on /mnt/sdb1 failed: Invalid argument
root@OpenWrt:~# mount -t ext2 /dev/sdb1 /mnt/sdb1
mount: mounting /dev/sdb1 on /mnt/sdb1 failed: Invalid argument

dodatkowo w zadnym przypadku nie jestem w stanie sprawdzic systemu plików

root@OpenWrt:~# e2fsck /dev/sdb
e2fsck 1.41.5 (23-Apr-2009)
e2fsck: Group descriptors look bad... trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdb

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

root@OpenWrt:~# e2fsck /dev/sdb1
e2fsck 1.41.5 (23-Apr-2009)
e2fsck: Group descriptors look bad... trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdb1

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

root@OpenWrt:~#

9

Odp: e2label ?

sformatowałem stick'a w vfat i znowu jakieś kosmosy sie dzieją jak kopiuje pliku do głownego katalogu
/mnt/sdb1
to wszystko jest ok. Gdy natomiast stworze jakis katalog i w nim jakis katalog nastepnie kopiuje tam pliki to przy podaniu komendy ls wyswietla mi mnustwo input/output error + kilka ekranow krzaków i stick przedzoi w ro...
takze juz totalnie nie wiem co jest nie tak..

stick jest nowy, wiec myslalem ze padniety na starcie. Sformatowałem go pod winda i zaprałem róznymi dokumentatmi filmami z rózna struktura katalogow i nie było żadnego problemu..

wszystko zaczyna sie walic pod linuxem sad

czyzby stick non-linux compatibile ? yikes

10

Odp: e2label ?

Raczej problem z usb...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: e2label ?

Cezary napisał/a:

Raczej problem z usb...

moglbys rozwinac ? modul usb nie ten .. stick nie ten .. czy co ..

mam innego sticka ktorego uzywalem jako hdd do tej pory (8gb) od razu sformaowałem go na ext2 i nie ma z nim najmniejszych problemów. Do tej pory nawet nie zminiłem mu system id (działa jako NTFS) ale openwrt bez problemu wykrywa go jako ext2.

12

Odp: e2label ?

Zakładałem ze coś się dzieje z usb - nie styka lub coś takiego. Ale skoro twierdzisz że inny działa...

Poczekaj, czy ten 32GB to czasami nie jest to voyager? Czytałem swego czasu że była jakaś tam wersja super niekomaptybilna z niczym.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13 (edytowany przez macmus 2009-09-19 12:02:51)

Odp: e2label ?

Cezary napisał/a:

oczekaj, czy ten 32GB to czasami nie jest to voyager? Czytałem swego czasu że była jakaś tam wersja super niekomaptybilna z niczym.

stick jest identyczny jak ten

http://allegro.pl/item734051197_nowy_pendrive_32gb.html

dostałem go od znajomego .. byl oam i zero napisane na nim cokolwiek :>

edit:

o a 8gb jaka uzywam to
http://www.allegro.pl/item743365216.html

tyle ze 8 a nie 16 , bo juz troche przechodzany smile

14

Odp: e2label ?

Ta 32 to taki noname. Być może faktycznie mało kompatybilny jest smile

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

15 (edytowany przez macmus 2009-09-19 21:44:51)

Odp: e2label ?

Cezary napisał/a:

Ta 32 to taki noname. Być może faktycznie mało kompatybilny jest smile

ustwiłem na fat i kopiowałem tylko do głownego katalogu na sticku i masakra teraz ni z tego i owego przeszedł w ro , odmontowałem go, ale już skubaniec nie chce sie zamontować yikes

fscheck pokazuje

root@OpenWrt:~# fsck.vfat /dev/sdb
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Logical sector size is zero.
root@OpenWrt:~# fsck.vfat /dev/sdb1
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Currently, only 1 or 2 FATs are supported, not 188.

juto wieczorem go na ubuntu przemiele gpartitionem, bedzie to lepsze ?
a jak nie to Partition Magic z windy .

16

Odp: e2label ?

Currently, only 1 or 2 FATs are supported, not 188. <-- trochę zabawne to. Chyba się coś nieźle na nim rozpada...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

17 (edytowany przez macmus 2009-09-19 21:59:53)

Odp: e2label ?

Cezary napisał/a:

Currently, only 1 or 2 FATs are supported, not 188. <-- trochę zabawne to. Chyba się coś nieźle na nim rozpada...

moze i smieszne ale co to oznacza roll

jest szansa ze normalny linux cos z tym zrobi ? .. moze chociaż zmountuje ext2 ....

w sumie to strach nawet uzywać tego stcika pod winda jak takie jaja sie dzieja na facie sad

18

Odp: e2label ?

tablica fat, alokacji - są zwykle 2.

ext2 zawsze powinien chodzić bezproblemowo. Myślę że właśnie nabyłeś pendrive kompatybilny inaczej - całkiem możliwe że na normalnym komputerze będzie chodził, a tu nie chce - z jakiś tajemniczych powodów.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

19 (edytowany przez macmus 2009-09-20 23:07:57)

Odp: e2label ?

Cezary napisał/a:

Myślę że właśnie nabyłeś pendrive kompatybilny inaczej - całkiem możliwe że na normalnym komputerze będzie chodził,

cuda na kiju:

1. pod normalnum linuxem sie gpartitionem sformatował ale już nie zmontował
2. nagralem na niego 20 zipow z Openwrt - tylko pierwszy byl możlwy do przeczytania yikes
3. na windzie wszystko gra i buczy na facie hmm

Jak tego stika na ntfs sformatować bo windows nie pozwala  ??

edit:

wiadomość z ostatniej chwili: partition magic w ogole go nie wykrywa yikes yikes

20

Odp: e2label ?

Więc coś z nim nie tak jest. Nie wiem czy coś jesteś w stanie z nim zrobić...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.