Linux: Cum fac...?

Exista vreo modalitate de face linux-ul sa booteze pe un laptop, X61 Tablet in cazul meu, de pe alt device decat stie BIOS-ul sa booteze? Spre exemplu, de pe un card SD?
Sa reformulez: Stiu ca exista loadlin cu care pot boota linux de pe un device accesibil in DOS. Exista ceva similar pentru bootat linux din WinXP, si fara sa corup partitiile unde are XP fisiere deschise?
 
Am un Slackware. Folosesc fstab pentru mount comod, gen "mount /mnt/usb0".
Vreau sa am un stick cu btrfs si compresie. Daca modific fstab-ul sa adaug optiunile de compresie, mount esueaza la celelalte stick-uri care nu-s btrfs. Mount manual cu toate optiunile iese din discutie. Ce alte solutii am?
 
Montezi după UUID. ls -l /dev/disk/by-uuid sau blkid ca să obții ID-ul. În fstab pui în loc de /mnt/usb0 UUID= ce UUID are și toate opțiunile tale.

Se poate și după label, la nevoie (e2label + LABEL=)
 
Ia un stick mai mare pentru ca să nu ai nevoie de compresie.

Întrebarea mai bună ar fi de ce folosești btrfs pentru un disc amovibil.

Meanwhile gugl zice în primele rezultate că:
USB Automount

  1. Connect the disk and let your automounter mount the filesystem
  2. Use lsblk -o UUID,MOUNTPOINT to find the UUID of the block device the filesystem is on, e.g. 6e642696-3cb4-4d4e-86a6-2fae2b9295cc
  3. Add a line to your /etc/fstab referencing the UUID and specifying the additional mount option:

    UUID=6e642696-3cb4-4d4e-86a6-2fae2b9295cc /media/user/backupdrive btrfs noauto,subvol=/,compress=zstd

  4. Unmount and re-mount the drive and check that the options were set using mount
 
Crap! S-a corupt BTRFS-ul si utilitarul de reparat nu reuseste sa-l repare. Trebuie reformatat. Cu ocazia asta vreau sa fac mutari.
SSD-ul e mic si partitia de linux nu-mi ajunge. Initial bootam de pe ea si aveam directoarele mai putin importate, gen /usr/src/linux pe stick-ul USB, dar tot nu-mi ajunge spatiul pe SSD.
M-am gandit sa mut root-ul pe un card SD ca sa nu mai existe riscul sa se deconteze stick-ul cand e atins. Am disponibil un card de 32GB. Partitia de pe SSD o tin ca /boot, ca BIOS-ul nu stie sa booteze de pe card.

Ce altceva pot folosi in loc de BTRFS pentru SD? Vreau ceva cu compresie, ca SD-ul e lent.
JFFS2?

PS: BTW, stick-ul nu s-a corupt ca a fost deconectat. Am avut mare grija. FS-ul e buggy.
 
Iei un SD mai bun și faci RAID1 cu BTRFS pe același SD. Și vorba din bătrâni, always have backups.
 
tty de la un router prin serial. htop si mc apar ca in imagine. Cum le conving sa se insire pe tot ecranul?
serial tty.pngserial tty mc.png
 
- Faci ecranul full screen si inainte de conectare rulezi stty -a
- notezi numarul de rows/columns
- Dupa conectare rulezi stty rows <rows> cols <cols>
 
Linux pe router, firmware oficial Asus. Vad in top:

Mem: 47072K used, 208820K free, 0K shrd, 288K buff, 6320K cached
CPU: 0% usr 0% sys 0% nic 100% idle 0% io 0% irq 0% sirq
Load average: 1.22 1.14 1.14 2/67 2164

Cum poate fi load average atat de mare, dar CPU 0% peste tot?!
 
E probabil un proces înțepenit în ceva. Flash? USB stick? SMB/NFS? Toate-s "I/O".

ps -aux | grep D (unde D e în coloana state, mi-e lene să scriu corect :biggrin:) ar putea să-ți dea mai multe detalii.
 
Code:
Marius95@RT-N18U:/tmp/home/root# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:5473            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:18017           0.0.0.0:*               LISTEN
tcp        2      0 0.0.0.0:3394            0.0.0.0:*               LISTEN
tcp        0      0 router.asus.com:printer 0.0.0.0:*               LISTEN
tcp        0      0 localhost.localdomain:10443 0.0.0.0:*               LISTEN
tcp        0      0 router.asus.com:10443   0.0.0.0:*               LISTEN
tcp        0      0 router.asus.com:laserjet 0.0.0.0:*               LISTEN
tcp        0      0 localhost.localdomain:www 0.0.0.0:*               LISTEN
tcp        0      0 localhost.localdomain:domain 0.0.0.0:*               LISTEN
tcp        0      0 router.asus.com:domain  0.0.0.0:*               LISTEN
tcp        0      0 router.asus.com:telnet  0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:1723            0.0.0.0:*               LISTEN
tcp        0      0 router.asus.com:3838    0.0.0.0:*               LISTEN
tcp        0      0 router.asus.com:telnet  172.27.143.2:4111       ESTABLISHED
udp        0      0 0.0.0.0:9999            0.0.0.0:*
udp        0      0 0.0.0.0:42000           0.0.0.0:*
udp        0      0 localhost.localdomain:42032 0.0.0.0:*
udp        0      0 localhost.localdomain:domain 0.0.0.0:*
udp        0      0 router.asus.com:domain  0.0.0.0:*
udp        0      0 0.0.0.0:bootps          0.0.0.0:*
udp        0      0 0.0.0.0:5474            0.0.0.0:*
udp        0      0 0.0.0.0:18018           0.0.0.0:*
udp        0      0 0.0.0.0:38000           0.0.0.0:*
udp        0      0 0.0.0.0:59000           0.0.0.0:*
udp        0      0 localhost.localdomain:38032 0.0.0.0:*
udp        0      0 localhost.localdomain:59032 0.0.0.0:*
udp        0      0 0.0.0.0:56782           0.0.0.0:*
udp        0      0 0.0.0.0:5353            0.0.0.0:*
udp        0      0 0.0.0.0:hostmon         0.0.0.0:*
udp        0      0 0.0.0.0:43000           0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ACC ]     STREAM     LISTENING        767 /var/run/protect_srv_socket
unix  2      [ ACC ]     STREAM     LISTENING       1545 /var/run/avahi-daemon/socket
unix  10     [ ]         DGRAM                       351 /dev/log
unix  2      [ ]         DGRAM                      1522
unix  2      [ ]         DGRAM                      1506
unix  2      [ ]         DGRAM                      1082
unix  2      [ ]         DGRAM                      1023
unix  2      [ ]         DGRAM                      1022
unix  2      [ ]         DGRAM                       866
unix  2      [ ]         DGRAM                       851
unix  2      [ ]         DGRAM                       356
Marius95@RT-N18U:/tmp/home/root#
 
Back
Top