Hardlink on wheezy by default for usb-stick?


 
Thread Tools Search this Thread
Operating Systems Linux Debian Hardlink on wheezy by default for usb-stick?
# 8  
Old 04-01-2015
This is what it is may be about, there is a directory on the mentioned rescue-kit. My full path to it (using the laptop) on the usb-drive is

Code:
/media/usb0/save

going down to
Code:
/usr/share/bug/grub-efi-amd64

that contains two files
named presubj as a simple textfile and
the funny named sript, a shell-sript. To be written down I pasted the code.
Code:
echo >&3
echo "*********************** BEGIN /proc/mdstat" >&3
cat /proc/mdstat >&3 2>&1 || true
echo "*********************** END /proc/mdstat" >&3

cat <<EOF
Information on any LVM volumes on this system is valuable to the GRUB
developers, but gathering this information requires the root password.
EOF
yesno "Do you want to provide LVM volume information?" nop
if [ "$REPLY" = yep ]; then
  echo >&3
  echo "*********************** BEGIN LVM" >&3
  su root -c "vgdisplay; pvdisplay; lvdisplay" >&3
  echo "*********************** END LVM" >&3
fi

echo >&3
echo "*********************** BEGIN /dev/disk/by-id" >&3
ls -l /dev/disk/by-id >&3 2>&1 || true
echo "*********************** END /dev/disk/by-id" >&3

echo >&3
echo "*********************** BEGIN /dev/disk/by-uuid" >&3
ls -l /dev/disk/by-uuid >&3 2>&1 || true
echo "*********************** END /dev/disk/by-uuid" >&3

exit 0

From stackoverflow.com
there is another hint
How can a Bootloader written in x86 Assembly be written to a USB Flash drive and support both BIOS and UEFI? - Stack Overflow

quote
"Removable media does not need to be GPT formatted in order for UEFI to boot from it. You need to create efi/boot folder on a FAT partition on a removable medium and place your UEFI bootloader there. File name must be bootx64.efi for X86-64 architecture. Booting in Legacy or BIOS mode will be handled without changes - via MBR. In pure UEFI boot mode it will read /efi/boot/bootx64.efi file.
Please note also, that FAT partition should be addressed by the first MBR partition entry and be active."

So right now I guessing what file to put down in this bootable directory?
The cited shell-script up above to rename it, file size is 1.7 kb or a file named
"boot.catalog" with a flie size of 2 kb but this is an unknown file (application/octet-stream)?
Any hints?

BTW coming back to the very outset ot this thread, there must be a hard link set by wheezy or system.d, because any usb-stick that once has been in touch whith wheezy only works properly on squeeze, when I type as root in the terminal

Code:
/umount/usb0

otherwise I am forced to work
a bit more complicated to copy files, just like
Code:
 stat %A filname

and afterwards
Code:
cp filename /media/foo

I am aware there is jessie burning up the charts.

Last edited by 1in10; 04-01-2015 at 05:23 PM.. Reason: to the top of the thread
# 9  
Old 04-10-2015
SOLVED

Heureka, yes he did it. Solved the problem, though UEFI is very nasty, no matter what OEM comes along with it. The crucial point was to format the usb-device in FAT16, don't you ask me why. (I am aware of the limits of FAT16 and the FAT32). But after I put on that usb-stick in the FAT16 format, I could finally run the net-installation, with Legacy + UEFI sequence. It gave me the chance to crash out the former ubuntu-partition and the rest I guess you know. Truly, one could operate with the CD, but honestly I have not used a CD for at least six years. But the headline still remains, because I was using a very old usb-stick, one with 1GB, this piece must be at least ten years old.
# 10  
Old 04-15-2015
Seems to have found an answer to my almost desperate search for the reason, it is this nasty sudo while installing a system and entering user and group. Once you made this mistake, you rather do it again and step by step or you get along with a kind of phantom sudo, even after typing

Code:
apt-get purge sudo

as root. Even in that case, have a look at the manpage of lsblk or search for more in the ubuntu-corner.



While getting along with a phantom sudo, it finds all the devices and may you would wish to have a real wide screen after typing as root the following:

Code:
su lsblk -o NAME,FSTYPE,UUID,RO,RM,SIZE,STATE,OWNER,GROUP,MODE,TYPE,MOUNTPOINT,LABEL,MODEL

Note: after tearing out sudo-package!!! And afterwards once again, have a look at the rights, whatever it may be, 40770 or 10644. I thought to put this here, not as a final conclusion, but in my case, a very old usb-drive worked well with msdos format, on squeeze and wheezy. A brand new one is unknown to my older laptop, but seen on the new system at my desk. A even newer hdd acts as well to be seen as an irritating device that quote:

Code:
mount: according to mtab, /dev/sdb1 is already mounted on /media/usb0

that command was typed as root, su.
So take care, if you a using debian wheezy or installing it and if you want to exclude sudo, do this while installing it. Otherwise you probably have a stable ubunutu bla foo do or so. But not a pure blend of debian or root, in my opinion. So if anybody can give me a better conclusion, or clues or hints, thanks in advance.


got it, almost!


Code:
%wheel ALL=(ALL) NOPASSWD: ALL

feel at home, try it and replace, if you like to, NOPASSWD with PASSWD, the mentioned code gives you su-level-1, one password for both. And here comes the link, where you may read more about it.

https://help.ubuntu.com/community/RootSudo

But my error message trying this, is the following one

Code:
syntax error, unexpected word  `('

so this may be the clue to repair it, can anyone give me a hint, please??? Thanks in advance.

Last edited by 1in10; 04-15-2015 at 10:38 PM.. Reason: one single hint only needed
# 11  
Old 04-17-2015
one step ahead it looks like this:
Well to solve this, without reinstalling it, it will take me some more time, thanks to redhat or the maintainer of the packet pam_wheel(8).
While typing as root
Code:
dpkg -l

o have a view at all installed packages I need better glasses or I just cannot see this specific packet in the list. But the manpage is there.
This wheel must be hidden or part of the core-group. Maybe someone can answer this, if it is part of core, for I don't see any pam_wheel.
quote from the manpage
"pam_wheel was written by Cristian Gafton <gafton@redhat.com>."
asked him on google+ waiting for a reply
but after reading the following I got it this time after reading (in my mother tongue) not the quoting error.

https://www.debian.org/doc/manuals/d...e/ch04.de.html

but to cut a long story short you have to dive deep into the
package / file 'pam_wheel.so' to activate in /etc/pam.d/su
just root to act as su or root or members of this group.
Under

Code:
/etc/passwd your rights are '-rw-r--r--' root root
/etc/shadow your rights are '-rw-r-----' root shadow
/etc/group  your rights are '-rw-r--r--' root root

so this is for gnome desktop, bus as well for more unix than ubuntu.
The mentioned page in english, same content.

Chapter 4. Authentication

thanks for your patience.

Last edited by 1in10; 04-18-2015 at 10:27 AM.. Reason: learning and improving my approach.
# 12  
Old 05-17-2015
Final words on mounting points and fstab, I am quitting any update for wheezy 7.0.8 for the simple reason, that after the last update, four days ago, not even now a former pluggable usb-drive will only work or not due to the lack of a mounting point. I doubt that this is useful, to give each and every device around, a certain line in /etc/fstab. So I will probably move to external devices, that are recognized without editing every time the fstab as root.
Found this on stackexchange, well, probably shame on me, but it won't change my point of view.
Code:
 apt-get install usbmount

as root, su.
Thumbs up.

May for others this link can be useful who may still want to use their OS, whatever this may be (mint, buntu, debian based) and who cannot get acquainted to systemd and its tricky behavior. So here is something that can put the fun in your sys, but getting rid of systemd.
Have fun.

How to remove systemd from a Debian jessie/sid installation - Without Systemd

Last edited by 1in10; 08-31-2015 at 04:06 PM.. Reason: grammar final solution that worked, nontheless this does not change my opinion
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. BSD

Bootable usb-stick, need help, sos

I would probably set all my rubber points here to get some real help for creating a boot device on a usb-stick. There is no CD-drive on this machine, thats why I need to use a usb-stick. And scrumming in a CD-drive to fuddle around in the fstab or something like that is out of reach. My wisdom so... (9 Replies)
Discussion started by: 1in10
9 Replies

2. SCO

How to use USB Stick in UNIXware?

I am trying to use a USB (Pen?) drive on Unixware 7.1.4. The USB stick is in the machine and the machine recognises it when I enter usbprobe as follows: Path - Address Description ----------------------------- +++++++ BUS #2 0 - 1 - HUB "UHCI Root Hub" 1 - 2 - HID "Chicony Wireless Device"... (1 Reply)
Discussion started by: BernP
1 Replies

3. SCO

Mount USB stick

hi Howto mount an USB stick under SCO 5.0.7? BTW ist it possible to mount USB stick in the command line using 'tools' at the Boot: prompt from OpenServer Release 5.0.7 installation CD? (1 Reply)
Discussion started by: ccc
1 Replies

4. Ubuntu

Ubuntu on USB stick?

Hey Guys I have an Ubuntu CD and I was thinking of creating like a bootable hard drive with various OS so that I can just boot OSs with t drive and not require the CDs. I was just wondering is there a way I can do this, like have Ubuntu boot from a USB stick? If yes how is that possible(even if I... (3 Replies)
Discussion started by: rbansal2
3 Replies

5. Shell Programming and Scripting

1 usb stick -> 2 mounted devices

Hello, i am using a solaris thinclient that tries to connecting to a terminalserver. (RDP) Everything works fine, but the usb redirection. If i put in a usb stick i always get 2 usb-drives mounted. If i look in /tmp/SUNWut/mnt/<name of the host> i see 2 devices. One with the name of the... (2 Replies)
Discussion started by: anarcy
2 Replies

6. BSD

Mounting a USB stick in FreeBSD

When mounting a USB stick or pen drive on a FreeBSD machine I always issue the following command: mount -t msdosfs /dev/da0s1 /mnt Something I have always wondered is what the option msdosfs stands for and more importantly, why it is necessary. (7 Replies)
Discussion started by: figaro
7 Replies

7. Filesystems, Disks and Memory

Mount USB stick...

Dummies questions, perfect for this. I cannot mount my idiotic usb stick on Slackware, I input the following on non-graphic mode as root: Mount -t vfat /dev/sdc1/usbstick usbstick is the folder i created for mounting my USB, the file system is FAT, and everytime I input that I get some kind... (2 Replies)
Discussion started by: Dax01
2 Replies

8. UNIX for Dummies Questions & Answers

Aix usb stick

I have a P-Series Machine running AIX 5.3, it has a USB Port on the front of the server, can I use a USB Stick on AIX platforms?? if so how..:rolleyes: (2 Replies)
Discussion started by: BEVAN
2 Replies

9. Linux

bootable USB Stick || Fedora 8

Hello Everybody I am planning to install Fedora core 8 on an extra PC I have; what I wanna do is to boot from a USB stick then install Fedora from an ISO image I already have via FTP. Could any one tell me how to create bootable USB Stick for Fedora as I already found how to install from FTP... (0 Replies)
Discussion started by: ahmed_nasr2001
0 Replies

10. Linux

Booting Linux from an USB stick

I got Puppy linux and installed it on a usb stick. In the BIOS i selected to boot from USB-FDD but it goes to my HD and ignores the USB stick, What going on ?? (2 Replies)
Discussion started by: perleo
2 Replies
Login or Register to Ask a Question