Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Забанен


Сообщения: 6158
Благодарности: 1300

Профиль | Цитировать


линукс (сгодится любой LiveCD), cfdisk, mkfs.ntfs (из комплекта ntfsprogs), всё.
UPD: ну вот, не поленился, изнасиловал флешку, см листинг:
Код: Выделить весь код
[vadim@ws-vj ~]$ sudo fdisk /dev/sdc

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): p

Disk /dev/sdc: 4016 MB, 4016046080 bytes
255 heads, 63 sectors/track, 488 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1         488     3919828+  a5  FreeBSD

Command (m for help): d
Selected partition 1

Command (m for help): p

Disk /dev/sdc: 4016 MB, 4016046080 bytes
255 heads, 63 sectors/track, 488 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-488, default 1): 1
Last cylinder, +cylinders or +size{K,M,G} (1-488, default 488): +2G

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (263-488, default 263): 
Using default value 263
Last cylinder, +cylinders or +size{K,M,G} (263-488, default 488): 
Using default value 488

Command (m for help): p

Disk /dev/sdc: 4016 MB, 4016046080 bytes
255 heads, 63 sectors/track, 488 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x83482689

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         262     2104483+  83  Linux
/dev/sdc2             263         488     1815345   83  Linux

Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): 7
Changed system type of partition 1 to 7 (HPFS/NTFS)

Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 7
Changed system type of partition 2 to 7 (HPFS/NTFS)

Command (m for help): p

Disk /dev/sdc: 4016 MB, 4016046080 bytes
255 heads, 63 sectors/track, 488 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x83482689

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         262     2104483+   7  HPFS/NTFS
/dev/sdc2             263         488     1815345    7  HPFS/NTFS

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[vadim@ws-vj ~]$ ls /dev/sdc*
/dev/sdc  /dev/sdc1  /dev/sdc2
[vadim@ws-vj ~]$ sudo mkfs.ntfs /dev/sdc1
Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes: 100% - Done.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
[vadim@ws-vj ~]$ sudo mkfs.ntfs /dev/sdc2
Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes: 100% - Done.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
[vadim@ws-vj ~]$ sudo mkdir /mnt/flash1
[vadim@ws-vj ~]$ sudo mount /dev/sdc1 /mnt/flash1/
[vadim@ws-vj ~]$ sudo mkdir /mnt/flash2
[vadim@ws-vj ~]$ sudo mount /dev/sdc2 /mnt/flash2/
[vadim@ws-vj ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3              18G   14G  3.5G  80% /
none                 1013M  128K 1013M   1% /dev
none                 1013M     0 1013M   0% /dev/shm
/dev/sda4              58G   46G   12G  80% /home
/dev/sda1              38M   11M   26M  29% /boot
/dev/sdc1             2.1G   11M  2.0G   1% /mnt/flash1
/dev/sdc2             1.8G  9.4M  1.8G   1% /mnt/flash2
А возня в самом деле бессмысленная, не потому, что это невозможно (proof of concept я предоставил), а просто это банально не нужно. Купите ещё флешку, всего-то делов.

Последний раз редактировалось vadblm, 12-01-2010 в 16:43.


Отправлено: 15:45, 12-01-2010 | #12