Problem sa particioniranjem: fdisk
Postano: 07 sij 2011, 03:14
Malo sam se igrao sa particioniranjem preko fdiska u terminalu prateći upute odavde: http://tldp.org/HOWTO/Partition/fdisk_partitioning.html.
Koristio sam usb stick od 4 GB i naišao na problem prilikom montiranja particije nakon particioniranja. Preko komande sudo fdisk -l saznao sam da je stick označen kao /dev/sdb.
Postupak:
Pokrenuo sam fdisk u terminalu komandom sudo fdisk /dev/sdb
Na sticku su već bile dvije particije - /dev/sdb1 označen kao Test i /dev/sdb2 označen kao Test1, koje sam obrisao pomoću komande d prateći upute na ekranu:
Napravio dvije nove particije, prvu od 2 GB a drugu od ostatka:
Kako su obje u linux datotečnom sistemu (pretpostavljam ext3 ili ext4), odlučio sam prvu pretvoriti u fat32 dok drugu ostavit kako je:
Pomoću komande w zapisana je particijska tabela i izašao sam iz programa:
Pomoću sudo fdisk -l vidim da su particije kreirane:
Izvadio sam i ponovo ubacio stick i prva particija (ona sa FAT32 Fs-om) se automatski montira mada ali i dalje ima istu oznaku kao i prije nego što sam pokrenuo fdisk - Test, dok druga particija (ona sa ext3 fs-om) se ne očivata pod Nautilusom (slika) dok je vidljiva kad pokrenem sudo fdisk -l u terminalu:
Nisam siguran dali sam dobro odradio postupak, ili možda trebam dodatno formatirati particije sa mkfs alatom? Iako znam da sve ovo mogu na jednostavnij način napraviti sa recimo Gparted-om, želim naučiti što više raditi u terminalu.
Sorry na dugom postu
Koristio sam usb stick od 4 GB i naišao na problem prilikom montiranja particije nakon particioniranja. Preko komande sudo fdisk -l saznao sam da je stick označen kao /dev/sdb.
Postupak:
Pokrenuo sam fdisk u terminalu komandom sudo fdisk /dev/sdb
Na sticku su već bile dvije particije - /dev/sdb1 označen kao Test i /dev/sdb2 označen kao Test1, koje sam obrisao pomoću komande d prateći upute na ekranu:
Kod: Označi sve
Command (m for help): p
Disk /dev/sdb: 4051 MB, 4051697664 bytes
255 heads, 63 sectors/track, 492 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009e8ed
Device Boot Start End Blocks Id System
/dev/sdb1 1 334 2682823+ b W95 FAT32
/dev/sdb2 335 492 1269135 b W95 FAT32
Command (m for help): d
Partition number (1-4): 1
Command (m for help): d
Selected partition 2
Command (m for help): p
Disk /dev/sdb: 4051 MB, 4051697664 bytes
255 heads, 63 sectors/track, 492 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009e8ed
Device Boot Start End Blocks Id SystemKod: Označi sve
Command (m for help): p
Disk /dev/sdb: 4051 MB, 4051697664 bytes
255 heads, 63 sectors/track, 492 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009e8ed
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-492, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-492, default 492): +2048M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (263-492, default 263):
Using default value 263
Last cylinder, +cylinders or +size{K,M,G} (263-492, default 492):
Using default value 492
Command (m for help): p
Disk /dev/sdb: 4051 MB, 4051697664 bytes
255 heads, 63 sectors/track, 492 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009e8ed
Device Boot Start End Blocks Id System
/dev/sdb1 1 262 2104483+ 83 Linux
/dev/sdb2 263 492 1847475 83 LinuxKod: Označi sve
Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): b
Changed system type of partition 1 to b (W95 FAT32)
Command (m for help): p
Disk /dev/sdb: 4051 MB, 4051697664 bytes
255 heads, 63 sectors/track, 492 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009e8ed
Device Boot Start End Blocks Id System
/dev/sdb1 1 262 2104483+ b W95 FAT32
/dev/sdb2 263 492 1847475 83 LinuxKod: Označi sve
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.Kod: Označi sve
aleksandar@aleksandar-desktop:~$ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1c8b1c8b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 2611 20869120 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 2611 4479 14999552 83 Linux
/dev/sda4 4479 9730 42177536 f W95 Ext'd (LBA)
Partition 4 does not end on cylinder boundary.
/dev/sda5 4479 9730 42176512 7 HPFS/NTFS
Disk /dev/sdb: 4051 MB, 4051697664 bytes
255 heads, 63 sectors/track, 492 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009e8ed
Device Boot Start End Blocks Id System
/dev/sdb1 1 262 2104483+ b W95 FAT32
/dev/sdb2 263 492 1847475 83 LinuxKod: Označi sve
aleksandar@aleksandar-desktop:~$ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1c8b1c8b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 2611 20869120 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 2611 4479 14999552 83 Linux
/dev/sda4 4479 9730 42177536 f W95 Ext'd (LBA)
Partition 4 does not end on cylinder boundary.
/dev/sda5 4479 9730 42176512 7 HPFS/NTFS
Disk /dev/sdb: 4051 MB, 4051697664 bytes
255 heads, 63 sectors/track, 492 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009e8ed
Device Boot Start End Blocks Id System
/dev/sdb1 1 262 2104483+ b W95 FAT32
/dev/sdb2 263 492 1847475 83 Linux
Sorry na dugom postu