- Okosóra és okoskiegészítő topik
- Samsung Galaxy S24 Ultra - ha működik, ne változtass!
- Honor Magic V5 - méret a kamera mögött
- Samsung Galaxy S23 Ultra - non plus ultra
- Samsung Galaxy S23 és S23+ - ami belül van, az számít igazán
- Ne felejtsd el a páncélt lemeríteni!
- Samsung Galaxy A52s 5G - jó S-tehetség
- Egy óra, két rendszer
- Megfizethető lett a Samsung új AI fülese
- Motorola G86 - majdnem Edge
Új hozzászólás Aktív témák
-
CPT.Pirk
Jómunkásember
Ez előzőleg linkelt script ezen részében találtok valami hibát?
echo "This script can initialize the destination disk with a partition"
echo "structure copied from the currently booted filesytem and then resize"
echo "partition 2 (the root filesystem) to use all space on the SD card."
echo -n "Do you want to initialize the destination /dev/$DST_DISK? (yes/no): "
read resp
if [ "$resp" = "y" ] || [ "$resp" = "yes" ]
then
# Image onto the destination disk a beginning fragment of the
# running SD card file structure that spans at least more than
# the start of partition 2.
#
# Calculate the start of partition 2 in MB for the dd.
PART2_START=$(parted /dev/mmcblk0 -ms unit MB p | grep "^2" \
| cut -f 2 -d: | sed s/MB// | cut -f 1 -d.)
# and add some slop
DD_COUNT=`expr $PART2_START + 8`
echo ""
echo "Imaging the partition structure, copying $DD_COUNT megabytes..."
dd if=/dev/mmcblk0 of=/dev/$DST_DISK bs=1M count=$DD_COUNT
# But, though Partion 1 is now imaged, partition 2 is incomplete and
# maybe the wrong size for the destination SD card. So fdisk it to
# make it fill the rest of the disk and mkfs it to clean it out.
#
echo "Sizing partition 2 (root partition) to use all SD card space..."
expand_rootfs
mkfs.ext4 $DST_ROOT_PARTITION > /dev/null
echo ""
echo "/dev/$DST_DISK is initialized and resized. Its partitions are:"
# fdisk -l /dev/$DST_DISK | grep $DST_DISK
parted /dev/$DST_DISK unit MB p \
| sed "/^Model/d ; /^Sector/d"
SRC_ROOT_VOL_NAME=`e2label /dev/mmcblk0p2`
echo ""
echo "Your booted /dev/mmcblk0p2 rootfs existing label: $SRC_ROOT_VOL_NAME"
echo -n "You may enter a label for the destination rootfs $DST_ROOT_PARTITION: "
read resp
if [ "$resp" != "" ]
then
e2label $DST_ROOT_PARTITION $resp
fi
else
echo -e "Aborting\n"
exit 0
fi
fiLényegében az van, hogy az első FAT partíció és annak a tartalma létrejön, felmásolódik, de mikor a második partíciót kellene létrehozni, akkor az fdisk közli, hogy nem tud hozzáférni a /dev/sda -hoz (ez az sd kártya), valamint az mkfs is közli, hogy nem tudja megcsinálni.
szerk: 199. sortól a scriptben.
Új hozzászólás Aktív témák
- LordAthis: Ismét egy "Idióta" A.I. Projekt, hogy meglovagolja az aktuális trendeket...
- Fogyjunk le!
- 3D nyomtatás
- Okosóra és okoskiegészítő topik
- A lemondást javasolja az Intel vezetőjének Donald Trump
- One otthoni szolgáltatások (TV, internet, telefon)
- Autós topik látogatók beszélgetős, offolós topikja
- PlayStation 5
- S.T.A.L.K.E.R. 2: Heart of Chornobyl
- Ubiquiti hálózati eszközök
- További aktív témák...
- PC Game Pass előfizetés
- Számlás!Steam,EA,Epic és egyébb játékok Pc-re vagy XBox!
- Eredeti Microsoft termékek - MEGA Akciók! Windows, Office Pro Plus, Project Pro, Visio Pro stb.
- Kaspersky, BitDefender, Avast és egyéb vírusírtó licencek a legolcsóbban, egyenesen a gyártóktól!
- ROBUX ÁRON ALUL - VÁSÁROLJ ROBLOX ROBUXOT MÉG MA, ELKÉPESZTŐ KEDVEZMÉNNYEL (Bármilyen platformra)
- Microsoft Surface Laptop 5 13.5" i5-1245U 16GB 256GB 1év garancia
- Telefon felvásárlás!! iPhone 11/iPhone 11 Pro/iPhone 11 Pro Max
- AKCIÓ! Intel Core i9 14900K 24 mag 32 szál processzor garanciával hibátlan működéssel
- Xiaomi Redmi 9T 64GB Kártyafüggetlen 1 év Garanciával
- Akció! Apple MacBook Pro 16 M4 Pro - M4 Pro 24GB 512GB SSD garanciával hibátlan működéssel
Állásajánlatok
Cég: FOTC
Város: Budapest