mounta en ntfs partion..

Avdelningen för programmering, nätverk samt alternativa OS.
Post Reply
User avatar
mattoys
Posts: 94
Joined: 2002-06-22 15:38:00
Location: smallland
Contact:

mounta en ntfs partion..

Post by mattoys »

försöker mounta min ntfs partion funkar bra genom att använda kommandot:
mount /dev/hdb5 /mnt/hd -t ntfs

men när jag skriver in fstab
/dev/hdb5 /mnt/hd ntfs noauto,users 0 0

så får jag felmedelandet:
mount: Can't find /mnt/hd in /etc/fstab or /etc/mtab

har jag skrivi något fel?
vad står egentilligen de två sista siffrorna för?
Last edited by mattoys on 2004-02-26 14:39:39, edited 1 time in total.
[P4-HT 2600MHz - 2x256MB PC3200 Dual - 40GB, 80GB, 120GB IBM 7200 - Geforce2 Gts 64MB - iiyama 19"]
User avatar
whiz
Hedersbit
Posts: 5154
Joined: 2002-02-14 22:43:32
Contact:

Re: mounta en ntfs partion..

Post by whiz »

mattoys wrote: vad står egentilligen de två sista siffrorna för?
man fstab

Code: Select all

       The  fifth  field,  (fs_freq),  is  used  for  these filesystems by the
       dump(8) command to determine which filesystems need to be  dumped.   If
       the  fifth  field  is not present, a value of zero is returned and dump
       will assume that the filesystem does not need to be dumped.
                                                                                
       The sixth field, (fs_passno), is used by the fsck(8) program to  deter-
       mine the order in which filesystem checks are done at reboot time.  The
       root filesystem should be specified with a fs_passno of  1,  and  other
       filesystems  should  have a fs_passno of 2.  Filesystems within a drive
       will be checked sequentially, but filesystems on different drives  will
       be  checked  at  the  same time to utilize parallelism available in the
       hardware.  If the sixth field is not present or zero, a value  of  zero
       is  returned  and fsck will assume that the filesystem does not need to
       be checked.
:)

Den första siffran handlar alltså om programmet "dump" ska säkerhetskopiera, och den andra om fsck ska kolla filsystemet (om du kör ext2) vid boot.
» the empire never ended
User avatar
mattoys
Posts: 94
Joined: 2002-06-22 15:38:00
Location: smallland
Contact:

Post by mattoys »

tack för tolkningen, förstod inte riktigt när jag läste fstab själv eller ditt utdrag
[P4-HT 2600MHz - 2x256MB PC3200 Dual - 40GB, 80GB, 120GB IBM 7200 - Geforce2 Gts 64MB - iiyama 19"]
User avatar
whiz
Hedersbit
Posts: 5154
Joined: 2002-02-14 22:43:32
Contact:

Re: mounta en ntfs partion..

Post by whiz »

mattoys wrote: så får jag felmedelandet:
mount: Can't find /mnt/hd in /etc/fstab or /etc/mtab
Du är helt säker på att du sparade filen efter att du gjort ändringarna? Det låter onekligen som det inte finns någon sådan rad alls.
» the empire never ended
ykke
Posts: 27
Joined: 2003-12-10 16:14:47
Location: Alingsås
Contact:

Post by ykke »

i BSD heter ju diskarna annorlunda, jag mountar såhär: mount_ntfs /dev/ad0s1 /mnt/ntfs
15:59 < marcus|> "UNIX som server...?" Bar topic..
16:00 < marcus|> Sen pratar han om Linux..
16:03 < marcus|> Haha, de på 24 använder Unix version 2.4.21.. Undrar om de har en PDP11 att köra det på..
User avatar
IcePic
Hedersbit
Posts: 6061
Joined: 2002-03-08 16:09:38

Post by IcePic »

Solaris har ju en fin feature, om man skriver "mount -p" så printar den ut en mount-tab i fstab-format
så att man kan klipp-och-klistra in det i sin fstab direkt. Det hade ju inte gjort ont att ha det i andra
OS heller.
(Och ja, det heter vfstab i solaris men iaf)
Oh give me a clone, my very own clone,
with the Y chromosome changed to X!
And since she's my own, of my own flesh and bone,
she'll be thinking of nothing but sex!
ykke
Posts: 27
Joined: 2003-12-10 16:14:47
Location: Alingsås
Contact:

Post by ykke »

IcePic, du är ju så IT, så du kan ju göra det! ;)
15:59 < marcus|> "UNIX som server...?" Bar topic..
16:00 < marcus|> Sen pratar han om Linux..
16:03 < marcus|> Haha, de på 24 använder Unix version 2.4.21.. Undrar om de har en PDP11 att köra det på..
User avatar
IcePic
Hedersbit
Posts: 6061
Joined: 2002-03-08 16:09:38

Post by IcePic »

ykke wrote:IcePic, du är ju så IT, så du kan ju göra det! ;)
Bah, jag är ADB, inte IT. Sånt modernt bjäfs. =)
Oh give me a clone, my very own clone,
with the Y chromosome changed to X!
And since she's my own, of my own flesh and bone,
she'll be thinking of nothing but sex!
User avatar
root
Posts: 1150
Joined: 2002-03-07 23:22:35
Contact:

Post by root »

IcePic wrote:Solaris har ju en fin feature, om man skriver "mount -p" så printar den ut en mount-tab i fstab-format
Det funkar i FreeBSD också. :-)
Pulling together is the aim of despotism and tyranny. Free men pull in all kinds of directions.
-Terry Pratchett
Post Reply