Temat: nie wiem jak zamontowac partycje swap na pendrive system jej nie widzi
witam otóż tak jak w temacie wydaje mi się ze wszystko zrobiłem jak trzeba poniżej parę komend:
root@OpenWrt:~# fdisk -l
Disk /dev/scsi/host0/bus0/target0/lun0/disc: 4063 MB, 4063232000 bytes
5 heads, 32 sectors/track, 49600 cylinders
Units = cylinders of 160 * 512 = 81920 bytes
Disk identifier: 0x000e2bd6
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 6251 500064 82 Linux swap / Solaris
/dev/scsi/host0/bus0/target0/lun0/part2 6252 18752 1000080 83 Linux
/dev/scsi/host0/bus0/target0/lun0/part3 18753 49600 2467840 83 Linux
root@OpenWrt:~#root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 1.6M 1.6M 0 100% /
/dev/root 1.6M 1.6M 0 100% /rom
tmpfs 14.9M 48.0k 14.9M 0% /tmp
/dev/mtdblock/4 5.7M 2.3M 3.4M 41% /jffs
mini_fo:/jffs 1.6M 1.6M 0 100% /
/dev/scsi/host0/bus0/target0/lun0/part3
2.3G 73.0M 2.1G 3% /hdd
/dev/scsi/host0/bus0/target0/lun0/part2
968.9M 17.3M 902.7M 2% /opt
root@OpenWrt:~#root@OpenWrt:~# free
total used free shared buffers
Mem: 30552 14432 16120 0 1352
Swap: 0 0 0
Total: 30552 14432 16120
root@OpenWrt:~#root@OpenWrt:~# cat /etc/fstab
# WARNING: this is an auto generated file, please use uci to set static filesystems
/dev/sda1 /home ext3 noauto,rw,sync 0 0
/dev/scsi/host0/bus0/target0/lun0/part3 /hdd ext3 rw,noatime 0 0
/dev/scsi/host0/bus0/target0/lun0/part2 /opt ext3 rw,noatime 0 0
root@OpenWrt:~#root@OpenWrt:~# cat /etc/config/fstab
config mount
option target /home
option device /dev/sda1
option fstype ext3
option options rw,sync
option enabled 0
config swap
option device /dev/sda2
option enabled 0
config swap
option device /dev/scsi/host0/bus0/target0/lun0/part1
option enabled 0
config mount
option target /hdd
option device /dev/scsi/host0/bus0/target0/lun0/part3
option fstype ext3
option options rw,noatime
option enabled 1
config mount
option target /opt
option device /dev/scsi/host0/bus0/target0/lun0/part2
option fstype ext3
option options rw,noatime
option enabled 1
root@OpenWrt:~#Oto myślę ze wszystkie potrzebne dane skopiowałem. Dodam jeszcze ze mam wszystkie moduły do obsługi usb dobrze zainstalowane.
2. Prośba jeszcze jak zrobić montowanie tych partycji z automatu podczas restartu routera?
z góry dzieki ![]()