Pagina 1 di 2
[RISOLTO] ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 18:15
da jackladen
ciao a tutti....
sono un emerito pirla.....invece di copiare la parte di fstab creata da me ho sovrascritto tutto il file.
il problema è che nel vecchio fstab avevo la swap e la partizione di root, mentre adesso che ho riformattato ho lasciato la swap invariata ed ho fatto una partizione per root ed una per /home separata....avrei bisogno di sapere cosa scrivere nelle prime righe di fstab prima di riavviare, altrimenti sono fritto. grazie
kubuntu 10.10 rc
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 18:23
da Massimog
da terminale dai
e posta tutto
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 18:30
da jackladen
vedo e so cosa sono UUID......dalla mia ricostruzione dovrebbe essere cosi:
Codice: Seleziona tutto
# Partizione Mountpoint Filesystem Opzioni dump / pass
UUID=7d51ce02-0801-44d3-9dbd-39211bdf0d4b none swap sw 0 0
UUID=90c2749e-f20a-4a31-bfd2-4025aa7094c8 / etx4 defaults,noatime,auto 0 1
UUID=84355f5c-0ad3-4edc-8ba5-9191de785222 /home etx4 defaults,user,exec 0 2
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 18:32
da jackladen
tralasciando la correttezza degli UUID, mi interessa che la sintassi successiva agli stessi sia corretta.....
Codice: Seleziona tutto
jack@fisso:~$ ls -l /dev/disk/by-uuid
totale 0
lrwxrwxrwx 1 root root 10 2010-10-01 18:04 2750b40f-307f-49c0-adc9-55ceca0caf56 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2010-10-01 18:04 29bcf1e0-a149-486d-aa7a-e5c3fa7e4170 -> ../../sda1
lrwxrwxrwx 1 root root 10 2010-10-01 18:04 76fc02ff-b724-445b-bceb-4da7e93b0352 -> ../../sdd1
lrwxrwxrwx 1 root root 10 2010-10-01 18:04 7d51ce02-0801-44d3-9dbd-39211bdf0d4b -> ../../sdc1
lrwxrwxrwx 1 root root 10 2010-10-01 18:04 84355f5c-0ad3-4edc-8ba5-9191de785222 -> ../../sdc6
lrwxrwxrwx 1 root root 10 2010-10-01 18:04 90c2749e-f20a-4a31-bfd2-4025aa7094c8 -> ../../sdc5
lrwxrwxrwx 1 root root 10 2010-10-01 18:04 c8144bfd-f3d0-497a-8888-e255ab78b5a0 -> ../../sde1
lrwxrwxrwx 1 root root 10 2010-10-01 18:04 c83519b2-343c-4438-9ef5-7d6ca836c188 -> ../../sdc3
Codice: Seleziona tutto
jack@fisso:~$ sudo fdisk -l
[sudo] password for jack:
Disco /dev/sda: 82.0 GB, 81964302336 byte
255 testine, 63 settori/tracce, 9964 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x000732c2
Dispositivo Boot Start End Blocks Id System
/dev/sda1 1 9964 80035798+ 83 Linux
Disco /dev/sdb: 82.0 GB, 81964302336 byte
255 testine, 63 settori/tracce, 9964 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x0004b652
Dispositivo Boot Start End Blocks Id System
/dev/sdb1 1 9964 80035798+ 83 Linux
Disco /dev/sdc: 320.1 GB, 320072933376 byte
255 testine, 63 settori/tracce, 38913 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x031c03ba
Dispositivo Boot Start End Blocks Id System
/dev/sdc1 * 1 16 128488+ 82 Linux swap / Solaris
/dev/sdc2 17 3203 25598977 5 Esteso
/dev/sdc3 3204 38913 286840575 83 Linux
/dev/sdc5 17 1111 8788992 83 Linux
/dev/sdc6 1111 3203 16808960 83 Linux
Disco /dev/sdd: 1000.2 GB, 1000204886016 byte
255 testine, 63 settori/tracce, 121601 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x00094e01
Dispositivo Boot Start End Blocks Id System
/dev/sdd1 1 121601 976760001 83 Linux
Disco /dev/sde: 1000.2 GB, 1000204886016 byte
255 testine, 63 settori/tracce, 121601 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x0009e8fe
Dispositivo Boot Start End Blocks Id System
/dev/sde1 * 3305 121601 950220652+ 83 Linux
/dev/sde2 1 3304 26537985 5 Esteso
Le voci nella tabella delle partizioni non sono nello stesso ordine del disco
jack@fisso:~$
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 18:38
da Massimog
jackladen ha scritto:
tralasciando la correttezza degli UUID, mi interessa che la sintassi successiva agli stessi sia corretta.....
regolati con il mio fstab per le opzioni
Codice: Seleziona tutto
tani@xxx-laptop:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda7 during installation
UUID=c7dc8613-55d5-49f0-a2e1-21eaaf591b60 / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda8 during installation
UUID=3ac166aa-62ee-45f0-91bc-25d1f3537d6f /boot ext3 defaults 0 2
# /home was on /dev/sda9 during installation
UUID=ce764b47-9cc7-4056-b3a5-44446f9e8d00 /home ext3 defaults 0 2
# swap was on /dev/sda6 during installation
UUID=f30e38f6-394a-4c63-a9df-45b60b8f7613 none swap sw 0 0
#Partizione DATA /dev/sda5 :
UUID=4286059986058E9B /media/DATA ntfs-3g defaults,uid=1000,locale=it_IT.UTF-8 0 0
tani@xxx-laptop:~$
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 18:41
da jackladen
sapresti dirmi se ci vuole????
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 18:44
da Massimog
jackladen ha scritto:
sapresti dirmi se ci vuole????
ma hai una partizione separata per /proc ?
edit:mettilo come sta nel fstab, non sono sicuro se serve o no ::)
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 18:47
da jackladen
no....e tu? lo vedo nel tuo fstab
ok...provo a riavviare
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 18:49
da Mozo
AmministrazioneSistema/Fstab
La documentazione è tua amica.

Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 19:22
da jackladen
ho guardato afondo la documentazione ma non riesco a capire dove sbaglio......
quando carica mi dice che c'è un errore nel montaggio della /home....
mi date a capire una mano dove sbaglio??
grazie
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 19:26
da gianmpu
Posta il contenuto del tuo file fstab attuale
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 19:28
da Kipe
/proc credo sia importantissimo da montare, comunque potresti postare il tuo fstab attuale così ti possiamo aiutare meglio.
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 19:31
da andyrock
jackladen ha scritto:
sapresti dirmi se ci vuole????
E' indispensabile è diverso! Comunque se non riesci più ad accedere vai sulla live che ti seguiamo da li.
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 19:39
da jackladen
allora....copio a mano il mio fstab dopo aver provato a fare qualche modifica come ho visto nella documentazione......
UUID=7d51.........f0d4b none swap sw 0 0
UUID=90c27........094c8 / etx4 defaults,noatime,auto 0 1
/dev/sdc5 /home etx4 defaults,nouser,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 2
proc /proc proc defaults
come vedete ho provato a modificare la partizione relativa a /home perche min dice che non la monta.
i puntini tra gli UUID sono messi perchè mi scocciava a ricopiarli per intero, sono da un altro pc ma dall'inizio e dalla fine si risale tranquillamente alla partizione corrispondente, come vedete nei comandi postati su.
nell'hard disk ho le seguenti partizioni:
la prima è la swap
la seconda è la root
la terza è la /home
la quarta si chiama dati ed occupa il resto dello spazio
spero di essere stato il più chiaro possibile
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 19:43
da gianmpu
Dalla ricostruzione che hai fatto all'inizio la partizione che ha UUID=84xxxx è la sdc6 e non la sdc5
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 19:49
da jackladen
rieccomi....non avevo pensato alla live.......
riposto tutto ed in modo corretto
mio fstab
Codice: Seleziona tutto
# Partizione Mountpoint Filesystem Opzioni dump / pass
UUID=7d51ce02-0801-44d3-9dbd-39211bdf0d4b none swap sw 0 0
UUID=90c2749e-f20a-4a31-bfd2-4025aa7094c8 / etx4 defaults,noatime,auto 0 1
/dev/sdc5 /home etx4 defaults,nouser,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 2
proc /proc proc defaults 0 0
# Partizione Mountpoint Filesystem Opzioni dump / pass
# /media/DATI was on /dev/sda3 during installation
UUID=c83519b2-343c-4438-9ef5-7d6ca836c188 /media/DATI ext4 defaults 0 2
# /media/DISCO1 was on /dev/sdd1 during installation
UUID=29bcf1e0-a149-486d-aa7a-e5c3fa7e4170 /media/DISCO1 ext4 defaults 0 2
# /media/DISCO2 was on /dev/sde1 during installation
UUID=2750b40f-307f-49c0-adc9-55ceca0caf56 /media/DISCO2 ext3 defaults 0 2
# /media/DOWNLOAD was on /dev/sdc1 during installation
UUID=c8144bfd-f3d0-497a-8888-e255ab78b5a0 /media/DOWNLOAD ext3 defaults 0 2
# /media/FILM was on /dev/sdb1 during installation
UUID=76fc02ff-b724-445b-bceb-4da7e93b0352 /media/FILM ext3 defaults 0 2
mio sudo fdisk -l
Codice: Seleziona tutto
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 82.0 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000732c2
Device Boot Start End Blocks Id System
/dev/sda1 1 9964 80035798+ 83 Linux
Disk /dev/sdb: 82.0 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004b652
Device Boot Start End Blocks Id System
/dev/sdb1 1 9964 80035798+ 83 Linux
Disk /dev/sdc: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x031c03ba
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 16 128488+ 82 Linux swap / Solaris
/dev/sdc2 17 3203 25598977 5 Extended
/dev/sdc3 3204 38913 286840575 83 Linux
/dev/sdc5 17 1111 8788992 83 Linux
/dev/sdc6 1111 3203 16808960 83 Linux
Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00094e01
Device Boot Start End Blocks Id System
/dev/sdd1 1 121601 976760001 83 Linux
Disk /dev/sde: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009e8fe
Device Boot Start End Blocks Id System
/dev/sde1 * 3305 121601 950220652+ 83 Linux
/dev/sde2 1 3304 26537985 5 Extended
Partition table entries are not in disk order
ubuntu@ubuntu:~$
mio ls -l /dev/disk/by-uuid
Codice: Seleziona tutto
ubuntu@ubuntu:~$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 2010-10-01 17:42 2750b40f-307f-49c0-adc9-55ceca0caf56 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2010-10-01 17:42 29bcf1e0-a149-486d-aa7a-e5c3fa7e4170 -> ../../sda1
lrwxrwxrwx 1 root root 10 2010-10-01 17:42 76fc02ff-b724-445b-bceb-4da7e93b0352 -> ../../sdd1
lrwxrwxrwx 1 root root 10 2010-10-01 17:42 7d51ce02-0801-44d3-9dbd-39211bdf0d4b -> ../../sdc1
lrwxrwxrwx 1 root root 10 2010-10-01 17:42 84355f5c-0ad3-4edc-8ba5-9191de785222 -> ../../sdc6
lrwxrwxrwx 1 root root 10 2010-10-01 17:42 90c2749e-f20a-4a31-bfd2-4025aa7094c8 -> ../../sdc5
lrwxrwxrwx 1 root root 10 2010-10-01 17:42 c8144bfd-f3d0-497a-8888-e255ab78b5a0 -> ../../sde1
lrwxrwxrwx 1 root root 10 2010-10-01 17:42 c83519b2-343c-4438-9ef5-7d6ca836c188 -> ../../sdc3
ubuntu@ubuntu:~$
è tutto
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 19:53
da Kipe
UUID=7d51.........f0d4b none swap sw 0 0
UUID=90c27........094c8 / etx4 defaults,noatime,auto 0 1
/dev/sdc5 /home etx4 defaults,nouser,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 2
proc /proc proc defaults
Se questo è il tuo fstab, è sbagliato, al posto di /dev/sdc5 ci va l'UUID di /dev/sdc5.
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 19:53
da andyrock
Io ti consiglio di fare così. Crei un file /etc/fstab minimale, ovvero giusto le partizioni delle cartelle /, /home, /boot, etc... in modo che il sistema parta. Poi da li ripristini tutto.
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 19:58
da gianmpu
Kipe ha scritto:
UUID=7d51.........f0d4b none swap sw 0 0
UUID=90c27........094c8 / etx4 defaults,noatime,auto 0 1
/dev/sdc5 /home etx4 defaults,nouser,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 2
proc /proc proc defaults
Se questo è il tuo fstab, è sbagliato, al posto di /dev/sdc5 ci va l'UUID di /dev/sdc5.
(nono) Le partizioni vengono montate sia che specifichi il device che l'UUID
Nel file fstab i file system della /home e di / sono sbagliati: hai scritto etx4 invece di ext4
Re: URGENTE: ho sovrascritto fstab sbagliato e non posso riavviare.
Inviato: venerdì 1 ottobre 2010, 20:06
da Kipe
gianmpu ha scritto:
Kipe ha scritto:
UUID=7d51.........f0d4b none swap sw 0 0
UUID=90c27........094c8 / etx4 defaults,noatime,auto 0 1
/dev/sdc5 /home etx4 defaults,nouser,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 2
proc /proc proc defaults
Se questo è il tuo fstab, è sbagliato, al posto di /dev/sdc5 ci va l'UUID di /dev/sdc5.
(nono) Le partizioni vengono montate sia che specifichi il device che l'UUID
Nel file fstab i file system della /home e di / sono sbagliati: hai scritto etx4 invece di ext4
Ah grazie! Non lo sapevo, quindi direi che è molto più comodo mettere i devices piuttosto che gli UUID per ricrearsi fstab...