External USB hard drive question
Hi, all. I've recently installed Sarge on an old Pentium II machine via CD/Network as a test box to evaluate the system and am extremely impressed. I installed the Desktop environment and am using KDE 3.3 as my desktop. I've painlessly got it entered onto my LAN (sharing with OS X), got CUPS and VNC running and now need to explore the backup possibilities. I'll probably start with rsync as I'll be backing up to an external USB hard drive. The question I have is the drive, at the moment, is formatted HFS+. The only option I have for formatting it before I connect to Sarge is UFS. Could anybody offer any advice on the best route to get the drive mounted ext3 on Sarge? Or, if indeed, I could just use the back-up drive formatted UFS? Apologies if this is a no-brainer but after an extensive Google search and consulting several manuals, I'm still not clear as to the best course of action. Cheers, Phil. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: External USB hard drive question
[EMAIL PROTECTED] wrote: snip Could anybody offer any advice on the best route to get the drive mounted ext3 on Sarge? Or, if indeed, I could just use the back-up drive formatted UFS? The usb drive will appear as something like /dev/sda, and is likely to already have a partition table that contains a single partition, /dev/sda1. As you are talking about UFS and all those other file systems, my guess is that this is a Mac OS X volume or something - which does not use windows partition table formats (which linux does use), so you may need to use fdisk or cfdisk. You can format /dev/sda1 just like any other partition or device. something similar to the following should work: mkfs.ext3 -j /dev/sda1 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: External USB hard drive question
[EMAIL PROTECTED] wrote: The usb drive will appear as something like /dev/sda, and is likely to already have a partition table that contains a single partition, /dev/sda1. As you are talking about UFS and all those other file systems, my guess is that this is a Mac OS X volume or something - which does not use windows partition table formats (which linux does use), so you may need to use fdisk or cfdisk. So I guess it would make it easier if I formatted it FAT32 before connecting it (it is indeed a Mac OS X volume and the alternative formatting options, other than HFS+, are MS-DOS and UFS while still mounted on OS X). You can format /dev/sda1 just like any other partition or device. something similar to the following should work: mkfs.ext3 -j /dev/sda1 Many thanks for the advice, Cheers, Phil. -- [EMAIL PROTECTED] ~]# rm -f .signature [EMAIL PROTECTED] ~]# ls -l .signature ls: .signature: No such file or directory [EMAIL PROTECTED] ~]# exit -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
hard drive question
I am using an MSI mobo with a VIA VT686B chipset that should allow ATA100 operation. Here is the hdparm information: burnt:/home/mellofone# hdparm -i /dev/hda /dev/hda: Model=ST340823A, FwRev=3.39, SerialNo=6EF0WCTQ Config={ HardSect NotMFM HdSw15uSec Fixed DTR10Mbs RotSpdTol.5% } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0 BuffType=unknown, BuffSize=512kB, MaxMultSect=16, MultSect=off CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78165360 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 AdvancedPM=no WriteCache=enabled Drive Supports : Reserved : ATA-1 ATA-2 ATA-3 ATA-4 ATA-5 Which to me shows that it is using ATA100... However: burnt:/home/mellofone# hdparm -t /dev/hda /dev/hda: Timing buffered disk reads: 64 MB in 34.05 seconds = 1.88 MB/sec Good god! Can that be right? The drive wasn't under any heavily load, and I ran the test 3 times What gives? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: hard drive question
On Fri, 10 May 2002 10:54:02 -0400 Matthew Daubenspeck [EMAIL PROTECTED] wrote: I am using an MSI mobo with a VIA VT686B chipset that should allow ATA100 operation. Here is the hdparm information: burnt:/home/mellofone# hdparm -i /dev/hda (snip) Which to me shows that it is using ATA100... However: Don't believe that's quite the case. That is reading what the drive is capable of. Per the hdparm man page: -i Display the identification info that was obtained from the drive at boot time, if available. What does hdparm /dev/hda return (that's how the drive is currently configured). -- Jamin W. Collins -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: hard drive question
Which to me shows that it is using ATA100... However: Don't believe that's quite the case. That is reading what the drive is capable of. Per the hdparm man page: -i Display the identification info that was obtained from the drive at boot time, if available. What does hdparm /dev/hda return (that's how the drive is currently configured). burnt:/home/mellofone# hdparm /dev/hda /dev/hda: multcount= 0 (off) I/O support = 0 (default 16-bit) unmaskirq= 0 (off) using_dma= 0 (off) keepsettings = 0 (off) nowerr = 0 (off) readonly = 0 (off) readahead= 8 (on) geometry = 4865/255/63, sectors = 78165360, start = 0 HDIO_GET_BUSSTATE failed: Input/output error I'm no expert, but that doesn't look good :) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: hard drive question
On Fri, 10 May 2002 13:28:02 -0400 Matthew Daubenspeck [EMAIL PROTECTED] wrote: burnt:/home/mellofone# hdparm /dev/hda /dev/hda: multcount= 0 (off) I/O support = 0 (default 16-bit) unmaskirq= 0 (off) using_dma= 0 (off) keepsettings = 0 (off) nowerr = 0 (off) readonly = 0 (off) readahead= 8 (on) geometry = 4865/255/63, sectors = 78165360, start = 0 HDIO_GET_BUSSTATE failed: Input/output error I'm no expert, but that doesn't look good :) Well, it's not terrible, but definitely not a config that will give you the performance you'd expect from an ATA100 drive. Currently, you're not using 32 bit I/O or DMA (two items that will majorly impact your drives performance). Also, you're not using multcount. Based on your previous post, I think the following command may help tune your HD's performance a bit: hdparm -c1 -d1 -m16 /dev/hda The above is probably not optimaal, but most likely significantly better than you were getting. If the above works for you long term, add a -k1 to the list of switches which will help the drive keep it's settings between resets (not reboots). -- Jamin W. Collins -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: hard drive question
try this remedy test a speed of your disk hdparm -Tt /dev/hda optimize parameters for HDD hdparm -c1 -d1 -u1 -m16 -A /dev/hda and test again hdparm -Tt /dev/hda if it worked for you add a file into /etc/init.d as startup script #! /bin/sh set -e case $1 in start) echo -n Setting Drive Parameters: /sbin/hdparm -q -qc1 -qd1 -qX66 -qm1 -qu1 /dev/hda echo /dev/hda ;; *) N=/etc/init.d/$NAME echo Usage: $N {start} 2 exit 1 ;; esac exit 0 and link it from /etc/rcS.d ln -s /etc/init.d/hdparm /etc/rcS.d/S01hdparm Now your system will comeup with optimized setting for you HDD. In case of my new computer it kicked from 2MB/s to 40MB/s with kernel 2.4.18-bf. NOTE: kernel should be compiled with support DMA for HDD otherwise you will not get significant performance improvement for your disk. Good luck Andrey Matthew Daubenspeck wrote: Which to me shows that it is using ATA100... However: Don't believe that's quite the case. That is reading what the drive is capable of. Per the hdparm man page: -i Display the identification info that was obtained from the drive at boot time, if available. What does hdparm /dev/hda return (that's how the drive is currently configured). burnt:/home/mellofone# hdparm /dev/hda /dev/hda: multcount= 0 (off) I/O support = 0 (default 16-bit) unmaskirq= 0 (off) using_dma= 0 (off) keepsettings = 0 (off) nowerr = 0 (off) readonly = 0 (off) readahead= 8 (on) geometry = 4865/255/63, sectors = 78165360, start = 0 HDIO_GET_BUSSTATE failed: Input/output error I'm no expert, but that doesn't look good :) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Hard Drive Question....
Quoting Anthony Landreneau ([EMAIL PROTECTED]): Greetings, I know I've seen this addressed before, but for the life of me I can't seems to find it, so I will ask the group. I have several machine, now running DOS 6.2. The system BIOS doesn't support large drives, 540MB is the max. I have several 630-1000MB drives and wish to use them on these machines then boot the machines up with LINUX. What do I set the BIOS to in order to correctly partition the drives with Linux? Thanks in advance. My experience is: do nothing to the BIOS. Just make sure that your kernel is within the first 540MB/1023 cylinders. This can be achieved by having / not too big, or a separate partition for /boot, or, if you need to leave a small DOS partition, using loadlin from that (i.e. copying the kernel into C: somewhere). Cheers, -- Email: [EMAIL PROTECTED] Tel: +44 1908 653 739 Fax: +44 1908 655 151 Snail: David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA Disclaimer: These addresses are only for reaching me, and do not signify official stationery. Views expressed here are either my own or plagiarised.
Re: Hard Drive Question....
Hi! Greetings, I know I've seen this addressed before, but for the life of me I can't seems to find it, so I will ask the group. I have several machine, now running DOS 6.2. The system BIOS doesn't support large drives, 540MB is the max. I have several 630-1000MB drives and wish to use them on these machines then boot the machines up with LINUX. What do I set the BIOS to in order to correctly partition the drives with Linux? Thanks in advance. linux uses the bios only for booting (lilo) - so you can use the whole harddrive-space leave the harddrive-entries as the are good for dos - linux doesn't need them you only have to store the _kernel_ unter the limitation of 540MB (504MB) so that lilo can access it over the bios here my suggestion about partitioning: 30-50 mbswap-drive under 500 mbpartition / (root) rest over border/usr if you'll partition this scheme, dselect will suggest you automagicaly to use the partition over 500mb as /usr until next mail B-) Peter -- :~~ [EMAIL PROTECTED] ~: : student of technical computer science : : university of applied sciences krefeld (germany) : ~~ FD314F21 C7 AE 2F 28 C1 33 71 77 0D 77 CD 6E 58 E9 06 6B
Hard Drive Question....
Greetings, I know I've seen this addressed before, but for the life of me I can't seems to find it, so I will ask the group. I have several machine, now running DOS 6.2. The system BIOS doesn't support large drives, 540MB is the max. I have several 630-1000MB drives and wish to use them on these machines then boot the machines up with LINUX. What do I set the BIOS to in order to correctly partition the drives with Linux? Thanks in advance. Anthony Landreneau Network Administrator Infinity Data Systems New Orleans Louisiana (504)455-8973