Страница 1 из 1

mke2fs создание фс ext3

Добавлено: 23 ноя 2022, 19:14
ya
# mke2fs -j -m 1 /dev/sdb1
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
244203520 inodes, 488378638 blocks
4883786 blocks (1.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
14905 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
#

Re: e2fsck создание фс ext3

Добавлено: 29 янв 2023, 09:14
ya
root@deb8:~# fdisk /dev/sdb

Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/sdb: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x5215a4f0

Device Boot Start End Sectors Size Id Type
/dev/sdb2 2048 3907026943 3907024896 1,8T f W95 Ext'd (LBA)
/dev/sdb5 4096 3907026943 3907022848 1,8T 7 HPFS/NTFS/exFAT

Command (m for help): d
Partition number (2,5, default 5):

Partition 5 has been deleted.

Command (m for help): d
Selected partition 2
Partition 2 has been deleted.

Command (m for help): p
Disk /dev/sdb: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x5215a4f0

Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-3907029167, default 2048): 64
Value out of range.
First sector (2048-3907029167, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-3907029167, default 3907029167):

Created a new partition 1 of type 'Linux' and of size 1,8 TiB.

Command (m for help): p
Disk /dev/sdb: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x5215a4f0

Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 3907029167 3907027120 1,8T 83 Linux

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

root@deb8:~# mke2fs -j -m 1 /dev/sdb1
mke2fs 1.43.4 (31-Jan-2017)
Found a dos partition table in /dev/sdb1
Proceed anyway? (y,N) y
Creating filesystem with 488378390 4k blocks and 122101760 inodes
Filesystem UUID: 507e0913-3c6d-42c4-aa40-c792701229ac
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848

Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done

root@deb8:~#

Re: e2fsck создание фс ext3

Добавлено: 29 янв 2023, 09:23
ya
chown md:users -R /home/sv/sdb

chown gt:users -R /home/gt/ftp

Re: mke2fs создание фс ext3

Добавлено: 13 фев 2025, 12:16
ya
Удалит загрузочный сектор с диска

Код: Выделить всё

sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1