SaveText.Ru

lab2linux
  1. fdisk -l
  2. fdisk
  3. n
  4. p
  5. 1
  6. [default]
  7. +500M
  8. w
  9. [reboot]
  10.  
  11.  
  12.  
  13. mkdir /newpart
  14. partprobe
  15. mkfs.ext3 -b 1024 /dev/sda3
  16. fsck /dev/sda3
  17.  
  18.  
  19.  
  20.  
  21. dumpe2fs -h /dev/sda3
  22.  
  23.  
  24.  
  25. tune2fs -C 2 -i 2m /dev/sda3
  26.  
  27.  
  28.  
  29. mount /dev/sda3 /mnt/newdisk
  30.  
  31.  
  32.  
  33. ln -s /mnt/newdisk/linktonewdisk
  34.  
  35.  
  36.  
  37. mkdir anyname
  38.  
  39.  
  40.  
  41. blkid /dev/sda3
  42. nano /etc/sda3
  43.  
  44.  
  45. ->/etc/fstab ->UUID=06e898fc-4725-45bb-bf2a-96377001f7c7 /mnt/newdisk   ext3 noatime,noexec 0 0
  46.  
  47.  
  48.  
  49. fdisk /dev/sda
  50. d
  51. 3
  52. n
  53. p
  54. 3
  55. [enter, so it starts with the same block (cylinder)]
  56. +1G
  57. w
  58. [reboot]
  59.  
  60.  
  61.  
  62.  
  63. e2fsck /dev/sda3
  64. resize2fs /dev/sda3
  65.  
  66.  
  67.  
  68. cd /mnt
  69. mkdir share
  70. mount.cifs //rain/tmp /mnt/share
  71.  
  72. ->/etc/fstab ->UUID=6a60524d-061d-454a-bfd1-38989910eccd /mnt/share     ext3 ro 0 0

Share with your friends:

Print