Hirdetés
- Okosóra és okoskiegészítő topik
- iPhone topik
- Motorola Edge 60 Fusion - nem csak a forma időtálló
- Hivatalos a OnePlus 13 startdátuma
- Samsung Galaxy S23 Ultra - non plus ultra
- Külföldi prepaid SIM-ek itthon
- One mobilszolgáltatások
- Azonnali mobilos kérdések órája
- Poco F7 – bajnokesélyes
- Motorola Edge 50 Neo - az egyensúly gyengesége
Ú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
- Soundbar, soundplate, hangprojektor
- AliExpress tapasztalatok
- LEGO klub
- Megkérdeztük az AI-t: milyen érzés, amikor megreguláznak?
- EAFC 26
- Kormányok / autós szimulátorok topikja
- exHWSW - Értünk mindenhez IS
- Kerékpárosok, bringások ide!
- Okosóra és okoskiegészítő topik
- PlayStation 5
- További aktív témák...
- Game Pass Ultimate előfizetések 1 - 36 hónapig azonnali kézbesítéssel a LEGOLCSÓBBAN! AKCIÓ!
- Játékkulcsok ! : PC Steam, EA App, Ubisoft, Windows és egyéb játékok
- Antivírus szoftverek, VPN
- Windows 10 11 Pro Office 19 21 Pro Plus Retail kulcs 1 PC Mac AKCIÓ! Automatikus 0-24
- MS SQL Server 2016, 2017, 2019
- Nintendo Switch Dock Set /// Számla + Garancia
- Telefon felvásárlás!! Samsung Galaxy S24/Samsung Galaxy S24+/Samsung Galaxy S24 Ultra
- Apple iPhone 12 Pro 256GB, Kártyafüggetlen, 1 Év Garanciával
- Új Asus Vivobook S16 Flip 2in1 WUXGA X360 Touch i9-13900H 14mag 16GB 1TB SSD Intel Iris XE Garancia
- 14" Dell Latitude laptopok: 5400, 5480, 5490, 7480, E6410, E6440, E5450 / SZÁMLA + GARANCIA
Állásajánlatok
Cég: Central PC számítógép és laptop szerviz - Pécs
Város: Pécs
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest


