Linux - parted


Platte auswählen
select /dev/hda1


Auflisten
print


Widerherstellen einer gelöschten Partition (Angaben in kB)
rescue ANFANG ENDE








Disk /dev/hdb: 341MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      28.2kB  5407kB  5379kB  primary  ext3         boot
 2      5407kB  50.7MB  45.3MB  primary
 3      50.7MB  341MB   291MB   primary  ext3

(parted) rm 1
(parted) rm 2
(parted) rm 3
(parted)





(parted) mkpart
Partition type?  primary/extended? p
File system type?  [ext2]? ext3
Start? 0
End? 320MB
(parted) print

Disk /dev/hdb: 341MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size   Type     File system  Flags
 1      28.2kB  320MB  320MB  primary  ext3


(parted) mkpart
Partition type?  primary/extended? p
File system type?  [ext2]? linux-swap
Start? 320MB
End? 341MB
(parted) print

Disk /dev/hdb: 341MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size    Type     File system  Flags
 1      28.2kB  320MB  320MB   primary  ext3
 2      320MB   341MB  21.3MB  primary




(parted) mkfs 2 linux-swap
(parted) mkfs 1 ext3
(parted) print

Disk /dev/hdb: 341MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 28.2kB 320MB 320MB primary ext3 boot
2 320MB 341MB 21.3MB primary linux-swap



Bootflag
 set 1 boot on



Siehe auch
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki