---
title: "fstab"
type: "forum-thread"
url: "https://www.webforum.nu/amne/linux-bsd/83181-fstab"
topic: "Linux & BSD"
topic_url: "https://www.webforum.nu/amne/linux-bsd"
author: "benken"
published: "2003-07-31T09:23:17.000Z"
updated: "2003-07-31T14:23:39.000Z"
replies: 5
views: 284
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/linux-bsd/83181-fstab"
---

# fstab

## #1 — benken, 2003-07-31T09:23Z

Jag har en partition som inte är monterad, hur skirver jag i fstab så den blir det vid uppstart?

Permalänk: https://www.webforum.nu/p/83181

## #2 — LMD, 2003-07-31T09:42Z

Det beror på vilken enhet den ligger på, vilket filsystem det är, vart du vill ha den monterad osv. Det enklaste är att titta på de andra raderna i fstab och härma dem.

OBS: Testa alltid att det du ändrat/lagt till i fstab fungerar innan du bootar om! Du vill inte ha en trasig fstab!!

Permalänk: https://www.webforum.nu/p/1124274

## #3 — benken, 2003-07-31T10:00Z

jag härmade den andra raden, å det funkade inte, så här ser den ut: 

LABEL=/1                /                       ext3    defaults        1 1
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda5               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1             /mnt/cdrom1             udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0

jag har en partition som heter hda3, ext3 filsystem. Hur gör jag??

Permalänk: https://www.webforum.nu/p/1124292

## #4 — LMD, 2003-07-31T10:30Z

raden:

/dev/hda3  /bla  ext3  defaults 0 0

bör fungera (kommer att montera den på /bla). Men som sagt, se till att testa efter att du lagt till något i fstab! I det här fallet genom att testa "mount /bla" resp "umount /bla".
Eventuellt kan du ersätta ext3 med "auto" i raden ovan.

Permalänk: https://www.webforum.nu/p/1124317

## #5 — benken, 2003-07-31T14:00Z

okej, men vad betyder de där 0 0 ??

Permalänk: https://www.webforum.nu/p/1124465

## #6 — Robban, 2003-07-31T14:23Z

man fstab:

> 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 filesys\_
>        tem does not need to be dumped.
> 
>        The  sixth field, (fs_passno), is used by the fsck(8) pro\_
>        gram to determine the order in which filesystem checks are
>        done at reboot time.  The root filesystem should be speci\_
>        fied 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 pre\_
>        sent  or  zero,  a value of zero is returned and fsck will
>        assume that the filesystem does not need to be checked.

Permalänk: https://www.webforum.nu/p/1124477

---

Tråden på webben: https://www.webforum.nu/amne/linux-bsd/83181-fstab
