Just nu i M3-nätverket
Gå till innehåll

Linux på en USB-pinne


csl

Rekommendera Poster

Har installerat ubuntu 7.10 med hjälp av pendrivelinux och har delat upp usb-minnet i 3 delar: sdb1(vfat16), sdb2 (ext2) och sdb3 (vfat16). Sdb3 är tänkt att använda till att spara dokument. Tyvärr blir den partitionen ej med skrivrättigheter. Har försökt ändra den med sudo fstab o.s.v. men den är låst till huvudinstallationen. Jag har inte lyckats ändra rättigheter på fat. Är det någon som har en lösning till mitt problem?

 

Länk till kommentar
Dela på andra webbplatser

Har din användare skrivrättigheter till mappen du mountar i? Om den mountas i t.ex. /mnt/disk1 så kontrollera om du har skrivrättigheter till den mappen.

 

Länk till kommentar
Dela på andra webbplatser

Hur ser din fstab ut då?

 

Denna raden ska t.ex. fungera för att ge skriv/läs-rättigheter.

 

/dev/sdX1 /mnt/disk1 vfat iocharset=utf8,umask=000 0 0

 

 

Länk till kommentar
Dela på andra webbplatser

fstab ser ut som följer: unionfs /unionfs rw 00

tmpfs /tmp tmpfs nosuid, nodev 00

 

Jag har installerat enligt följande med ett tillägg för en 3 partition. Den skall användas för att lagra dokument

 

[log]USB Ubuntu 7.10 Essentials:

 

* Ubuntu7.10 ISO

* CD Burner

* 1GB USB flash drive (2GB+ recommended)

* U710fix.tar

 

Ubuntu 7.10 USB installation tutorial:

 

Hint: You can drastically speed up the install by Copying (Ctrl+c) and Pasting (Ctrl+v) commands into the terminal instead of manually typing them out. With the exception of replacing x with your drive letter.

 

1. Grab the Ubuntu 7.10 ISO and burn it to a CD

2. Insert the CD and your USB flash drive

3. Reboot your computer into Ubuntu from the Live CD

4. Open a terminal window and type sudo su

5. Type fdisk -l to list available drives/partitions. Note which device is your flash drive (example: /dev/sda) Throughout this tutorial, replace x with your flash drive letter. For example, if your flash drive is sdb, replace x with b.

6. Type umount /dev/sdx1

7. Type fdisk /dev/sdx

* type p to show the existing partition and d to delete it

* type p again to show any remaining partitions (if partitions exist, repeat the previous step)

* type n to make a new partition

* type p for primary partition

* type 1 to make this the first partition

* hit enter to use the default 1st cylinder

* type +750M to set the partition size

* type a to make this partition active

* type 1 to select partition 1

* type t to change the partition filesystem

* type 6 to select the fat16 file system

* type n to make another new partition

* type p for primary partition

* type 2 to make this the second partition

* hit enter to use the default cylinder

(ändrat till nästa rad * hit enter again to use the default last cylinder)

350 (egen modifiering för att få plats med ytterliggare en partition)

* type n to make another new partition

* type p for primary partition

* type 3 to make this the second partition

* hit enter to use the default cylinder

* hit enter again to use the default last cylinder

* type t to change the partition filesystem

* type b to select the fat32 file system

* type w to write the new partition table

8. Type umount /dev/sdx1 to ensure the 1st partition is unmounted

9. Type mkfs.vfat -F 16 -n ubuntu710 /dev/sdx1 to format the first partition

10. Type umount /dev/sdx2 just to ensure the 2nd partition is unmounted

11. Type mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2 to format the second partition

12. Remove and Re-insert your flash drive

13. Back at the terminal, type apt-get update

14. Type apt-get install syslinux mtools

15. Type syslinux -sf /dev/sdx1

16. Type cd /cdrom

17. Type cp -rf casper disctree dists install pics pool preseed .disk isolinux/* md5sum.txt README.diskdefines ubuntu.ico casper/vmlinuz casper/initrd.gz /media/ubuntu710/

 

Ignore any "cannot create symbolic link" errors

 

18. Type cd /home/ubuntu

19. Type wget pendrivelinux.com/downloads/U710fix.zip

20. Type unzip -o -d /media/ubuntu710/ U710fix.zip

21. Restart your computer, set your BIOS or Boot menu to boot from the USB device and reboot again.

 

You should now have a USB Ubuntu 7.10 Gutsy Gibbon flash drive that should automatically save your changes, restoring them on boot.[/log]

 

Lagt till LOG-taggar

När du har klistrat in långa stycken så var vänlig och markera stycket och tryck sedan på LOG-knappen som finns på samma rad som :thumbsdown::thumbsup: i inläggsfönstret, så blir folk glada när de inte behöver skrolla så mycket.

Cecilia - Moderator för Linux & Unix

 

[inlägget ändrat 2008-03-02 09:49:18 av Cecilia]

Länk till kommentar
Dela på andra webbplatser

Men vad händer om du då lägger till följande i fstab:

/dev/sdb3 /media/sdb3 vfat iocharset=utf8,umask=000 0 0

Sedan kör du umount /dev/sdb3 och sedan mount /dev/sdb3 alternativt startar om. Ev. måste du skapa mappen /media/sdb3 (eller var du nu vill mounta den). Se även till så att alla användare har skrivrättigheter till /media/sdb3, med t.ex. "sudo chmod 777 /media/sdb3" Detta ger samtliga användare på systemet fulla rättigheter till /media/sdb3.

 

Länk till kommentar
Dela på andra webbplatser

Jag har försökt med ditt förslag utan att det fungerar.

Problemet är att pinnen skall användas på för mig okänd dator. Det är en bekant som har lovat att låna ut en dator till min dotter men när de har behov av datorn i arbetet och därefter återlämna den efter utfört arbete kanske det är en annan dator som min dotter får låna. Därför vill jag installera på en USB-pinne ett OS med lämpliga program som min dotter kan ha behov av. Det innebär alltså att Unbutu startas i persistent (konstant) mode men sparar ändringar. Jag är inte riktigt hemma på hur allt fungerar i Ubuntu eller Linux men jag tror att jag måste ändra i någon annan uppstartsfil för att erhålla permanent ändring av fstab respektive språk och tangentalternativ. Rätta mig om jag har fel. Hoppas att någon där ute i etern kan delge mig en lösning på problemet.

 

Länk till kommentar
Dela på andra webbplatser

Arkiverat

Det här ämnet är nu arkiverat och är stängt för ytterligare svar.

×
×
  • Skapa nytt...