Próbuję stworzyć partycję a następnie sformatować ją do ext4 w celu utworzenia extroot-a... Mam pendrive 8 GB Patriota. Dysk jest wykrywany jako sda:
Dec 12 08:54:05 Gargoyle kern.info kernel: [84556.620000] usb 1-1: USB disconnect, device number 7
Dec 12 08:54:08 Gargoyle kern.info kernel: [84558.790000] usb 1-1: new high-speed USB device number 8 using ehci-platform
Dec 12 08:54:08 Gargoyle kern.info kernel: [84558.950000] scsi6 : usb-storage 1-1:1.0
Dec 12 08:54:08 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=? Product=Patriot_Memory Serial=07B2170157340A92
Dec 12 08:54:09 Gargoyle kern.notice kernel: [84559.980000] scsi 6:0:0:0: Direct-Access Patriot Memory PMAP PQ: 0 ANSI: 0 CCS
Dec 12 08:54:10 Gargoyle kern.notice kernel: [84561.080000] sd 6:0:0:0: [sda] 15646720 512-byte logical blocks: (8.01 GB/7.46 GiB)
Dec 12 08:54:10 Gargoyle kern.notice kernel: [84561.090000] sd 6:0:0:0: [sda] Write Protect is off
Dec 12 08:54:10 Gargoyle kern.debug kernel: [84561.090000] sd 6:0:0:0: [sda] Mode Sense: 23 00 00 00
Dec 12 08:54:10 Gargoyle kern.err kernel: [84561.100000] sd 6:0:0:0: [sda] No Caching mode page present
Dec 12 08:54:10 Gargoyle kern.err kernel: [84561.100000] sd 6:0:0:0: [sda] Assuming drive cache: write through
Dec 12 08:54:10 Gargoyle kern.err kernel: [84561.110000] sd 6:0:0:0: [sda] No Caching mode page present
Dec 12 08:54:10 Gargoyle kern.err kernel: [84561.120000] sd 6:0:0:0: [sda] Assuming drive cache: write through
Dec 12 08:54:10 Gargoyle kern.info kernel: [84561.150000] sda: sda1
Dec 12 08:54:10 Gargoyle kern.err kernel: [84561.160000] sd 6:0:0:0: [sda] No Caching mode page present
Dec 12 08:54:10 Gargoyle kern.err kernel: [84561.170000] sd 6:0:0:0: [sda] Assuming drive cache: write through
Dec 12 08:54:10 Gargoyle kern.notice kernel: [84561.170000] sd 6:0:0:0: [sda] Attached SCSI removable disk
Dec 12 08:54:10 Gargoyle kern.warn kernel: [84561.490000] head: sending ioctl 540d to a partition!
Dec 12 08:54:10 Gargoyle kern.warn kernel: [84561.490000] head: sending ioctl 540d to a partition!
Dec 12 08:54:11 Gargoyle kern.warn kernel: [84561.960000] disktype: sending ioctl 5305 to a partition!
Dec 12 08:54:11 Gargoyle kern.warn kernel: [84561.960000] disktype: sending ioctl 5305 to a partition!
Po wydaniu polecenia mount, dysk jest wykryty i zamontowany:
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
root on /tmp/root type tmpfs (rw,noatime,mode=755)
overlayfs:/tmp/root on /tmp/root type overlayfs (ro,noatime,lowerdir=/,upperdir=/tmp/root)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
/dev/sda1 on /tmp/usb_mount/BE3B-86A5 type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
Odmontowuję go:
root@Gargoyle:~# umount /dev/sda1
root@Gargoyle:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
root on /tmp/root type tmpfs (rw,noatime,mode=755)
overlayfs:/tmp/root on /tmp/root type overlayfs (ro,noatime,lowerdir=/,upperdir=/tmp/root)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
Gdy zaczynam tworzyć partycje, dostaję inny komunikat na wstępnie niż ten który pokazujesz Cezary bądź ten który można zaobserwować w postach safe0101:
root@Gargoyle:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.21.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help):
i zastanawia mnie ten komunikat mówiący, że zmiany zostaną zapisane tylko w pamięci... Zapewne coś robię nie tak, tylko co - bo już na tym etapie pendrive nie jest chyba wykrywany?
Tworzenie extroot-a zacząłem od etapu "Tworzenie partycji", czy muszę wcześniej coś wykonać doinstalować (np. block-mount którego nie mogę zainstalować z powodu braku miejsca)?
===========================================
WRT160NL v1 CUR01 with Gargoyle PL by obsy
TL-MR3420 v2 (MiFi) + E3372h-153 (nie hilink) = Play