最後mount usb-drive 到個mount point到:
4. Create mount point------~#mkdir ~/usb-drive; chmod 777 ~/usb-drive
5. Mount device-----
a. 如果係舊式 /dev 就要試:
mount -t vfat /dev/sda0 ~/usb-drive or
mount -t vfat /dev/sda1 ~/usb-drive or
mount -t vfat /dev/sdb0 ~/usb-drive or
mount -t vfat /dev/sda1 ~/usb-drive
b. 如果係新式 devfs 係/dev directory 會多o左sda 或sdb 再 cd 入去睇o下係 0 or 1 然後
mount -t vfat /dev/sdx0 ~/usb-drive or
mount -t vfat /dev/sdx1 ~/usb-drive作者: Stephen@RC 時間: 2005-8-16 10:04:23
thanks ..
i want to install redhat9 on a usb harddisk using the installer.
However it cannot detect the usb harddisk so that i cant intall it on the right hd .
any idea ? thanks作者: 貓貓仔 貓貓女 時間: 2005-8-16 15:20:28
最後息機 拆o左local harddisk 插usb-harddisk 再開機....成功o既話就改番/etc/lilo.conf o既path: /opt/usb-drive/boot --> /boot 同埋改其中一行:
8. disk=/dev/sda1 bios=0x80 --> disk=/dev/sda1
9. ~#lilo -v -v (Update LILO to usb harddisk)
再reboot 幾次睇o下正唔正常.......[/quote]
hi 貓貓仔&貓貓女
i tried to mount the usb harddisk but failed .
there are both /dev/sda and /dev/sdb but both are not directory.
how can i know use 0 or 1 ?
fdisk /dev/sda is to format the usb harddisk ?
why not fdisk /opt/usb-harddisk then ?
thanks a lot作者: 貓貓仔 貓貓女 時間: 2005-8-29 01:28:17
喵~
Re: i tried to mount the usb harddisk but failed .
Ans:首先你要make sure load o左必要o既modules
~#lsmod|grep usb
睇o下有冇usb-storage usb_uhci scsi_mod usbcore 冇o既話就要load...
~#modprobe usb_uhci
~#modprobe usb-storage
~#modprobe usbcore
~#modprobe scsi_mod
Re:there are both /dev/sda and /dev/sdb but both are not directory.
how can i know use 0 or 1 ?
Ans:其實/dev/sda /dev/sdb 係block device 你可以當佢係電腦o既各種device:
/dev/fd0=第一個floppy
/dev/hda1=第一個ide harddisk 第一個 partition
/dev/hda2=第一個ide harddisk 第二個 partition
/dev/sda=第一條scsi channel id0 lun0 o既harddisk
/dev/sda1=第一條scsi channel id0 lun0 o既harddisk o既第一個 partition
至於第一個usb harddisk 正常黎講會map 係/dev/sda1 你可以插o左usb harddisk 後打 ~#dmesg 睇o下
/dev/sda0 係冇o既 sorry..... 因為貓貓理解錯o左.....睇0 or 1 係要有devfs 先有用:
/dev/scsi/host0/bus0/target0/lun0/disc=第一條scsi channel id0 lun0 o既harddisk
Re:fdisk /dev/sda is to format the usb harddisk ? why not fdisk /opt/usb-harddisk then ?
Ans:fdisk 後o既參數係<device> /opt/usb-harddisk 唔係device 而係mount point 所以呢個command "fdisk /opt/usb-harddisk" 係錯o既!!
要重新fdisk format 過係因為要用linux natvie filesystem "ext3 fs"