PDA

View Full Version : [xubuntu] xubuntu installation on pendrive



takto416
April 30th, 2019, 08:27 PM
Hello everybody.
I've a problem with installing xubuntu 19.04 on pendrive. I installed the system through second pendrive made in rufus. When I boot from pendrive grub menu appears with windows 7 from my normal disk and some new ubuntu which doesn't work (scrhttps://mega.nz/#!X8Bg1QQA!tw5GAmtQQYpSUlEHWTMjUgIFbRKHPGSm4bSC0oC mpEweenshot).
https://drive.google.com/open?id=10oG5yplCrn9_3U2gCsr9T24MEUDy6llq
https://ibb.co/8NQ2GcH
I think that only xubuntu should appears. Am I right?
Pendrive has 2 partitions. One of them has about 20gb and is FAT32. Other one has about 10gb ext4 and is for the xubuntu. When I try to open partition with the system on live linux from other pendrive error appears:
Failed to open directory "4f89c498-555f-40e7-aedd-23a9594cd8fd".
Error when getting information from file "/media/xubuntu/4f89c498-555f-40e7-aedd-23a9594cd8fd/srv": Structure needs cleaning.
I please for help.

oldfred
May 1st, 2019, 04:07 AM
Do not run auto fix, unless someone has reviewed report. You may need to use advanced mode to correctly repair it.

May be best to see details, use ppa version with your live installer or any working install, not older Boot-Repair ISO:
Please copy & paste link to the Boot-info summary report ( do not post report), the auto fix sometimes can create more issues.
https://help.ubuntu.com/community/Boot-Repair &
https://sourceforge.net/p/boot-repair/home/Home/

You also may need fsck on that Linux partition. 10GB is not particularly large for a full install, but should work.

#From liveDVD/Flash so everything is unmounted,swap off if necessary, change example shown with partition sdb1 to your partition(s)
#e2fsck is used to check the ext2/ext3/ext4 family of file systems. -p tries fixes where response not required
sudo e2fsck -C0 -p -f -v /dev/sdb1
# -y auto answers yes for fixes needing response, also see man e2fsck
sudo e2fsck -f -y -v /dev/sdb1

takto416
May 1st, 2019, 07:45 AM
Here is the raport: http://paste.ubuntu.com/p/Gy9yf7dCsw/
The next part of the instructions I am trying to figure out yet.

takto416
May 1st, 2019, 08:43 AM
To be honest I don't understand what have I done but It worked. Now I am trying to understand that. Anyway I typed those 2 commends which you sent me. As a result that the partition is normally accesible in file manager.

takto416
May 1st, 2019, 09:47 AM
I want to add yet that I installed the xubuntu 19.04 on a computer with ubuntu 19.04 and windows 10. Maybe becouse that ubuntu 19.04 is in Boot-info summary report. Then before you told me to not do that I did auto fix on the pendrive on a computer with windows 7.

oldfred
May 1st, 2019, 02:25 PM
If you miss saying that Ubuntu is in external flash drive, Boot-Repair installs grub to every drive. But you want to keep Windows boot loader in MBR of Windows drive.
But if it now works that is great.

takto416
May 1st, 2019, 03:38 PM
It doesn't work yet. When I choose boot from pendrive GRUB appears and I can choose Ubuntu or Windows 7. When I choose ubuntu error appears which I made photo and uploaded to first post (on that computer there is no ubuntu). There is supposed to be only xubuntu but there isn't at all.

oldfred
May 1st, 2019, 06:13 PM
All flavors of Ubuntu will say Ubuntu in boot entries. You can change that if you desire.

If fsck is fixing it but then it still has issues, your flash drive may not be reliable. Flash drives have a much shorter life than SSDs or HDDs.

takto416
May 1st, 2019, 06:33 PM
The pendrive has few days and few days ago I was checking is there anh bad sector and there wasn't so I don't think so that there can be any problem.
Then what can I do next?

oldfred
May 1st, 2019, 07:17 PM
When you install to external drive in BIOS mode, it is seen as sdb or sdc, or in grub hd1 or hd2.
But when you directly boot flash drive, it will be sda or hd0.

See if from grub menu, changing the entry you use to boot from hd1 to hd0 in all places in that one boot stanza.
If it then works, run this to update all entries.
sudo update-grub