Monday, May 6, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1415  / 1 Year ago, sun, march 5, 2023, 10:59:26

The building of one of the softwares I am installing is failing because of the error



c++: internal compiler error: Killed (program cc1plus)



I think this is because I have only 500Mb swap partition. So I am trying to increase it using an external pendrive. I have tried adding



/dev/sdb1 none swap sw 0 0


/dev/sdc1 none swap sw 0 0



( since on booting, sometimes the pendrive partition shows /dev/sdb1 while sometimes it shows /dev/sdc1) to the /etc/fstab file but still instead of showing System as Linux swap on using



fdisk -l



it is showing FAT16. I have also tried



mkfs.ext3 /dev/sdb1



so that we create swap on a linux type filesystem,
but it says:



/dev/sdb1 is mounted; will not make a filesystem here!



I also tried



sudo swapon /dev/sdb1



but I get



swapon: /dev/sdb1: read swap header failed: Invalid argument



Please guide me so that I can make a swap partition on my pendrive.


PS: I have root permission.


More From » partitioning

 Answers
0

Reformat the entire fat16 drive, the USB should be right on unity sidebar (Or wherever you've tweaked it), right click it and re-format (Use ubuntu, ubuntu formats drives 1000 times the speed of windows, period.)



Re-partition it. (Use ubuntu software center to easily find multiple linux partitioners)



Attempt to put all the files back onto the USB now.



This is the quickest way I can think of to make a USB reformatted and afterword, partition.


[#31259] Sunday, March 5, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
suitman

Total Points: 487
Total Questions: 105
Total Answers: 98

Location: India
Member since Wed, Aug 4, 2021
3 Years ago
;