Responder 
 
Avaliação do Tópico:
  • 0 Votos - 0 Média
  • 1
  • 2
  • 3
  • 4
  • 5
Problemas em montar HD durante o boot
14/08/2012, 10:33
Resposta: #1
Problemas em montar HD durante o boot
Pessoal,

Tenho o Debian ARM instalado em um SheevaPlug com um HD externo espetado pela USB. Eis meu fstab

debian:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/mmcblk0p2 during installation
UUID=dec1a71f-48e1-4e01-8b72-862da9356ce8 / ext3 errors=remount-ro 0 1
# /boot was on /dev/mmcblk0p1 during installation
UUID=60cae7c2-3d68-4bec-a631-bd5f14c48db4 /boot ext2 defaults 0 2
# swap was on /dev/mmcblk0p5 during installation
UUID=3432dca6-c67b-454c-b9cc-c084c0b515a7 none swap sw 0 0
/dev/sda1 /mnt/fileserver ext3 auto,rw 0 0
/dev/sda2 /mnt/backup ext3 auto,rw 0 0
//192.168.0.237/case_master /mnt/master cifs auto,rw 0 0
//192.168.0.237/case_slave /mnt/slave cifs auto,rw 0 0

Porém quando dou o boot ele não consegue montar os sda1 e sda2. Executo o mount -a depois de logar e ai ele monta normalmente.

Segue o log do boot:

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.32-5-kirkwood (Debian 2.6.32-45) ([email protected]) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 Sun May 6 16:57:51 UTC 2012
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Marvell SheevaPlug Reference Board
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyS0,115200
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 256MB 256MB = 512MB total
[ 0.000000] Memory: 509824KB available (3516K code, 583K data, 124K init, 0K highmem)
[ 0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:114
[ 0.000000] Console: colour dummy device 80x30
[ 0.000136] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[ 0.240089] Security Framework initialized
[ 0.240109] SELinux: Disabled at boot.
[ 0.240136] Mount-cache hash table entries: 512
[ 0.240451] Initializing cgroup subsys ns
[ 0.240467] Initializing cgroup subsys cpuacct
[ 0.240477] Initializing cgroup subsys devices
[ 0.240487] Initializing cgroup subsys freezer
[ 0.240495] Initializing cgroup subsys net_cls
[ 0.240553] CPU: Testing write buffer coherency: ok
[ 0.241354] devtmpfs: initialized
[ 0.243051] regulator: core version 0.5
[ 0.243279] NET: Registered protocol family 16
[ 0.243813] Kirkwood: MV88F6281-A0, TCLK=200000000.
[ 0.243827] Feroceon L2: Enabling L2
[ 0.243861] Feroceon L2: Cache support initialised.
[ 0.245772] bio: create slab <bio-0> at 0
[ 0.246045] vgaarb: loaded
[ 0.246508] Switching to clocksource orion_clocksource
[ 0.250484] NET: Registered protocol family 2
[ 0.250722] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.251487] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.251841] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.252021] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.252030] TCP reno registered
[ 0.252179] NET: Registered protocol family 1
[ 0.252353] Unpacking initramfs...
[ 0.610996] Freeing initrd memory: 5348K
[ 0.611111] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.611359] audit: initializing netlink socket (disabled)
[ 0.611394] type=2000 audit(0.600:1): initialized
[ 0.617860] VFS: Disk quotas dquot_6.5.2
[ 0.618122] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.618217] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.618865] msgmni has been set to 1006
[ 0.620594] alg: No test for stdrng (krng)
[ 0.620714] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.620727] io scheduler noop registered
[ 0.620734] io scheduler anticipatory registered
[ 0.620741] io scheduler deadline registered
[ 0.620919] io scheduler cfq registered (default)
[ 0.627004] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.627474] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[ 0.946436] console [ttyS0] enabled
[ 0.950512] NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
[ 0.959027] Scanning device for bad blocks
[ 1.034194] Bad eraseblock 1916 at 0x00000ef80000
[ 1.038962] Bad eraseblock 1917 at 0x00000efa0000
[ 1.119506] Bad eraseblock 3963 at 0x00001ef60000
[ 1.124267] Bad eraseblock 3964 at 0x00001ef80000
[ 1.129038] Bad eraseblock 3965 at 0x00001efa0000
[ 1.133799] Bad eraseblock 3966 at 0x00001efc0000
[ 1.143313] Creating 3 MTD partitions on "orion_nand":
[ 1.148487] 0x000000000000-0x000000100000 : "u-boot"
[ 1.154035] 0x000000100000-0x000000500000 : "uImage"
[ 1.159508] 0x000000500000-0x000020000000 : "root"
[ 1.165735] mice: PS/2 mouse device common for all mice
[ 1.171256] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[ 1.177202] i2c /dev entries driver
[ 1.180899] cpuidle: using governor ladder
[ 1.185134] cpuidle: using governor menu
[ 1.189189] Registered led device: plug:green:health
[ 1.194225] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[ 1.200641] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[ 1.246578] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 1.286573] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 1.326573] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[ 1.366572] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[ 1.373248] TCP cubic registered
[ 1.376493] NET: Registered protocol family 17
[ 1.381302] registered taskstats version 1
[ 1.386096] rtc-mv rtc-mv: setting system clock to 2012-08-14 02:24:35 UTC (1344911075)
[ 1.394209] Initalizing network drop monitor service
[ 1.399269] Freeing init memory: 124K
Loading, please wait...
[ 1.486954] udev[44]: starting version 164
[ 1.787753] usbcore: registered new interface driver usbfs
[ 1.802450] usbcore: registered new interface driver hub
[ 1.815984] MV-643xx 10/100/1000 ethernet driver version 1.4
[ 1.821867] usbcore: registered new device driver usb
[ 1.841197] mv643xx_eth smi: probed
[ 1.844910] mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
[ 1.862361] net eth0: port 0 with MAC address 00:50:43:01Sorrisão9:6d
[ 1.868582] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.875196] orion-ehci orion-ehci.0: Marvell Orion EHCI
[ 1.883124] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 1.916559] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 1.929563] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 1.938447] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 1.944788] mmc0: new high speed SDHC card at address b368
[ 1.950406] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.957255] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.964508] usb usb1: Product: Marvell Orion EHCI
[ 1.969246] usb usb1: Manufacturer: Linux 2.6.32-5-kirkwood ehci_hcd
[ 1.975625] usb usb1: SerialNumber: orion-ehci.0
[ 1.994079] mmcblk0: mmc0:b368 SMI 7.42 GiB
[ 1.999178] mmcblk0:
[ 2.001937] usb usb1: configuration #1 chosen from 1 choice
[ 2.007866] p1 p2 p3 <
[ 2.010577] hub 1-0:1.0: USB hub found
[ 2.014596] p5 >
[ 2.017294] hub 1-0:1.0: 1 port detected
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[ 2.258395] kjournald starting. Commit interval 5 seconds
[ 2.263930] EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
[ 2.336612] usb 1-1: new high speed USB device using orion-ehci and address 2
INIT: version 2.88 booting[ 2.498328] usb 1-1: New USB device found, idVendor=152d, idProduct=2338
[ 2.505134] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[ 2.512322] usb 1-1: Product: USB to ATA/ATAPI Bridge
[ 2.517413] usb 1-1: Manufacturer: JMicron
[ 2.521526] usb 1-1: SerialNumber: 2222567E2784

[ 2.526489] usb 1-1: configuration #1 chosen from 1 choice
Using makefile-style concurrent boot in runlevel S.
Starting the hotplug events dispatcher: udevd[ 2.841619] udev[149]: starting version 164
.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...[ 3.370838] SCSI subsystem initialized
[ 3.412400] Initializing USB Mass Storage driver...
[ 3.423067] scsi0 : SCSI emulation for USB Mass Storage devices
[ 3.431651] usbcore: registered new interface driver usb-storage
[ 3.437737] USB Mass Storage support registered.
done.
Setting preliminary keymap...done.
Activating swap...[ 3.845335] Adding 380920k swap on /dev/mmcblk0p5. Priority:-1 extents:1 across:380920k SS
done.
Checking root file system...fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
/dev/mmcblk0p2: clean, 24378/447040 files, 212888/1787904 blocks
done.
[ 3.987507] EXT3 FS on mmcblk0p2, internal journal
Cleaning up ifupdown....
[ 4.158418] loop: module loaded
Loading kernel modules...done.
Setting up networking....
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
/dev/mmcblk0p1: clean, 19/124496 files, 30291/248832 blocks
done.
Mounting local filesystems...mount: special device /dev/sda1 does not exist
mount: special device /dev/sda2 does not exist
failed.
Activating swapfile swap...done.
Cleaning up temporary files....
Setting kernel variables ...done.
Configuring network interfaces...done.
Starting portmap daemon....
Starting NFS common utilities: statd.
Cleaning up temporary files....
Setting console screen modes.
cannot (un)set powersave mode
Skipping font and keymap setup (handled by console-setup).
Setting up console font and keymap...done.
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Starting NFS common utilities: statd.
Starting portmap daemon...Already running..
Starting enhanced syslogd: rsyslogd.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: cron.
Starting system message bus: dbus.
[ 6.992919] NET: Registered protocol family 10
[ 7.004839] ADDRCONF(NETDEV_UP): eth0: link is not ready
Starting Samba daemons: nmbd smbd.
Starting MTA:[ 7.248986] eth0: link up, 100 Mb/s, full duplex, flow control disabled
[ 7.255810] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Not starting internet superserver: no services enabled.
Starting OpenBSD Secure Shell server: sshd.
exim4.
[ 8.350191] Registering the dns_resolver key type
[ 8.354951] Slow work thread pool: Starting up
[ 8.360194] Slow work thread pool: Ready
[ 8.437667] scsi 0:0:0:0: Direct-Access ST350041 8AS PQ: 0 ANSI: 2 CCS
[ 8.541360] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[ 8.549856] sd 0:0:0:0: [sda] Write Protect is off
[ 8.554681] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 8.562476] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 8.568716] sda: sda1 sda2
[ 8.596223] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 8.602385] sd 0:0:0:0: [sda] Attached SCSI disk

Debian GNU/Linux 6.0 debian ttyS0

debian login:

Alguma idéia?
Encontrar todas as respostas deste usuário
Citar esta mensagem em uma resposta
15/08/2012, 00:19
Resposta: #2
RE: Problemas em montar HD durante o boot
É que no momento que o sistema lê o arquivo fstab, o dispositivo ainda não está pronto, olhe:
Código:
Mounting local filesystems...mount: special device /dev/sda1 does not exist

Em /scripts/ ou em algum outro lugar deve ser o lugar correto para montar esses dispositivos.
Dá uma lida no manual dele.

Abraço.

Lucas Saliés Brum
site | blog | telegram | medium | vk | twitter | github | .share
Visitar o website do usuário Encontrar todas as respostas deste usuário
Citar esta mensagem em uma resposta
17/08/2012, 23:27
Resposta: #3
RE: Problemas em montar HD durante o boot
Ele veio com o Ubuntu não com o debian.

Bem, tem como alterar a sequencia de leitura do fstab? Ou então a sequencia de reconhecimento do sda1? Ou então um workaround talvez se tivesse um "autoexec.bat" mantar esses dois nele..
Encontrar todas as respostas deste usuário
Citar esta mensagem em uma resposta
18/08/2012, 08:48
Resposta: #4
RE: Problemas em montar HD durante o boot
Para facilitar coloca o comando de montagem em /etc/rc.local setando para /media para o ícone aparecer na área de trabalho sempre que for montado.
Depois com mais calma, você sonda os scripts do sistema.
Encontrar todas as respostas deste usuário
Citar esta mensagem em uma resposta
Responder 


Ir ao Fórum:


Usuários visualizando este tópico: 1 Visitantes

Entre em Contato | Fórum Debian | Voltar ao Topo | Voltar ao Conteúdo | Modo Leve (Arquivo) | Feeds RSS