Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества? Помогите нам с документацией!
0 Пользователей и 1 Гость просматривают эту тему.
Вводите в parted "unit s"и восстанавливайте таблицу по секторам.
mkpart primary ext4 460000 480000
ubuntu@ubuntu:~$ sudo partedGNU Parted 2.3Using /dev/sdaWelcome to GNU Parted! Type 'help' to view a list of commands.(parted) mkpar align-check TYPE N check partition N for TYPE(min|opt) alignment check NUMBER do a simple check on the file system cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER copy file system to another partition help [COMMAND] print general help, or help on COMMAND mklabel,mktable LABEL-TYPE create a new disklabel (partition table) mkfs NUMBER FS-TYPE make a FS-TYPE file system on partition NUMBER mkpart PART-TYPE [FS-TYPE] START END make a partition mkpartfs PART-TYPE FS-TYPE START END make a partition with a file system resizepart NUMBER END resize partition NUMBER move NUMBER START END move partition NUMBER name NUMBER NAME name partition NUMBER as NAME print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition quit exit program rescue START END rescue a lost partition near START and END resize NUMBER START END resize partition NUMBER and its file system rm NUMBER delete partition NUMBER select DEVICE choose the device to edit set NUMBER FLAG STATE change the FLAG on partition NUMBER toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER unit UNIT set the default unit to UNIT version display the version number and copyright information of GNU Parted(parted)
(parted) mkpart Partition type? primary/logical? logical File system type? [ext2]? ext4Start? start Error: Invalid number. (parted)
ubuntu@ubuntu:~$ sudo parted /dev/sdaGNU Parted 2.3Using /dev/sdaWelcome to GNU Parted! Type 'help' to view a list of commands.(parted) unit s (parted) print Model: ATA ST500LM012 HN-M5 (scsi)Disk /dev/sda: 976773168sSector size (logical/physical): 512B/4096BPartition Table: msdosNumber Start End Size Type File system Flags 1 2048s 623775743s 623773696s primary ntfs boot 2 623775744s 913795071s 290019328s primary ntfs 3 913797118s 976771071s 62973954s extended 5 937234432s 976771071s 39536640s logical ext4(parted) mkpart Partition type? primary/logical? extended parted: invalid token: extendedPartition type? primary/logical? logical File system type? [ext2]? ext4 Start? 913797120 End? 937232383 (parted) print Model: ATA ST500LM012 HN-M5 (scsi)Disk /dev/sda: 976773168sSector size (logical/physical): 512B/4096BPartition Table: msdosNumber Start End Size Type File system Flags 1 2048s 623775743s 623773696s primary ntfs boot 2 623775744s 913795071s 290019328s primary ntfs 3 913797118s 976771071s 62973954s extended 6 913797120s 937232383s 23435264s logical ext4 5 937234432s 976771071s 39536640s logical ext4(parted)
ubuntu@ubuntu:~$ sudo mount /dev/sda6 /mntubuntu@ubuntu:~$ grub-install --recheck --no-floppy /dev/sda6Installing for i386-pc platform.grub-install: error: cannot delete `/boot/grub/i386-pc/terminal.lst': Permission denied.ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt /dev/sda6Installing for i386-pc platform.grub-install: warning: File system `ext2' doesn't support embedding.grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..grub-install: error: will not proceed with blocklists.ubuntu@ubuntu:~$
А что, нужно монтировать sda6 и на него же загрузчик ставить?
ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/devubuntu@ubuntu:~$ sudo mount --bind /proc /mnt/procubuntu@ubuntu:~$ sudo mount --bind /sys /mnt/sysubuntu@ubuntu:~$ sudo chroot /mntroot@ubuntu:/# grub-install /dev/sda6Installing for i386-pc platform.grub-install: warning: File system `ext2' doesn't support embedding.grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..grub-install: error: will not proceed with blocklists.root@ubuntu:/# grub-install --recheck --no-floppy /dev/sda6Installing for i386-pc platform.grub-install: warning: File system `ext2' doesn't support embedding.grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..grub-install: error: will not proceed with blocklists.root@ubuntu:/# grub-install --recheck /dev/sda6Installing for i386-pc platform.grub-install: warning: File system `ext2' doesn't support embedding.grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..grub-install: error: will not proceed with blocklists.
Страница сгенерирована за 0.02 секунд. Запросов: 21.