戻る

sed -n 's....

(USB chroot) root:/etc# sed -n 's/64766262-0ca8-4d8b-9b93-8b4847a227b3/406290ed-c68c-433b-9d1f-30e3542eaead/p' fstab 
### /dev/sdh5 OR /dev/sdb5 UUID="406290ed-c68c-433b-9d1f-30e3542eaead
UUID=406290ed-c68c-433b-9d1f-30e3542eaead     /            ext3    defaults     
(USB chroot) root:/etc# sed -e 's/64766262-0ca8-4d8b-9b93-8b4847a227b3/406290ed-c68c-433b-9d1f-30e3542eaead/' fstab >qqq
(USB chroot) root:/etc# mv qqq fstab 
(USB chroot) root:/etc# sed -n 's/874f5f05-7e62-4cea-8347-26e992688cdc/4ab50caa-25eb-4a5b-bd6c-794e52cc2cdc/p' fstab 
UUID=4ab50caa-25eb-4a5b-bd6c-794e52cc2cdc     swap         swap     pri=1               0     0
(USB chroot) root:/etc# sed -e 's/874f5f05-7e62-4cea-8347-26e992688cdc/4ab50caa-25eb-4a5b-bd6c-794e52cc2cdc/' fstab >qqq
(USB chroot) root:/etc# mv qqq fstab 
(USB chroot) root:/etc# cat fstab 
# Begin /etc/fstab

# file system  mount-point  type     options             dump  fsck
#                                                              order

### /dev/sdh5 OR /dev/sdb5 UUID="406290ed-c68c-433b-9d1f-30e3542eaead
UUID=406290ed-c68c-433b-9d1f-30e3542eaead     /            ext3    defaults            1     1
UUID=4ab50caa-25eb-4a5b-bd6c-794e52cc2cdc     swap         swap     pri=1               0     0
proc           /proc        proc     nosuid,noexec,nodev 0     0
sysfs          /sys         sysfs    nosuid,noexec,nodev 0     0
devpts         /dev/pts     devpts   gid=5,mode=620      0     0
tmpfs          /run         tmpfs    defaults            0     0
devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0

# End /etc/fstab

 ” #  ”の 行が あまりにも 変なので 変更します。

(USB chroot) root:/etc# vi fstab 
(USB chroot) root:/etc# cat fstab 
# Begin /etc/fstab

# file system  mount-point  type     options             dump  fsck
#                                                              order

###  USB First Partition sdX1 UUID="406290ed-c68c-433b-9d1f-30e3542eaead
UUID=406290ed-c68c-433b-9d1f-30e3542eaead     /            ext3    defaults            1     1
UUID=4ab50caa-25eb-4a5b-bd6c-794e52cc2cdc     swap         swap     pri=1               0     0
proc           /proc        proc     nosuid,noexec,nodev 0     0
sysfs          /sys         sysfs    nosuid,noexec,nodev 0     0
devpts         /dev/pts     devpts   gid=5,mode=620      0     0
tmpfs          /run         tmpfs    defaults            0     0
devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0

# End /etc/fstab

にゃんたろう 拝!

2020年 5月 31日 日曜日 23:15:51 JST 作成


戻る

Since 2006.-2020.--Copyright © nyantarou All Rights Reserved.