1

Temat: Montowanie drugiego dysku przez fstab

Mam pendrive jako /dev/sda na którym jest /sda1 extroot i /sda2 swap to działa ok.

Teraz podłączam dysk 60GB w obudowie USB na którym jest jedna partycja podstawowa ext3 na całym dysku.

Command (m for help): p

Disk /dev/sdb: 60.0 GB, 60011642880 bytes
64 heads, 32 sectors/track, 57231 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x00001854

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       57231    58604528   83  Linux

Do fstab dodałem:

config mount
    option target /mnt/hdd    
    option device    /dev/sdb1
    #option uuid     27a1795f-c1e2-48ab-8f94-fc301237b610
    option fstype    ext3
    option options    rw,sync
    option enabled  1    
    option enabled_fsck 1

Po restarcie pojawiło sie /mnt/hdd ale pliki kopiowane do tego folderu nie trafiają na dysk zewnętrzny tylko na pendrive gdzie jest extroot. Wiedzę to po tym że ubyło mi przestrzeni na partycji systemowej (used 717,5MB z 762.8MB):

 df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 3.9M      3.9M         0 100% /rom
tmpfs                    14.4M     84.0K     14.3M   1% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1               762.8M    717.5M      6.5M  99% /overlay
mini_fo:/overlay          3.9M      3.9M         0 100% /

Co robię nie tak?

Drugi problem powiązany z tym: jak zdobyć uuid /dev/sdb1?
blkid zwraca tylko:

 blkid
/dev/sda2: UUID="5bff93aa-b3b2-4850-a009-eb3b2147cba1"
/dev/sda1: UUID="27a1795f-c1e2-48ab-8f94-fc301237b610"

Wole mieć dyski pomontowane po UUID, na sda już udało mi się to zrobić.

2

Odp: Montowanie drugiego dysku przez fstab

masz moduły ext3 ? czy dysk jest wykrywany(logread) ?

Pozdrawiam, Artur
http://digi-led.pl/blog - Blog

3

Odp: Montowanie drugiego dysku przez fstab

Jeżeli blkid nie widzi go to nie ma go w systemie. Logread i zobacz czy został wykryty. A poźniej zwykłe mount i zobacz czy jest zamontowany.

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

4

Odp: Montowanie drugiego dysku przez fstab

Fragment Logread:

Jan  1 01:00:51 Gargoyle user.notice fstab: e2fsck (/dev/sdb1): /dev/sdb1:
Jan  1 01:00:51 Gargoyle user.notice fstab: e2fsck (/dev/sdb1): The superblock could not be read or does not describe a correct ext2
Jan  1 01:00:51 Gargoyle user.notice fstab: e2fsck (/dev/sdb1): filesystem.  If the device is valid and it really contains an ext2
Jan  1 01:00:51 Gargoyle user.notice fstab: e2fsck (/dev/sdb1): filesystem (and not swap or ufs or something else), then the superblock
Jan  1 01:00:51 Gargoyle user.notice fstab: e2fsck (/dev/sdb1): is corrupt, and you might try running e2fsck with an alternate superblock:
Jan  1 01:00:51 Gargoyle user.notice fstab: e2fsck (/dev/sdb1):     e2fsck -b 8193 <device>
Jan  1 01:00:53 Gargoyle user.info kernel: cfg80211: Calling CRDA for country: PL

Pomogło ponowne sformatowanie dysku na ext3