‹ Bunad - festdrakt - grilldress •
Hvordan “mount” en harddisk i Linux!
Finn informasjon
Finn ut hva Linux vet om maskina di ved å skrive i terminalvinduet:
sudo lshw -C disk
Her er et lite eksempel på hva som kan vises nå:
*-disk
description: ATA Disk
product: IC25N040ATCS04-0
vendor: Hitachi
physical id: 0
bus info: ide@0.0
logical name: /dev/hda
version: CA4OA71A
serial: CSH405DCLSHK6B
size: 37GB
capacity: 37GB
Sett opp harddisken
sudo fdisk /dev/hdd
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition’s system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help):n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4):
1
Command (m for help):w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
user@myubuntubox:~ $
Formater disk
sudo mke2fs -j /dev/hdd1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
4889248 inodes, 9772174 blocks
488608 blocks (5.00%) reserved for the super user
First data block=0
299 block groups
32768 blocks per group, 32768 fragments per group
16352 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632,
2654208, 4096000, 7962624
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
user@myubuntubox:~ $
Monter disk
sudo mkdir /backup
sudo umount /backup
En komplett guide finner du på Ubuntu sin Wiki: https://wiki.ubuntu.com/InstallingANewHardDrive


No comments
Comments feed for this article
Trackback link
http://www.slikjegserdet.net/helge/2006/06/06/install-a-harddrive/trackback/