Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Laurent DINCLAUX on October 31, 2003, 08:03:59 AM
-
Just brought an usb external drive. Need to make two patition (one ext3 and one fat or ntfs) and I also need to have it automounted when it pluged in.
So here what I have done:
#modprobe sg
#modprobe ide-scsi
#modprobe usb-storage
Have to do that after every reboot so I can acces my drive using /dev/sda...
First problem :)
Partitionned whith fdisk:
Disque /dev/sda : 255 têtes, 63 secteurs, 19929 cylindres
Unités = cylindres sur 16065 * 512 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 1 10000 80324968+ 83 Linux
/dev/sda2 10001 19929 79754692+ 7 Win95 FAT32
then:
#mkfs -t ext3 /dev/sda1 (very slow and sometimes hangs the sytem for few seconds)
#mount /dev/sda1 /mnt/sda1
#df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/md1 78787248 73154628 1630432 98% /
/dev/md0 101018 8862 86940 10% /boot
none 257180 0 257180 0% /dev/shm
/dev/hdb1 39571244 10466176 27094940 28% /mnt/moreData
/dev/sda1 160032512 160032512 0 100% /mnt/sda1
Second problem: why do I have 160Go whereas I have two 80go partitions ??
If I try:
#mkfs -t ext3 /dev/sda2
mke2fs 1.27 (8-Mar-2002)
/dev/sda2: Not enough space to build proposed filesystem while setting up superblock
-
Why don't you look at http://www.linux-usb.org/